summaryrefslogtreecommitdiff
path: root/app/views/sip_accounts/show.html.haml
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-02-26 16:29:16 -0500
committerPeter Kozak <spag@golwen.net>2013-02-26 16:29:16 -0500
commit22bd2d6fb05e488527beb9c0e134c1fa47673a35 (patch)
treea9a2f96cde75a7e57073b090d2d05eaa84f65d16 /app/views/sip_accounts/show.html.haml
parentc175bbeec5c1573ba34da80cd1ec024e2be32b40 (diff)
use partials for buttons
Diffstat (limited to 'app/views/sip_accounts/show.html.haml')
-rw-r--r--app/views/sip_accounts/show.html.haml10
1 files changed, 2 insertions, 8 deletions
diff --git a/app/views/sip_accounts/show.html.haml b/app/views/sip_accounts/show.html.haml
index fd955dd..0aaf920 100644
--- a/app/views/sip_accounts/show.html.haml
+++ b/app/views/sip_accounts/show.html.haml
@@ -71,15 +71,9 @@
%strong= t('ringtones.name') + ':'
- if @sip_account.ringtones.count > 0
= @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')
+ = render :partial => 'shared/show_edit_destroy_part', :locals => { :parent => @sip_account, :child => @sip_account.ringtones.first }
- else
- %p
- %a.btn.btn-small.btn-default{ :href => new_sip_account_ringtone_path(@sip_account) }
- %i.icon-plus
- = t('ringtones.set_a_ringtone')
+ = render :partial => 'shared/create_link', :locals => { :parent => @sip_account, :child_class => Ringtone }
- if @sip_account.phone_numbers.count > 0 || can?(:create, @sip_account.phone_numbers.build)
%h2= t('phone_numbers.index.page_title')