summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-02-26 16:16:46 -0500
committerPeter Kozak <spag@golwen.net>2013-02-26 16:16:46 -0500
commitbc45716cb2aa3cd81ad5519edac8e09239a45984 (patch)
treec18a9d4d31ee2d24c32c08eb0567473f42ca8d02
parent0399b856c75b842f43bc5380f9c19a64c6418f11 (diff)
buttons added
-rw-r--r--app/views/sip_accounts/show.html.haml16
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')