comparison gpp/templates/news/story_summary.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 bbbc357ac5f3
children
comparison
equal deleted inserted replaced
492:3c48a555298d 493:bdcce55f137e
1 {% load url from future %} 1 {% load url from future %}
2 {% load tagging_tags %} 2 {% load tagging_tags %}
3 {% load bio_tags %}
3 {% load comment_tags %} 4 {% load comment_tags %}
4 {% load core_tags %} 5 {% load core_tags %}
5 <div class="news-story-container solid-background"> 6 <div class="news-story-container solid-background">
6 {% if on_home %} 7 {% if on_home %}
7 <h3><a href="{{ story.get_absolute_url }}">{{ story.title }}</a></h3> 8 <h3><a href="{{ story.get_absolute_url }}">{{ story.title }}</a></h3>
8 {% else %} 9 {% else %}
9 <h4><a href="{{ story.get_absolute_url }}">{{ story.title }}</a></h4> 10 <h4><a href="{{ story.get_absolute_url }}">{{ story.title }}</a></h4>
10 {% endif %} 11 {% endif %}
11 <div class="news-details"> 12 <div class="news-details">
12 Submitted by {{ story.submitter.username }} on {{ story.date_submitted|date:"F d, Y" }}. 13 Submitted by {% profile_link story.submitter.username %} on {{ story.date_submitted|date:"F d, Y" }}.
13 </div> 14 </div>
14 <a href="{% url 'news-category' slug=story.category.slug %}"> 15 <a href="{% url 'news-category' slug=story.category.slug %}">
15 <img src="{{ story.category.icon.url }}" alt="{{ story.category.title }}" title="{{ story.category.title }}" 16 <img src="{{ story.category.icon.url }}" alt="{{ story.category.title }}" title="{{ story.category.title }}"
16 class="news-icon" /></a> 17 class="news-icon" /></a>
17 <div class="news-content"> 18 <div class="news-content">