summaryrefslogtreecommitdiff
path: root/app/views/page/index.html.haml
blob: f55ab376ad6f341a9b4a94a5fe75e6a4b84a0434 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
- title "Gemeinschaft #{GsParameter.get('GEMEINSCHAFT_VERSION')}"

%div
  %h3 Current tenant
  - if current_user && current_user.current_tenant
    %strong= current_user.current_tenant
  - else
    %strong= "(none)"

%div
  %h3 Current user groups
  %ul
    - (current_user.try(:user_groups) || []).each do |group|
      %li
        %strong= "#{group.name}"
        = "(from tenant: %s)" % group.tenant