summaryrefslogtreecommitdiff
path: root/app/views/tenants/_table_of_functions.html.haml
blob: 79ea2b1ba42983fce77a0b430fa13da0427dfb9b (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
- cache([I18n.locale, tenant, GuiFunction.count, GuiFunction.order(:updated_at).last, GsParameter.count, GsParameter.order(:updated_at).last]) do
  %table
    %tr{:class => 'even'}
      %th
        Funktion
      %th
        Anzahl
      %th
    %tr{:class => 'odd'}
      %td
        = t("callthroughs.name")
      %td
        - if tenant.callthroughs.any?
          = link_to tenant.callthroughs.count.to_s, tenant_callthroughs_path(tenant)
        - else
          = '-'
      %td
        = render :partial => 'shared/create_link', :locals => {:parent => tenant, :child_class => Callthrough}
    %tr{:class => 'even'}
      %td
        = t("conferences.name")
      %td
        - if tenant.conferences.any?
          = link_to tenant.conferences.count.to_s, tenant_conferences_path(tenant)
        - else
          = '-'
      %td
        = render :partial => 'shared/create_link', :locals => {:parent => tenant, :child_class => Conference}
    %tr{:class => 'odd'}
      %td
        = t("hunt_groups.name")
      %td
        - if tenant.hunt_groups.any?
          = link_to tenant.hunt_groups.count.to_s, tenant_hunt_groups_path(tenant)
        - else
          = '-'
      %td
        = render :partial => 'shared/create_link', :locals => {:parent => tenant, :child_class => HuntGroup}
    %tr{:class => 'even'}
      %td
        = t("automatic_call_distributors.name")
      %td
        - if tenant.automatic_call_distributors.any?
          = link_to tenant.automatic_call_distributors.count.to_s, tenant_automatic_call_distributors_path(tenant)
        - else
          = '-'
      %td
        = render :partial => 'shared/create_link', :locals => {:parent => tenant, :child_class => AutomaticCallDistributor}
    %tr{:class => 'odd'}
      %td
        = t("gui_functions.name")
      %td
        = link_to GuiFunction.count.to_s, gui_functions_path
      %td
    %tr{:class => 'even'}
      %td
        = t("gs_parameters.name")
      %td
        = link_to GsParameter.count.to_s, gs_parameters_path
      %td