1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
- cache([I18n.locale, @tenant, UserGroup.count, UserGroup.order(:updated_at).last, User.count, User.order(:updated_at).last, Manufacturer.all]) do
%p
Sie sind Mitglied der
= link_to 'Admin Gruppe', tenant_user_group_path(@tenant, @tenant.user_groups.find_by_name('Admins'))
und haben deshalb besondere Rechte. Aber wie Peter Parker schon sagte: "With great power comes great responsibility."
%p
= @tenant
hat
= link_to pluralize(@tenant.user_groups.count, 'user group'), tenant_user_groups_path(@tenant)
- if @tenant.user_groups.count < 5
= "(#{@tenant.user_groups.order(:name).map{|group| group.to_s }.join(', ')})"
die in Summe
= link_to pluralize(@tenant.users.count, 'user'), tenant_users_path(@tenant)
verwalten.
Das System kann
= PhoneModel.count
verschiedene Telefonmodelle von den folgenden Herstellern verwalten:
- Manufacturer.all.each do |manufacturer|
- if manufacturer != Manufacturer.last && manufacturer != Manufacturer.limit(Manufacturer.count - 1).last
= succeed ', ' do
=link_to manufacturer, manufacturer_path(manufacturer)
- elsif manufacturer == Manufacturer.limit(Manufacturer.count - 1).last
= succeed ' und ' do
=link_to manufacturer, manufacturer_path(manufacturer)
- else
= succeed '.' do
=link_to manufacturer, manufacturer_path(manufacturer)
= render :partial => 'tenants/sip_accounts_and_phones', :locals => {:tenant => @tenant}
= render :partial => 'tenants/table_of_functions', :locals => {:tenant => @tenant}
= render :partial => 'tenants/table_of_phone_books', :locals => {:tenant => @tenant}
|