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