diff --git a/r2/r2/templates/redditheader.compact b/r2/r2/templates/redditheader.compact index 3d4af14a6..cc9d8471f 100644 --- a/r2/r2/templates/redditheader.compact +++ b/r2/r2/templates/redditheader.compact @@ -24,7 +24,7 @@ from r2.models.subreddit import DefaultSR %> -<%namespace file="utils.html" import="plain_link, text_with_js, img_link, separator, logout"/> +<%namespace file="utils.html" import="plain_link, img_link, separator, logout"/> <% from r2.lib.menus import PageNameNav diff --git a/r2/r2/templates/redditheader.mobile b/r2/r2/templates/redditheader.mobile index 5460fc898..7e3213d5c 100644 --- a/r2/r2/templates/redditheader.mobile +++ b/r2/r2/templates/redditheader.mobile @@ -24,7 +24,7 @@ from r2.lib.template_helpers import static from r2.models import Sub, FakeSubreddit %> -<%namespace file="utils.html" import="plain_link, text_with_js, img_link, separator"/> +<%namespace file="utils.html" import="plain_link, img_link, separator"/>
other reddits
diff --git a/r2/r2/templates/utils.html b/r2/r2/templates/utils.html
index 0e65cd68d..15e62a388 100644
--- a/r2/r2/templates/utils.html
+++ b/r2/r2/templates/utils.html
@@ -182,19 +182,6 @@ ${first_defined(kw[1:])}
${unsafe(txt)}
%def>
-<%def name="text_with_js(txt, _sr_path = False, **kw)">
-<%
- for key, (text, js) in kw.iteritems():
- kw[key]=spaceCompress(capture(plain_link, text, "#",
- onclick = js, _sr_path=_sr_path))
- txt = txt % kw
- txt = txt.replace(" <", " <").replace("> ", "> ")
-
-%>
-${unsafe(txt)}
-%def>
-
-
<%def name="language_tool(name='lang', allow_blank = False,
default_lang = g.lang,
show_regions = False,