summaryrefslogtreecommitdiff
path: root/app/views/gui_functions/show.html.haml
blob: 8af329a78f39f32fe4cc28173c1797d9dc662279 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
- 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 }