Add byline to detailed News view and archive list.
authorJonathan S. Katz <jonathan.katz@excoventures.com>
Sun, 15 Apr 2018 19:48:10 +0000 (15:48 -0400)
committerJonathan S. Katz <jonathan.katz@excoventures.com>
Sun, 15 Apr 2018 19:48:10 +0000 (15:48 -0400)
This will let users know who is posting the news.

templates/news/item.html
templates/news/newsarchive.html

index 6bcc6d277e310d25f53a6041a7acea52182b99e0..3f6641694885154d10e271346987bb3a8f94b56e 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></div>
+<div class="newsdate">Posted on <strong>{{obj.displaydate}}</strong> by {{ obj.org.name }}</div>
 {{obj.content|markdown}}
 {%if obj.is_migrated%}
 <p><em>This post has been migrated from a previous version of the PostgreSQL
index c4bc12ea36f5221c45e8a205e3b1d0f4ab292be0..944c95c9b504a63ea2bb52d814c85657f84188fb 100644 (file)
@@ -10,7 +10,7 @@
 
 {%for obj in news %}
 <h2><a href="/about/news/{{obj.id}}/">{{obj.title}}</a></h2>
-<div class="newsdate">Posted on <strong>{{obj.displaydate}}</strong></div>
+<div class="newsdate">Posted on <strong>{{obj.displaydate}}</strong> by {{ obj.org.name }}</div>
 {{obj.content|markdown|striptags|truncatewords:20}}
 {%endfor%}
 <p><a href="/account/news/new/">Submit news</a></p>