Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Use user_path when linking to c.site.
Browse files Browse the repository at this point in the history
This fixes incorrect links on LabeledMultis.
  • Loading branch information
bsimpson63 committed Jul 21, 2015
1 parent a40694e commit e46896f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion r2/r2/templates/filteredinfobar.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<div ${classes("titlebox", "rounded", "filtered-details", thing.css_class)}
data-path="${c.site.multi_path}">
<h1 class="hover redditname">
${plain_link(c.site.name, c.site.path, _sr_path=False, _class="hover")}
${plain_link(c.site.name, c.site.user_path, _sr_path=False, _class="hover")}
</h1>

<div class="usertext">
Expand Down
2 changes: 1 addition & 1 deletion r2/r2/templates/modsrinfobar.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<div class="titlebox rounded">
<h1 class="hover redditname">
${plain_link(c.site.name, c.site.path, _sr_path=False, _class="hover")}
${plain_link(c.site.name, c.site.user_path, _sr_path=False, _class="hover")}
</h1>

<div class="usertext">
Expand Down
4 changes: 2 additions & 2 deletions r2/r2/templates/pagenamenav.compact
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@

<%def name="domain()">
<span class="hover pagename redditname">
${plain_link(c.site.name, c.site.path, _sr_path=False)}
${plain_link(c.site.name, c.site.user_path, _sr_path=False)}
</span>
</%def>

<%def name="subreddit()">
<span class="hover pagename redditname">
${plain_link(c.site.name, c.site.path, _sr_path=False)}
${plain_link(c.site.name, c.site.user_path, _sr_path=False)}
</span>
</%def>

Expand Down
4 changes: 2 additions & 2 deletions r2/r2/templates/pagenamenav.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<%def name="subreddit()">
<span class="hover pagename redditname">
${plain_link(c.site.name, c.site.path, _sr_path=False)}
${plain_link(c.site.name, c.site.user_path, _sr_path=False)}
% if hasattr(thing, "title"):
: ${thing.title}
% endif
Expand All @@ -34,7 +34,7 @@
<%def name="domain()">
<div id="sr-name-box">
<span class="hover pagename redditname">
${plain_link(getattr(c.site, "idn", c.site.name), c.site.path, _sr_path=False)}
${plain_link(getattr(c.site, "idn", c.site.name), c.site.user_path, _sr_path=False)}
% if hasattr(thing, "title"):
: ${thing.title}
% endif
Expand Down

0 comments on commit e46896f

Please sign in to comment.