This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/controllers/group_controller.js
Robin Ward 669247977b FEATURE: Show the posts count on the groups page. It seems a bit odd
that it uses a new AJAX call, but I wanted to keep the count separate
from the group object itself.
2014-02-12 14:01:36 -05:00

18 lines
476 B
JavaScript

/**
The basic controller for a group
@class GroupController
@extends Discourse.ObjectController
@namespace Discourse
@module Discourse
**/
Discourse.GroupController = Discourse.ObjectController.extend({
postsCount: null,
// It would be nice if bootstrap marked action lists as selected when their links
// were 'active' not the `li` tags.
showingIndex: Em.computed.equal('showing', 'index'),
showingMembers: Em.computed.equal('showing', 'members'),
});