Sha256: 855b9f2df932c9fa223f796c0c87f460f0de99f51f6bde4ba02c4a3f7b4c6460

Contents?: true

Size: 780 Bytes

Versions: 11

Compression:

Stored size: 780 Bytes

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 %>
  <li><%%= context_menu_link l(:button_delete), <%= model_name_pluralize_underscored %>_path(ids: @<%= 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

11 entries across 11 versions & 1 rubygems

Version Path
redmine_extensions-0.0.39 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.1.14 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.0.37 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.1.11 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.0.36 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.0.34 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.1.09 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.1.07 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.1.06 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.0.33 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb
redmine_extensions-0.0.27 lib/generators/redmine_extensions/entity/templates/context_menu.html.erb.erb