summaryrefslogtreecommitdiff
path: root/app/views/tenants
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-24 16:10:54 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-24 23:03:16 +0100
commit2efc5f3853d5120c4ed4c7801e320464ca36e9b9 (patch)
treeac67ab285abcbbc5828b7f6dc6a02330853f6463 /app/views/tenants
parentfed98f1002ab5c874f55e7a3730f9b5ca2555ec3 (diff)
Started a docu "How to create a SIP account?"
Diffstat (limited to 'app/views/tenants')
-rw-r--r--app/views/tenants/_table_of_sip_accounts.html.haml38
1 files changed, 32 insertions, 6 deletions
diff --git a/app/views/tenants/_table_of_sip_accounts.html.haml b/app/views/tenants/_table_of_sip_accounts.html.haml
index 32230b5..b5f618b 100644
--- a/app/views/tenants/_table_of_sip_accounts.html.haml
+++ b/app/views/tenants/_table_of_sip_accounts.html.haml
@@ -1,7 +1,33 @@
- cache(['tenant_show_table_of_sip_accounts', I18n.locale, tenant, tenant.sip_accounts.count, tenant.sip_accounts.reorder(:updated_at).last]) do
- -# SIP accounts
- -#
- %h2= t('sip_accounts.index.page_title')
- - if tenant.sip_accounts.any?
- = render "sip_accounts/index_core", :sip_accounts => tenant.sip_accounts
- = render :partial => 'shared/create_link', :locals => {:parent => tenant, :child_class => SipAccount}
+ .row
+ - if !tenant.sip_accounts.any?
+ .span6
+ -# SIP accounts
+ -#
+ %h2= t('sip_accounts.index.page_title')
+ - if tenant.sip_accounts.any?
+ = render "sip_accounts/index_core", :sip_accounts => tenant.sip_accounts
+ = render :partial => 'shared/create_link', :locals => {:parent => tenant, :child_class => SipAccount}
+
+ .span6
+ %ul.thumbnails
+ %li.span6
+ %div.thumbnail
+ %a.thumbnail{:href => page_help_path}
+ =image_tag('docu/sip_accounts/help_screenshot.png', :alt => "2. Zur zentralen Firmenansicht gehen.")
+ %div.caption
+ %p
+ In der #{link_to 'Admin-Doku', page_help_path} finden Sie ein Beschreibung, wie Sie einen neuen SIP-Account anlegen können.
+
+ - else
+ .span12
+ -# SIP accounts
+ -#
+ %h2= t('sip_accounts.index.page_title')
+ - if tenant.sip_accounts.any?
+ = render "sip_accounts/index_core", :sip_accounts => tenant.sip_accounts
+ = render :partial => 'shared/create_link', :locals => {:parent => tenant, :child_class => SipAccount}
+
+
+ .row
+ .span12 \ No newline at end of file