mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-29 00:38:11 -05:00
Add subreddit count to multi sidebar.
This commit is contained in:
@@ -258,6 +258,8 @@ r.multi.MultiDetails = Backbone.View.extend({
|
||||
|
||||
this.$el.toggleClass('readonly', !canEdit)
|
||||
|
||||
this.$('.count').text(this.model.subreddits.length)
|
||||
|
||||
return this
|
||||
},
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
</form>
|
||||
%endif
|
||||
|
||||
<h3>${_('subreddits in this multi:')}</h3>
|
||||
<h3>${unsafe(_('%(count)s subreddits in this multi:') % dict(count='<span class="count">%d</span> ' % len(thing.srs)))}</h3>
|
||||
<ul class="subreddits">
|
||||
%for sr in thing.srs:
|
||||
<li data-name="${sr.name}">
|
||||
|
||||
Reference in New Issue
Block a user