summaryrefslogtreecommitdiff
path: root/app/views/gui_functions/show.html.haml
blob: 91b9d2e493d92a96878160585db24200b2fb887a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
- content_for :title, t("gui_functions.show.page_title")

- cache(['gui_function_show', I18n.locale, @gui_function]) do
  %p
    %strong= t('gui_functions.show.name') + ":"
    = @gui_function.name
  %p
    %strong= t('gui_functions.show.description') + ":"
    = @gui_function.description

  - @user_groups.each do |user_group|
    %p
      %strong= "#{user_group}:"
      - if @gui_function.gui_function_memberships.where(:user_group_id => user_group.id, :activated => true).count > 0
        = 'x'
      - else
        = 'not activated'

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