Add /comments/gilded link to /r/all sidebar.

This commit is contained in:
Neil Williams
2013-01-11 23:21:44 -08:00
parent 3c3b9e9594
commit 453149b729
3 changed files with 29 additions and 0 deletions

View File

@@ -1729,6 +1729,11 @@ class AllInfoBar(Templated):
srs = Subreddit._byID(sr_ids, data=True, return_dict=False)
if srs:
self.allminus_url = '/r/all-' + '-'.join([sr.name for sr in srs])
self.gilding_listing = False
if request.path.startswith("/comments/gilded"):
self.gilding_listing = True
Templated.__init__(self)

View File

@@ -4804,6 +4804,7 @@ table.calendar {
.icon-menu .reddit-contributors:before,
.icon-menu .reddit-modqueue:before,
.giftgold a:before,
.gilded-comments-link a:before,
.infobar.gold:before,
.gold-form h1.goldgift:before,
.users-online:before,
@@ -5135,6 +5136,23 @@ body:not(.gold) .allminus-link {
font-size: 1.15em;
}
.gilded-comments-link {
margin-top: 1em;
}
.gilded-comments-link a {
color: #9a7d2e;
font-weight: bold;
font-size: 1.15em;
}
.gilded-comments-link a:before {
height: 14px;
width: 14px;
margin: 0 6px 0 1px;
background-image: url(../gold-coin.png); /* SPRITE */
}
#per-sr-karma {
width: 300px;
margin: .6em auto 0 auto;

View File

@@ -37,3 +37,9 @@
<a href="${thing.allminus_url}">${_("Exclude your subscribed subreddits")}</a>
</div>
%endif
%if not thing.gilding_listing:
<div class="gilded-comments-link">
<a href="/r/all/comments/gilded">${_("See gilded comments")}</a>
</div>
%endif