From 9b66333c2e02ab5b0196819c49ca73186e7eaff5 Mon Sep 17 00:00:00 2001 From: Ricky Ramirez Date: Wed, 19 Dec 2012 23:24:02 -0800 Subject: [PATCH] Remove "edit this page" tag for embedded trac wiki pages. The trac wiki is now deprecated and content should be migrated to the new integrated wiki. --- r2/r2/controllers/embed.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/r2/r2/controllers/embed.py b/r2/r2/controllers/embed.py index aad351b84..35a097dab 100644 --- a/r2/r2/controllers/embed.py +++ b/r2/r2/controllers/embed.py @@ -62,24 +62,6 @@ class EmbedController(RedditController): if link.has_key('href') and link['href'].startswith("/wiki/help"): link['href'] = link['href'][5:] - # Add "edit this page" link if the user is allowed to edit the wiki - if c.user_is_loggedin and c.user.can_wiki(): - edit_text = _('edit this page') - yes_you_can = _("yes, it's okay!") - read_first = _('just read this first.') - url = "http://code.reddit.com/wiki" + websafe(fp) + "?action=edit" - - edittag = """ - - """ % (url, edit_text, yes_you_can, read_first) - - output.append(edittag) - output = SC_OFF + unicode(output) + SC_ON return HelpPage(_("help"),