mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 15:28:37 -05:00
Remove unused text_with_js util.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user