From 92ca9efa34d2e4ce74afb5a50aaf7d44b5c4e3e9 Mon Sep 17 00:00:00 2001
From: "J.-S. Caux" <J.S.Caux@uva.nl>
Date: Sat, 7 Jan 2017 02:17:09 +0100
Subject: [PATCH] Work on feeds

---
 scipost/feeds.py                      | 12 ++++++++++++
 scipost/templates/scipost/footer.html |  3 ++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/scipost/feeds.py b/scipost/feeds.py
index 9b434a347..377df9818 100644
--- a/scipost/feeds.py
+++ b/scipost/feeds.py
@@ -42,6 +42,9 @@ class LatestCommentsFeedAtom(LatestCommentsFeedRSS):
     feed_type = Atom1Feed
     subtitle = LatestCommentsFeedRSS.description
 
+    def author_name(self):
+        return 'SciPost'
+
 
 
 class LatestNewsFeedRSS(Feed):
@@ -66,6 +69,9 @@ class LatestNewsFeedAtom(LatestNewsFeedRSS):
     feed_type = Atom1Feed
     subtitle = LatestNewsFeedRSS.description
 
+    def author_name(self):
+        return 'SciPost'
+
 
 class LatestSubmissionsFeedRSS(Feed):
     title_template = 'feeds/latest_submissions_title.html'
@@ -112,6 +118,9 @@ class LatestSubmissionsFeedAtom(LatestSubmissionsFeedRSS):
     feed_type = Atom1Feed
     subtitle = LatestSubmissionsFeedRSS.description
 
+    def author_name(self):
+        return 'SciPost'
+
 
 class LatestPublicationsFeedRSS(Feed):
     title_template = 'feeds/latest_publications_title.html'
@@ -155,3 +164,6 @@ class LatestPublicationsFeedRSS(Feed):
 class LatestPublicationsFeedAtom(LatestPublicationsFeedRSS):
     feed_type = Atom1Feed
     subtitle = LatestPublicationsFeedRSS.description
+
+    def author_name(self):
+        return 'SciPost'
diff --git a/scipost/templates/scipost/footer.html b/scipost/templates/scipost/footer.html
index 58536d054..f12fba1f9 100644
--- a/scipost/templates/scipost/footer.html
+++ b/scipost/templates/scipost/footer.html
@@ -10,11 +10,12 @@
       <a href="{% url 'scipost:terms_and_conditions' %}">Terms and conditions.</a>
     </div>
     <div class="col-2">
-      Follow us on:<br/>
+      Follow us:<br/>
       <table>
 	<tr>
 	  <td><a href="https://www.facebook.com/scipost" target="_blank" title="Facebook"><img src="{% static 'scipost/images/FB-f-Logo__white_29.png' %}" width="20" alt="Facebook"/></a></td>
 	  <td><a href="https://twitter.com/scipost_dot_org" target="_blank" title="Twitter"><img src="{% static 'scipost/images/Twitter_Logo_Blue.png' %}" width="32" alt="Twitter"/></a></td>
+	  <td><a style="float: right;" href="{% url 'scipost:feeds' %}"><img src="{% static 'scipost/images/feed-icon-28x28.png' %}" alt="Feed logo" width="20"></a></td>
 	  </tr>
       </table>
     </div>
-- 
GitLab