blogs, news: Don't shade entries on listing pages.

This just causes entire pages to be shaded, which is undesirable.
This commit is contained in:
Brett Smith 2016-11-17 09:45:03 -05:00
parent bb99d71fc1
commit 6dcb9d35e3
4 changed files with 0 additions and 8 deletions

View file

@ -7,14 +7,12 @@
<h2>Conservancy Blog Archive: {{ day|date:"F j, Y" }}</h2>
{% for object in object_list %}
<div class="shaded">
<p class="date">{{ object.pub_date|date:"F j, Y" }}</p>
<h3><a href="{{ object.get_absolute_url }}">{{ object.headline|safe }}</a></h3>
{{ object.summary|safe }}
<p><span class="continued"><a href="{{ object.get_absolute_url }}">Read More...</a></span></p>
<p class="date small">Posted by <strong>{{ object.author.formal_name }}</strong> on {{ object.pub_date|date:"F j, Y" }}</p>
{% if object.tags.all %}<p class="blog-tags small">Tags: {% for tag in object.tags.all %}<a href="{{ tag.get_absolute_url }}">{{ tag.label }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}</p>{% endif %}
</div>
{% endfor %}
{% endblock %}

View file

@ -7,14 +7,12 @@
<h2>Conservancy Blog Archive: {{ month|date:"F, Y" }}</h2>
{% for object in object_list %}
<div class="shaded">
<p class="date">{{ object.pub_date|date:"F j, Y" }}</p>
<h3><a href="{{ object.get_absolute_url }}">{{ object.headline|safe }}</a></h3>
{{ object.summary|safe }}
<p><span class="continued"><a href="{{ object.get_absolute_url }}">Read More...</a></span></p>
<p class="date small">Posted by <strong>{{ object.author.formal_name }}</strong> on {{ object.pub_date|date:"F j, Y" }}</p>
{% if object.tags.all %}<p class="blog-tags small">Tags: {% for tag in object.tags.all %}<a href="{{ tag.get_absolute_url }}">{{ tag.label }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}</p>{% endif %}
</div>
{% endfor %}
{% endblock %}

View file

@ -13,13 +13,11 @@
{% endif %}
{% for entry in blog_entries %}
<div class="shaded">
<p class="date">{{ entry.pub_date|date:"F j, Y" }} by {{ entry.author.formal_name }}</p>
<h3><a href="{{ entry.get_absolute_url }}">{{ entry.headline|safe }}</a></h3>
{{ entry.body|safe }}
<p class="date small">Posted by <strong>{{ entry.author.formal_name}}</strong> on {{ entry.pub_date|date:"F j, Y" }}</p>
{% if entry.tags.all %}<p class="blog-tags small">Tags: {% for tag in entry.tags.all %}<a href="{{ tag.get_absolute_url }}">{{ tag.label }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}</p>{% endif %}
</div>
{% endfor %}
<p>

View file

@ -16,7 +16,6 @@
{% ifnotequal news.number 1 %}<p>(Page {{ news.number }} of {{ news.paginator.num_pages }})</p>{% endifnotequal %}
{% for news_item in news %}
<div class="shaded">
<p class="date">{{ news_item.pub_date|date:"F j, Y" }}</p>
<h3><a href="{{ news_item.get_absolute_url }}">{{ news_item.headline|safe }}</a></h3>
{% if news_item.is_recent %}
@ -24,7 +23,6 @@
{{ news_item.summary|safe }}
{% if news_item.body %}<p><span class="continued"><a href="{{ news_item.get_absolute_url }}">Read More...</a></span></p>{% endif %}
{% endif %}
</div>
{% endfor %}
<p>