Sha256: d6b29f1f53851bb64c63c000929eb6cbef9d13cb1782fa055987956b138c4b97

Contents?: true

Size: 888 Bytes

Versions: 15

Compression:

Stored size: 888 Bytes

Contents

%ul(style="float: left; width: 340px; margin-right: 10px;")
  %li.header Yes
  - some = false
  - @permissions[:write_groups].each do |group_id, name|
    %li
      - @write_groups.delete(group_id)
      - some = true
      = link_to_function name, "category_permission(#{@category_id}, #{group_id}, 'write', false);"
  - if some
    %li 
      = link_to_function "Remove editability for above groups", "category_permission(#{@category_id}, 0, 'write', false);", :class=>"action"
%ul(style="float: left; width: 340px; ")
  %li.header No
  - some = false
  - @write_groups.each do |group_id, name|
    - some = true
    %li
      = link_to_function name, "category_permission(#{@category_id}, #{group_id}, 'write', true);"
  - if some
    %li 
      = link_to_function "Make editable by above groups".html_safe, "category_permission(#{@category_id}, 0, 'write', true);", :class=>"action"

Version data entries

15 entries across 15 versions & 1 rubygems

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