Do not show news article byline if author is "_migrated"

This commit is contained in:
Jonathan S. Katz
2018-05-04 13:56:31 -04:00
parent d497365787
commit c5a127c0e3
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
{%block title%}{{obj.title}}{%endblock%}
{%block contents%}
<h1>{{obj.title}}</h1>
<div class="newsdate">Posted on <strong>{{obj.displaydate}}</strong> by {{ obj.org.name }}</div>
<div class="newsdate">Posted on <strong>{{obj.displaydate}}</strong>{% if obj.org.name != '_migrated' %} by {{ obj.org.name }}{% endif %}</div>
{{obj.content|markdown}}
{%if obj.is_migrated%}
<p><em>This post has been migrated from a previous version of the PostgreSQL

View File

@ -10,7 +10,7 @@
{%for obj in news %}
<h2 class="news"><a href="/about/news/{{obj.id}}/">{{obj.title}}</a></h2>
<div class="newsdate">Posted on <strong>{{obj.displaydate}}</strong> by {{ obj.org.name }}</div>
<div class="newsdate">Posted on <strong>{{obj.displaydate}}</strong>{% if obj.org.name != '_migrated' %} by {{ obj.org.name }}{% endif %}</div>
{{obj.content|markdown|striptags|truncatewords:20}}
<p><a href="/about/news/{{obj.id}}/">Read more...</a></p>
{%endfor%}