diff options
author | spag <spag@golwen.net> | 2013-01-18 11:19:28 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-01-18 11:19:28 +0100 |
commit | c11734ec34349a5d8dee4722ab798a6e5aa3c0f4 (patch) | |
tree | 9ec92b252ee8eb5913783725355e9532302887b3 /app/views/tenants/show.html.haml | |
parent | 1e465e49670f6c0fccc1cd920992a14942d3cfba (diff) | |
parent | d4e7d4a5d5bdb63fbda279dbc8dd2ec495b90907 (diff) |
Merge branch 'develop' of github.com:amooma/GS5 into develop
Diffstat (limited to 'app/views/tenants/show.html.haml')
-rw-r--r-- | app/views/tenants/show.html.haml | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/app/views/tenants/show.html.haml b/app/views/tenants/show.html.haml index 10845cf..f5cff5f 100644 --- a/app/views/tenants/show.html.haml +++ b/app/views/tenants/show.html.haml @@ -1,15 +1,11 @@ -- title t("tenants.show.page_title") +- title @tenant.name -- cache(['tenant_show_name_and_description', I18n.locale, @tenant, current_user]) do +- if !@tenant.description.blank? %p - %strong= t('tenants.show.name') + ":" - = @tenant.name - - if !@tenant.description.blank? - %p - %strong= t('tenants.show.description') + ":" - = @tenant.description + %strong= t('tenants.show.description') + ":" + = @tenant.description - = render :partial => 'shared/show_edit_destroy_part', :locals => { :child => @tenant } += render :partial => 'shared/show_edit_destroy_part', :locals => { :child => @tenant } - if @tenant.user_groups.where(:name => 'Admins').count > 0 && @tenant.user_groups.where(:name => 'Admins').first.users.include?(current_user) = render 'admin_area'
\ No newline at end of file |