Replace incorrect arguments to plain_link in several places.

In several places we're passing sr_path and cname arguments, but the correct
arguments are actually _sr_path and nocname.  In these cases it doesn't appear
to be actually causing any problems, but it's still wrong.
This commit is contained in:
Matt Lee
2015-09-22 15:45:21 -07:00
parent 3f58ecb163
commit 58f4faca0b
5 changed files with 16 additions and 16 deletions

View File

@@ -39,8 +39,8 @@ ${parent.midcol(cls = cls)}
</%def>
<%def name="subreddit()" buffered="True">
${plain_link(thing.subreddit.name, thing.subreddit_path, sr_path=False,
cname=False, _class="subreddit hover")}
${plain_link(thing.subreddit.name, thing.subreddit_path, _sr_path=False,
nocname=True, _class="subreddit hover")}
</%def>
<%def name="link()" buffered="True">

View File

@@ -163,8 +163,8 @@
</%def>
<%def name="subreddit()" buffered="True">
${plain_link('/r/' + thing.subreddit.name, thing.subreddit_path, sr_path = False,
cname = False, _class = "subreddit hover may-blank")}
${plain_link('/r/' + thing.subreddit.name, thing.subreddit_path, _sr_path=False,
nocname=True, _class="subreddit hover may-blank")}
</%def>
<%def name="midcol(display=True, cls = '')">

View File

@@ -53,7 +53,7 @@
}
permalink = thing.target.make_permalink(thing.parent_link, thing.subreddit)
%>
${plain_link(text, permalink, title=title, sr_path=False, cname=False, _class="may-blank")}&#32;
${plain_link(text, permalink, title=title, _sr_path=False, nocname=True, _class="may-blank")}&#32;
%elif hasattr(thing, "target") and isinstance(thing.target, Link):
<%
title = _force_unicode(thing.target.title)
@@ -68,7 +68,7 @@
}
permalink = thing.target.make_permalink(thing.subreddit)
%>
${plain_link(text, permalink, title=title, sr_path=False, cname=False, _class="may-blank")}&#32;
${plain_link(text, permalink, title=title, _sr_path=False, nocname=True, _class="may-blank")}&#32;
%elif hasattr(thing, "wrapped_user_target"):
${thing.wrapped_user_target}&#32;
%endif

View File

@@ -63,8 +63,8 @@
${plain_link(
thing.title,
thing.permalink,
sr_path=False,
cname=False,
_sr_path=False,
nocname=True,
_class='search-title may-blank',
)}
%if c.site.link_flair_position == 'right':
@@ -94,8 +94,8 @@
${plain_link(
'%s %s' % (format_number(thing.num_comments), ungettext('comment', 'comments', thing.num_comments)),
thing.permalink,
sr_path=False,
cname=False,
_sr_path=False,
nocname=True,
_class="search-comments may-blank",
)}&#32;
<span class="search-time">${_("submitted")}&#32;${thing_timestamp(thing, thing.timesince, include_tense=True)}</span>&#32;

View File

@@ -39,8 +39,8 @@
${plain_link(
thing.title,
thing.search_path,
sr_path=False,
cname=False,
_sr_path=False,
nocname=True,
_class='search-title may-blank',
)}
</%parent:search_result_header>
@@ -56,8 +56,8 @@
${plain_link(
thing.path.rstrip('/'),
thing.search_path,
sr_path=False,
cname=False,
_sr_path=False,
nocname=True,
_class='search-subreddit-link may-blank',
)}&#32;
%if not thing.score_hidden:
@@ -82,8 +82,8 @@
${plain_link(
_("search within %(subreddit)s") % dict(subreddit=pretty_name),
search_url(thing.prev_search, thing.name, restrict_sr='on', sort=thing.sort, recent=thing.recent),
sr_path=False,
cname=False,
_sr_path=False,
nocname=True,
_class='search-link',
title=_('search in %(subreddit)s' % dict(subreddit=pretty_name)),
)}