]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blobdiff - webapp/handlers_news.py
Add the release announcement to the download page
[people/shoehn/ipfire.org.git] / webapp / handlers_news.py
index 51194fc4d38a2f1e6373b9dee88614c6f6652b5d..18fd7f70f134a17dad8f3e48938127ae9bc47dc3 100644 (file)
@@ -37,25 +37,9 @@ class NewsItemHandler(BaseHandler):
                # Find the name of the author
                author = self.get_account(news.author_id)
                if author:
-                       news.author = author.cn
+                       news.author = author.name
                else:
                        _ = self.locale.translate
                        news.author = _("Unknown author")
 
                return self.render("news-item.html", item=news)
-
-
-class NewsAuthorHandler(BaseHandler):
-       """
-               This page displays information about the news author.
-       """
-       def get(self, author):
-               author = self.get_account(author)
-               if not author:
-                       raise tornado.web.HTTPError(404)
-
-               latest_news = self.news.get_latest(author=author.uid,
-                       locale=self.locale, limit=10)
-
-               self.render("news-author.html",
-                       author=author, latest_news=latest_news)