From f7d1940a731370ceee6e1c6eaae2cc2f5bab0432 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 19 Oct 2014 18:30:32 -0500 Subject: Remove usage of templates for RSS feeds Signed-off-by: Dan McGee --- templates/feeds/news_description.html | 2 -- templates/feeds/packages_title.html | 1 - 2 files changed, 3 deletions(-) delete mode 100644 templates/feeds/news_description.html delete mode 100644 templates/feeds/packages_title.html (limited to 'templates') diff --git a/templates/feeds/news_description.html b/templates/feeds/news_description.html deleted file mode 100644 index 61ceedf3..00000000 --- a/templates/feeds/news_description.html +++ /dev/null @@ -1,2 +0,0 @@ -

{{obj.author.get_full_name}} wrote:

-{{ obj.html }} diff --git a/templates/feeds/packages_title.html b/templates/feeds/packages_title.html deleted file mode 100644 index f92ac684..00000000 --- a/templates/feeds/packages_title.html +++ /dev/null @@ -1 +0,0 @@ -{{ obj.pkgname }} {{ obj.full_version }} {{ obj.arch.name }} \ No newline at end of file -- cgit v1.2.3-54-g00ecf From f9f8683799ef96904a7165adcfdeb0d13cb7ff61 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 20 Oct 2014 07:55:24 -0500 Subject: Fix display of flag requests for non-logged-in users More Jinja2 conversion fallout, whoops. Signed-off-by: Dan McGee --- templates/packages/details.html.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/packages/details.html.jinja b/templates/packages/details.html.jinja index 21be80f5..2215f8dc 100644 --- a/templates/packages/details.html.jinja +++ b/templates/packages/details.html.jinja @@ -183,7 +183,7 @@ Last Updated: {{ pkg.last_update|date("DATETIME_FORMAT") }} UTC - {% if user.is_authenticated %}{% with flag_request = pkg.flag_request() %}{% if flag_request %} + {% if user.is_authenticated() %}{% with flag_request = pkg.flag_request() %}{% if flag_request %} Last Flag Request: From {{ flag_request.who() }} on {{ flag_request.created|date }}:
{{ flag_request.message|linebreaksbr|default("{no message}") }}
-- cgit v1.2.3-54-g00ecf