summaryrefslogtreecommitdiff
path: root/app/views/tenants
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/tenants')
-rw-r--r--app/views/tenants/_index_core.html.haml4
-rw-r--r--app/views/tenants/_table_of_functions.html.haml9
2 files changed, 7 insertions, 6 deletions
diff --git a/app/views/tenants/_index_core.html.haml b/app/views/tenants/_index_core.html.haml
index 59d7e6d..721d624 100644
--- a/app/views/tenants/_index_core.html.haml
+++ b/app/views/tenants/_index_core.html.haml
@@ -3,9 +3,9 @@
%th= t('tenants.index.name')
%th= t('tenants.index.description')
- - reset_cycle
+
- for tenant in tenants
- %tr{:class => cycle('odd', 'even')}
+ %tr
%td= tenant.name
%td= tenant.description
%td
diff --git a/app/views/tenants/_table_of_functions.html.haml b/app/views/tenants/_table_of_functions.html.haml
index 271bf1e..d7af224 100644
--- a/app/views/tenants/_table_of_functions.html.haml
+++ b/app/views/tenants/_table_of_functions.html.haml
@@ -12,7 +12,7 @@
= t("callthroughs.name")
%td
- if tenant.callthroughs.any?
- = link_to tenant.callthroughs.count.to_s, tenant_callthroughs_path(tenant)
+ = link_to Haml::Engine.new("%i.icon-list").render + ' ' + tenant.callthroughs.count.to_s, tenant_callthroughs_path(tenant)
- else
= '-'
%td
@@ -23,7 +23,8 @@
= t("conferences.name")
%td
- if tenant.conferences.any?
- = link_to tenant.conferences.count.to_s, tenant_conferences_path(tenant)
+
+ = link_to Haml::Engine.new("%i.icon-list").render + ' ' + tenant.conferences.count.to_s, tenant_conferences_path(tenant)
- else
= '-'
%td
@@ -34,7 +35,7 @@
= t("hunt_groups.name")
%td
- if tenant.hunt_groups.any?
- = link_to tenant.hunt_groups.count.to_s, tenant_hunt_groups_path(tenant)
+ = link_to Haml::Engine.new("%i.icon-list").render + ' ' + tenant.hunt_groups.count.to_s, tenant_hunt_groups_path(tenant)
- else
= '-'
%td
@@ -45,7 +46,7 @@
= 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)
+ = link_to Haml::Engine.new("%i.icon-list").render + ' ' + tenant.automatic_call_distributors.count.to_s, tenant_automatic_call_distributors_path(tenant)
- else
= '-'
%td