From 1be7d5e861239a59042e79a4f6aee20cf3ca1a75 Mon Sep 17 00:00:00 2001 From: spez Date: Wed, 25 Mar 2009 17:21:40 -0700 Subject: [PATCH] next time jedberg will test better --- r2/r2/controllers/listingcontroller.py | 1 - r2/r2/lib/pages/pages.py | 9 ++------- r2/r2/templates/base.html | 4 ---- r2/r2/templates/reddit.html | 9 --------- 4 files changed, 2 insertions(+), 21 deletions(-) diff --git a/r2/r2/controllers/listingcontroller.py b/r2/r2/controllers/listingcontroller.py index 68b3394a4..91c3467f4 100644 --- a/r2/r2/controllers/listingcontroller.py +++ b/r2/r2/controllers/listingcontroller.py @@ -95,7 +95,6 @@ class ListingController(RedditController): show_sidebar = self.show_sidebar, nav_menus = self.menus, title = self.title(), - description = c.site.description, infotext = self.infotext, **self.render_params).render() return res diff --git a/r2/r2/lib/pages/pages.py b/r2/r2/lib/pages/pages.py index 584b6c693..ae539b9c8 100644 --- a/r2/r2/lib/pages/pages.py +++ b/r2/r2/lib/pages/pages.py @@ -78,12 +78,9 @@ class Reddit(Wrapped): def __init__(self, space_compress = True, nav_menus = None, loginbox = True, infotext = '', content = None, title = '', robots = None, - canonical = None, description = None, show_sidebar = True, - **context): + show_sidebar = True, **context): Wrapped.__init__(self, **context) self.title = title - self.description = description - self.canonical = canonical self.robots = robots self.infotext = infotext self.loginbox = True @@ -435,9 +432,7 @@ class LinkInfoPage(Reddit): self.link = self.link_listing.things[0] link_title = ((self.link.title) if hasattr(self.link, 'title') else '') - canonical = "%s%s" % (add_sr(self.link.permalink), "?sort=top") if comment: - canonical = "%s%s" % (add_sr(comment.make_permalink_slow()), "?sort=top") if comment._deleted and not c.user_is_admin: author = _("[deleted]") else: @@ -448,7 +443,7 @@ class LinkInfoPage(Reddit): else: params = {'title':_force_unicode(link_title), 'site' : c.site.name} title = strings.link_info_title % params - Reddit.__init__(self, title = title, canonical=canonical, *a, **kw) + Reddit.__init__(self, title = title, *a, **kw) def build_toolbars(self): base_path = "/%s/%s/" % (self.link._id36, title_to_url(self.link.title)) diff --git a/r2/r2/templates/base.html b/r2/r2/templates/base.html index 6db2fd37f..360fedcdf 100644 --- a/r2/r2/templates/base.html +++ b/r2/r2/templates/base.html @@ -33,7 +33,6 @@ - ${self.Description()} ${self.robots()} @@ -74,9 +73,6 @@ ${title} -<%def name="Description()"> - - <%def name="keywords()"> reddit, reddit.com, vote, comment, submit diff --git a/r2/r2/templates/reddit.html b/r2/r2/templates/reddit.html index aec026652..018d6b836 100644 --- a/r2/r2/templates/reddit.html +++ b/r2/r2/templates/reddit.html @@ -36,12 +36,6 @@ %endif -<%def name="Description()"> - %if thing.description: - - %endif - - <%def name="stylesheet()"> <% from r2.lib.template_helpers import static, get_domain %> @@ -79,9 +73,6 @@ %endif - %if thing.canonical: - - %endif <%def name="javascript()">