summaryrefslogtreecommitdiff
path: root/app/views/tenants/_table_of_phones.html.haml
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-23 11:27:21 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-23 11:27:21 +0100
commitd14b99c32f0c6a88298c9bed1d91b7fec0fb04b5 (patch)
tree81c1d4a346a38303e26c5bc59546933273a0570b /app/views/tenants/_table_of_phones.html.haml
parente4da52d673f12673614f7f9303ad384c77dbc37c (diff)
UI improvements.
Diffstat (limited to 'app/views/tenants/_table_of_phones.html.haml')
-rw-r--r--app/views/tenants/_table_of_phones.html.haml7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/tenants/_table_of_phones.html.haml b/app/views/tenants/_table_of_phones.html.haml
new file mode 100644
index 0000000..e87191d
--- /dev/null
+++ b/app/views/tenants/_table_of_phones.html.haml
@@ -0,0 +1,7 @@
+- cache(['tenant_show_table_of_phones', I18n.locale, tenant, tenant.phones.count, tenant.phones.reorder(:updated_at).last]) do
+ -# Phones
+ -#
+ %h2= t('phones.index.page_title')
+ - if tenant.phones.any?
+ = render "phones/index_core", :phones => tenant.phones
+ = render :partial => 'shared/create_link', :locals => {:parent => tenant, :child_class => Phone}