Sha256: e39b1c2f0ed0774500ea6503fc8cafc6eebe082c81dd5212e7d511af271ecd59
Contents?: true
Size: 1.43 KB
Versions: 15
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 |status| %> <li> <%%= context_menu_link l("<%= model_name_underscored %>.statuses.#{status}"), bulk_update_<%= model_name_underscored %>_path(id: @<%= model_name_underscored %>_ids, <%= model_name_underscored %>: { status: status }, back_url: @back), method: :put, selected: (@selected[:status] == status), 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
15 entries across 15 versions & 1 rubygems