Remove unused text_with_js util.

This commit is contained in:
Max Goodman
2011-11-10 11:57:51 -08:00
parent 087552494e
commit 09a3fda9ac
3 changed files with 2 additions and 15 deletions

View File

@@ -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

View File

@@ -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"/>
<div id="header">
<a href="/.mobile"><img id="header-img" src="${static('littlehead.png')}" alt="${c.site.name}" /></a><a href="/reddits.mobile" class="or">other reddits</a>

View File

@@ -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(" <", "&#32;<").replace("> ", ">&#32;")
%>
${unsafe(txt)}
</%def>
<%def name="language_tool(name='lang', allow_blank = False,
default_lang = g.lang,
show_regions = False,