mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-05 03:00:15 -04:00
Add /comments/gilded link to /r/all sidebar.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user