summaryrefslogtreecommitdiff
path: root/app/views/tenants/show.html.haml
blob: 23ec81ae2a4a46cbccb14515349f8c627410c329 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
- content_for :title, @tenant.name

%table.table.table-striped
  %tbody
    %tr
      %td
        %strong= t('tenants.show.name') + ":"
      %td= @tenant.name
    - if !@tenant.description.blank?
      %tr
        %td
          %strong= t('tenants.show.description') + ":"
        %td= @tenant.description

= render :partial => 'shared/show_edit_destroy_part', :locals => { :child => @tenant }

- if @tenant.user_groups.where(:name => 'Admins').any? && @tenant.user_groups.where(:name => 'Admins').first.users.include?(current_user)
  = render :partial => 'admin_area', :locals => { :tenant => @tenant, :gateways => @gateways, :backup_jobs => @backup_jobs}