summaryrefslogtreecommitdiff
path: root/app/views/hunt_groups
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-23 10:40:33 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-23 10:40:33 +0100
commite4da52d673f12673614f7f9303ad384c77dbc37c (patch)
tree445a69f7b2ae1432179ba8e6c77ab633f3b1af97 /app/views/hunt_groups
parent7b745a37f1729052e2278cbb10ac6d43484b94a3 (diff)
Improved UI for tenant#show
Diffstat (limited to 'app/views/hunt_groups')
-rw-r--r--app/views/hunt_groups/_index_core.html.haml29
1 files changed, 16 insertions, 13 deletions
diff --git a/app/views/hunt_groups/_index_core.html.haml b/app/views/hunt_groups/_index_core.html.haml
index 5f6e797..9cc237b 100644
--- a/app/views/hunt_groups/_index_core.html.haml
+++ b/app/views/hunt_groups/_index_core.html.haml
@@ -4,32 +4,35 @@
%thead
%tr
%th= t('hunt_groups.index.name')
- %th= t('hunt_groups.index.strategy')
+ %th
+ %span.hidden-phone
+ = t('hunt_groups.index.strategy')
- if show_seconds
%th= t('hunt_groups.index.seconds_between_jumps')
%th= t('hunt_groups.index.phone_numbers')
- %th= t('hunt_groups.index.hunt_group_members')
+ %th
+ %span.hidden-phone
+ = t('hunt_groups.index.hunt_group_members')
%tbody
- for hunt_group in hunt_groups
%tr
%td= hunt_group.name
- %td= t("hunt_groups.strategies.#{hunt_group.strategy}")
+ %td
+ %span.hidden-phone
+ = t("hunt_groups.strategies.#{hunt_group.strategy}")
- if show_seconds
%td= hunt_group.seconds_between_jumps
%td
- - if hunt_group.phone_numbers.count > 0
+ - if hunt_group.phone_numbers.any?
=render 'phone_numbers/listing', :phone_numbers => hunt_group.phone_numbers
- %br
- = render :partial => 'shared/create_link', :locals => {:parent => hunt_group, :child_class => PhoneNumber, :short_link => true}
%td
- - if hunt_group.hunt_group_members.count > 3
- = link_to hunt_group.hunt_group_members.count, hunt_group_hunt_group_members_path(hunt_group)
- %br
- - elsif hunt_group.hunt_group_members.count > 0
- =render 'hunt_group_members/listing', :hunt_group_members => hunt_group.hunt_group_members
- %br
- = render :partial => 'shared/create_link', :locals => {:parent => hunt_group, :child_class => HuntGroupMember, :short_link => true}
+ %span.hidden-phone
+ - if hunt_group.hunt_group_members.count > 3
+ = link_to hunt_group.hunt_group_members.count, hunt_group_hunt_group_members_path(hunt_group)
+ %br
+ - elsif hunt_group.hunt_group_members.any?
+ =render 'hunt_group_members/listing', :hunt_group_members => hunt_group.hunt_group_members
=render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => hunt_group.tenant, :child => hunt_group} \ No newline at end of file