From c5a127c0e35a2cc33a12eb3b7c7811d440f8ad88 Mon Sep 17 00:00:00 2001 From: "Jonathan S. Katz" Date: Fri, 4 May 2018 13:56:31 -0400 Subject: [PATCH] Do not show news article byline if author is "_migrated" --- templates/news/item.html | 2 +- templates/news/newsarchive.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/news/item.html b/templates/news/item.html index 1ca14c63..66addc19 100644 --- a/templates/news/item.html +++ b/templates/news/item.html @@ -3,7 +3,7 @@ {%block title%}{{obj.title}}{%endblock%} {%block contents%}

{{obj.title}}

-
Posted on {{obj.displaydate}} by {{ obj.org.name }}
+
Posted on {{obj.displaydate}}{% if obj.org.name != '_migrated' %} by {{ obj.org.name }}{% endif %}
{{obj.content|markdown}} {%if obj.is_migrated%}

This post has been migrated from a previous version of the PostgreSQL diff --git a/templates/news/newsarchive.html b/templates/news/newsarchive.html index 980a302a..e5dd3b3e 100644 --- a/templates/news/newsarchive.html +++ b/templates/news/newsarchive.html @@ -10,7 +10,7 @@ {%for obj in news %}

{{obj.title}}

-
Posted on {{obj.displaydate}} by {{ obj.org.name }}
+
Posted on {{obj.displaydate}}{% if obj.org.name != '_migrated' %} by {{ obj.org.name }}{% endif %}
{{obj.content|markdown|striptags|truncatewords:20}}

Read more...

{%endfor%}