Sha256: 45d5f18089bb8d0966e4eadfab8732b1c0377118276b112d646b448d413e90cb

Contents?: true

Size: 1.32 KB

Versions: 15

Compression:

Stored size: 1.32 KB

Contents

%ul(style="float: left; width: 340px; margin-right: 10px;")
  %li.header Yes
  - if @category.is_readable_anon?
    %li
      Everyone
    %li
      = link_to_function "Remove visibility to everyone", "category_permission_public(#{@category_id},0);", :class=>"action"
  - some = false
  - @permissions[:read_groups].each do |group_id, name|
    - next if group_id == 0
    - some = true
    %li(id="read_#{group_id}")
      = link_to_function name, "category_permission(#{@category_id}, #{group_id}, 'read', false);"
      - @read_groups.delete(group_id.to_i)
  - if some
    %li 
      = link_to_function "Remove visibility for above groups".html_safe, "category_permission(#{@category_id}, 0, 'read', false);", :class=>"action"

%ul(style="float: left; width: 340px; ")
  %li.header No
  - some = false
  - @read_groups.each do |group_id, name|
    - some = true
    %li(id="read_#{group_id}")
      = link_to_function name, "category_permission(#{@category_id}, #{group_id}, 'read', true);"
  - if some 
    %li 
      = link_to_function "Make visible to above groups".html_safe, "category_permission(#{@category_id}, 0, 'read', true);", :class=>"action", :style=>"margin-bottom: 5px;"
  - unless @category.is_readable_anon?
    %li
      = link_to_function "Make visible to everyone", "category_permission_public(#{@category_id},1);", :class=>"action"

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
kit_cms-2.3.22 app/views/category/_read_permissions.html.haml
kit_cms-2.3.20 app/views/category/_read_permissions.html.haml
kit_cms-2.3.19 app/views/category/_read_permissions.html.haml
kit_cms-2.3.18 app/views/category/_read_permissions.html.haml
kit_cms-2.3.17 app/views/category/_read_permissions.html.haml
kit_cms-2.3.16 app/views/category/_read_permissions.html.haml
kit_cms-2.3.15 app/views/category/_read_permissions.html.haml
kit_cms-2.3.14 app/views/category/_read_permissions.html.haml
kit_cms-2.3.13 app/views/category/_read_permissions.html.haml
kit_cms-2.3.11 app/views/category/_read_permissions.html.haml
kit_cms-2.3.10 app/views/category/_read_permissions.html.haml
kit_cms-2.3.9 app/views/category/_read_permissions.html.haml
kit_cms-2.3.8 app/views/category/_read_permissions.html.haml
kit_cms-2.3.7 app/views/category/_read_permissions.html.haml
kit_cms-2.3.6 app/views/category/_read_permissions.html.haml