diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/sip_accounts/show.html.haml | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/app/views/sip_accounts/show.html.haml b/app/views/sip_accounts/show.html.haml index 12e54c3..fd955dd 100644 --- a/app/views/sip_accounts/show.html.haml +++ b/app/views/sip_accounts/show.html.haml @@ -62,14 +62,24 @@ %p %strong= t('sip_accounts.show.tel_protocol') + ':' - %a{:href => '', :onclick => "navigator.registerProtocolHandler(\"tel\", \"#{@register_tel_protocol}\", \"#{@sip_account.to_s}\");" }= t('sip_accounts.show.register_tel_protocol') +%p + %a.btn.btn-small.btn-default{ :href => '', :onclick => "navigator.registerProtocolHandler(\"tel\", \"#{@register_tel_protocol}\", \"#{@sip_account.to_s}\");" } + %i.icon-plus + = t('sip_accounts.show.register_tel_protocol') %p %strong= t('ringtones.name') + ':' - if @sip_account.ringtones.count > 0 - = link_to @sip_account.ringtones.first, sip_account_ringtone_path(@sip_account, @sip_account.ringtones.first) + = @sip_account.ringtones.first + %p + %a.btn.btn-small.btn-warning{:href => edit_sip_account_ringtone_path(@sip_account, @sip_account.ringtones.first) } + %i.icon-edit.icon-white + =t('ringtones.index.actions.edit') - else - = link_to t('ringtones.set_a_ringtone'), new_sip_account_ringtone_path(@sip_account) + %p + %a.btn.btn-small.btn-default{ :href => new_sip_account_ringtone_path(@sip_account) } + %i.icon-plus + = t('ringtones.set_a_ringtone') - if @sip_account.phone_numbers.count > 0 || can?(:create, @sip_account.phone_numbers.build) %h2= t('phone_numbers.index.page_title') |