summaryrefslogtreecommitdiff
path: root/app/views/users
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-15 15:03:37 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-15 15:03:37 +0100
commit14e8e9923666991703f747a4abfd6fbfb96d2dc1 (patch)
tree9442c98cd9e7bf95f48e36b7d3220be6f4cb0e7c /app/views/users
parent3d11d0a3a047a12bfd40b61252e269cabac76225 (diff)
Show sim_cards of a user. Misc.
Diffstat (limited to 'app/views/users')
-rw-r--r--app/views/users/show.html.haml6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml
index ba38547..dca8cff 100644
--- a/app/views/users/show.html.haml
+++ b/app/views/users/show.html.haml
@@ -67,8 +67,10 @@
- cache(['user_show_phones_overview', I18n.locale, @user, @user.phones]) do
= render :partial => 'phones', :locals => {:user => @user}
- / - cache(['user_show_sim_cards_overview', I18n.locale, @user, @user.phones]) do
- / = render :partial => 'phones', :locals => {:user => @user}
+ - if GsParameter.get('SIM_CARDS') == true
+ - cache(['user_show_sim_cards_overview', I18n.locale, @user, @user.sim_cards]) do
+ %h2=t('sim_cards.index.page_title')
+ = render :partial => 'sim_cards/index_core', :locals => {:parent => @user.sim_cards.first.sim_card_provider, :sim_cards => @user.sim_cards}
- cache(['user_show_fax_accounts_overview', I18n.locale, @user, @user.fax_accounts]) do
= render :partial => 'fax_accounts', :locals => {:user => @user}