Sha256: 736ccdbb1c7808f7c8946681211eaa4833307af55d2db6bc33dbd2ef11ba9606

Contents?: true

Size: 1.43 KB

Versions: 31

Compression:

Stored size: 1.43 KB

Contents

<ul>
<%% if @<%= model_name_underscored %> -%>
  <li><%%= context_menu_link l(:button_edit), edit_<%= model_name_underscored %>_path(@<%= model_name_underscored %>), class: 'icon icon-edit', disabled: !@can[:edit] %></li>
<%% end %>
<%% if @safe_attributes.include? 'status' -%>
  <li class="folder">
    <a href="#" class="submenu icon icon-issue-status" onclick="return false;"><%%= l(:field_status) -%></a>
    <ul>
      <%% <%= model_name %>.statuses.keys.each do |s| -%>
        <li>
          <%%= context_menu_link l("<%= model_name_underscored %>.statuses.#{s}"), bulk_update_<%= model_name_underscored %>_path(id: @<%= model_name_underscored %>_ids, <%= model_name_underscored %>: {status: s}, back_url: @back), method: :put,
                                  selected: (@selected[:status] == s), disabled: !@can[:edit], confirm: l(:text_are_you_sure) %>
        </li>
      <%% end -%>
    </ul>
  </li>
  <%% end %>
  <li><%%= context_menu_link l(:button_delete), <%= model_name_underscored %>_path(id: @<%= model_name_underscored %>_ids, back_url: @back), method: :delete, data: {confirm: l(:text_are_you_sure)}, class: 'icon icon-del', disabled: !@can[:delete] %></li>

  <%%= call_hook(:view_<%= model_name_pluralize_underscored %>_context_menu_end, {<%= model_name_underscored %>: @<%= model_name_underscored %>, <%= model_name_pluralize_underscored %>: @<%= model_name_pluralize_underscored %>, can: @can, back: @back, project: @project}) %>
</ul>

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
redmine_extensions-0.3.7 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.3.6 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.3.4 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.3.3 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.3.2 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.3.00 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.2.16 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.2.14 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.2.13 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.2.12 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.2.11 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.2.10 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.2.9 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.2.8 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.2.7 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.2.6 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.2.5 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.2.4 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.2.3 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.2.2 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb