summaryrefslogtreecommitdiff
path: root/app/views/sip_accounts
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-02-26 09:21:34 -0500
committerPeter Kozak <spag@golwen.net>2013-02-26 09:21:34 -0500
commit0a976c6b463288df4a9516bbd08f6232a37d427c (patch)
tree4fd75b7654bbe056408bb724c6fd0092b49ae064 /app/views/sip_accounts
parentad2121462a9ea9a776756a188779a9d504f078b7 (diff)
enable tel: handling for sip_accounts
Diffstat (limited to 'app/views/sip_accounts')
-rw-r--r--app/views/sip_accounts/show.html.haml4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/sip_accounts/show.html.haml b/app/views/sip_accounts/show.html.haml
index ede5150..12e54c3 100644
--- a/app/views/sip_accounts/show.html.haml
+++ b/app/views/sip_accounts/show.html.haml
@@ -61,6 +61,10 @@
= render :partial => 'shared/show_edit_destroy_part', :locals => { :parent => @sip_account.sip_accountable, :child => @sip_account }
%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
%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)