From 77b98d63ba1fafbd505fb1aa31609f58b148aa40 Mon Sep 17 00:00:00 2001 From: Max Goodman Date: Thu, 2 Feb 2012 11:56:51 -0800 Subject: [PATCH] Move and etc. tags out of stylesheet() template def. --- r2/r2/templates/base.html | 4 +++- r2/r2/templates/reddit.html | 35 ++++++++++++++++++----------------- 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/r2/r2/templates/base.html b/r2/r2/templates/base.html index 176a910c3..2543f9f88 100644 --- a/r2/r2/templates/base.html +++ b/r2/r2/templates/base.html @@ -38,7 +38,7 @@ ${self.robots()} - + ${self.pagemeta()} ${self.stylesheet()} ${self.javascript()} ${js_setup()} @@ -95,6 +95,8 @@ reddit, reddit.com, vote, comment, submit ${googleanalytics('web')} +<%def name="pagemeta()"> + <%def name="stylesheet()"> diff --git a/r2/r2/templates/reddit.html b/r2/r2/templates/reddit.html index 025710a60..4c88a09cb 100644 --- a/r2/r2/templates/reddit.html +++ b/r2/r2/templates/reddit.html @@ -42,6 +42,24 @@ %endif +<%def name="pagemeta()"> + %if hasattr(thing, "shortlink"): + + %endif + + + + %if thing.extension_handling: + <% + rss = add_sr(join_urls(request.path,'.rss')) + if thing.extension_handling == "private": + rss = make_feedurl(c.user, rss) + %> + + %endif + + <%def name="stylesheet()"> %if c.lang_rtl: - %endif - %if c.can_apply_styles and c.allow_styles and c.site.stylesheet_contents: <% inline_stylesheet = ( len(c.site.stylesheet_contents) < 1024 @@ -88,19 +102,6 @@ type="text/css" /> %endif - - - - %if thing.extension_handling: - <% - rss= add_sr(join_urls(request.path,'.rss')) - if thing.extension_handling == "private": - rss = make_feedurl(c.user, rss) - %> - - %endif -