Group: new link on dashboard if admin. Fixed people count

This commit is contained in:
randx 2012-10-09 09:46:20 +03:00
parent 26045d7a2c
commit ce1b742b1e
4 changed files with 11 additions and 2 deletions

View file

@ -3,6 +3,11 @@
Groups
%small
(#{groups.count})
- if current_user.can_create_group?
%span.right
= link_to new_admin_group_path, class: "btn very_small info" do
%i.icon-plus
New Group
%ul.unstyled
- groups.each do |group|
%li.wll