Add subreddit count to multi sidebar.

This commit is contained in:
Max Goodman
2013-05-28 11:34:57 -07:00
parent 7132efa249
commit 54a9f3bf4f
2 changed files with 3 additions and 1 deletions

View File

@@ -258,6 +258,8 @@ r.multi.MultiDetails = Backbone.View.extend({
this.$el.toggleClass('readonly', !canEdit)
this.$('.count').text(this.model.subreddits.length)
return this
},

View File

@@ -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>&#32;' % len(thing.srs)))}</h3>
<ul class="subreddits">
%for sr in thing.srs:
<li data-name="${sr.name}">