summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-02-25 11:57:55 -0500
committerPeter Kozak <spag@golwen.net>2013-02-25 11:57:55 -0500
commitc6d5308480df11e3ebc829a3fa7df8f0453c9630 (patch)
tree61ec13c8c870a4224e0c8b1096ee5bb42a31b1f3 /app
parent26e2e09b20f7f775942b415df6eb55ddb7193879 (diff)
edit ringtone
Diffstat (limited to 'app')
-rw-r--r--app/views/sip_accounts/show.html.haml7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/sip_accounts/show.html.haml b/app/views/sip_accounts/show.html.haml
index 0a332af..bf9d692 100644
--- a/app/views/sip_accounts/show.html.haml
+++ b/app/views/sip_accounts/show.html.haml
@@ -65,6 +65,13 @@
= render :partial => 'shared/show_edit_destroy_part', :locals => { :parent => @sip_account.sip_accountable, :child => @sip_account }
+%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)
+ - else
+ = link_to t('ringtones.set_a_ringtone'), new_sip_account_ringtone_path(@sip_account)
+
- if @sip_account.phone_numbers.count > 0 || can?(:create, @sip_account.phone_numbers.build)
%h2= t('phone_numbers.index.page_title')
- if @sip_account.phone_numbers.count > 0