diff options
author | Peter Kozak <spag@golwen.net> | 2013-04-19 10:44:31 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-04-19 10:44:31 +0200 |
commit | 819978b3d4abffdd49bc5adec47746486d5153a2 (patch) | |
tree | dbe116b1a443e2e7d336122d56eefc71273bcafb /app/views/tenants/_table_of_groups.html.haml | |
parent | c96827b967bc24e1c304a37be77066f4d853e117 (diff) |
groups added to tenant view
Diffstat (limited to 'app/views/tenants/_table_of_groups.html.haml')
-rw-r--r-- | app/views/tenants/_table_of_groups.html.haml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/tenants/_table_of_groups.html.haml b/app/views/tenants/_table_of_groups.html.haml new file mode 100644 index 0000000..60f93cc --- /dev/null +++ b/app/views/tenants/_table_of_groups.html.haml @@ -0,0 +1,8 @@ +%h2= t("groups.index.page_title") + +- if Group.count <= GsParameter.get('NUMBER_OF_SHOWN_ITEMS') + = render "groups/index_core", :groups => Group.all + = render :partial => 'shared/create_link', :locals => {:child_class => Group} +- else + %p + = link_to t("groups.index.page_title"), groups_path |