Mercurial > public > sg101
comparison gpp/templates/news/story.html @ 493:bdcce55f137e
For #235, some minor news tweaks. The submitted by text is now a link to the author's profile. Only show 1 textarea to the user when submitting a new news story. The admin can paste into the 2nd one if needed.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 22 Oct 2011 00:48:45 +0000 |
parents | f0f3966ea44f |
children |
comparison
equal
deleted
inserted
replaced
492:3c48a555298d | 493:bdcce55f137e |
---|---|
1 {% extends 'news/base.html' %} | 1 {% extends 'news/base.html' %} |
2 {% load url from future %} | 2 {% load url from future %} |
3 {% load tagging_tags %} | 3 {% load tagging_tags %} |
4 {% load bio_tags %} | |
4 {% load comment_tags %} | 5 {% load comment_tags %} |
5 {% load script_tags %} | 6 {% load script_tags %} |
6 {% load core_tags %} | 7 {% load core_tags %} |
7 {% block title %}News: {{ story.title }}{% endblock %} | 8 {% block title %}News: {{ story.title }}{% endblock %} |
8 {% block custom_meta %} | 9 {% block custom_meta %} |
20 {% block begin_body %}{% include 'core/social_sharing_begin.html' %}{% endblock %} | 21 {% block begin_body %}{% include 'core/social_sharing_begin.html' %}{% endblock %} |
21 {% block news_content %} | 22 {% block news_content %} |
22 <div class="solid-background"> | 23 <div class="solid-background"> |
23 <h3>{{ story.title }}</h3> | 24 <h3>{{ story.title }}</h3> |
24 <div class="news-details"> | 25 <div class="news-details"> |
25 Submitted by {{ story.submitter.username }} on {{ story.date_submitted|date:"F d, Y" }}. | 26 Submitted by {% profile_link story.submitter.username %} on {{ story.date_submitted|date:"F d, Y" }}. |
26 </div> | 27 </div> |
27 <hr /> | 28 <hr /> |
28 <div class="news-content"> | 29 <div class="news-content"> |
29 <a href="{% url 'news-category' slug=story.category.slug %}"> | 30 <a href="{% url 'news-category' slug=story.category.slug %}"> |
30 <img src="{{ story.category.icon.url }}" alt="{{ story.category.title }}" title="{{ story.category.title }}" | 31 <img src="{{ story.category.icon.url }}" alt="{{ story.category.title }}" title="{{ story.category.title }}" |