Do not show news article byline if author is "_migrated"
authorJonathan S. Katz <jonathan.katz@excoventures.com>
Fri, 4 May 2018 17:56:31 +0000 (13:56 -0400)
committerJonathan S. Katz <jonathan.katz@excoventures.com>
Fri, 4 May 2018 17:56:31 +0000 (13:56 -0400)
templates/news/item.html
templates/news/newsarchive.html

index 1ca14c635c395137ca980d219696c19f9b18f77c..66addc19c859039d50da8c27cd23a80d2c48a4b8 100644 (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
index 980a302a332bbc7b794144e26f08616db8baa54f..e5dd3b3eb4feab0ab131a072b1525175fe35bb0d 100644 (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%}