diff options
author | Peter Kozak <spag@golwen.net> | 2013-03-18 04:44:37 -0400 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-03-18 04:44:37 -0400 |
commit | 7cd62ec6d7e40da2d1882d3ec056dae40c2f7b80 (patch) | |
tree | c79ef3e6f13f574618df2714facb4d523ec030bb /app/views/sip_accounts | |
parent | 23b868f332c54864cd7c72418ef7ca1cf5aeecb6 (diff) |
callto: url added
Diffstat (limited to 'app/views/sip_accounts')
-rw-r--r-- | app/views/sip_accounts/show.html.haml | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/app/views/sip_accounts/show.html.haml b/app/views/sip_accounts/show.html.haml index 9f84c92..e79907f 100644 --- a/app/views/sip_accounts/show.html.haml +++ b/app/views/sip_accounts/show.html.haml @@ -60,12 +60,14 @@ = render :partial => 'shared/show_edit_destroy_part', :locals => { :parent => @sip_account.sip_accountable, :child => @sip_account } -%p - %strong= t('sip_accounts.show.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') +- if @register_protocols.count > 0 + %p + %strong= t('sip_accounts.show.call_protocols') + ':' + %p + - @register_protocols.each do |protocol, url| + %a.btn.btn-small.btn-default{ :href => '', :onclick => "navigator.registerProtocolHandler(\"#{protocol}\", \"#{url}\", \"#{@sip_account.to_s}\");" } + %i.icon-plus + = t("sip_accounts.show.register_#{protocol}_protocol") %p %strong= t('ringtones.name') + ':' |