diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-24 23:03:30 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-24 23:03:30 +0100 |
commit | 654aeff46c957de4177435b8becd8c8637e4fe6a (patch) | |
tree | 5c40b121c588154fff682e824b42a42ff5813874 /app/views/tenants | |
parent | fed98f1002ab5c874f55e7a3730f9b5ca2555ec3 (diff) | |
parent | c09553494684447245238cbc2874ce65d4aaecee (diff) |
Merge branch 'sip_account_docu' into develop
Diffstat (limited to 'app/views/tenants')
-rw-r--r-- | app/views/tenants/_table_of_sip_accounts.html.haml | 38 |
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..ef8e458 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 GsParameter.get('AUTO_ADMIN_ONLINE_HELP') == true && !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 |