Sha256: f6544acc6cd3e6ac52bc525db680b933f8f3bedd59f9235484d9137e818a0934

Contents?: true

Size: 775 Bytes

Versions: 12

Compression:

Stored size: 775 Bytes

Contents

<ul>
<%% if @<%= model_name_underscored %> && !@<%= model_name_underscored %>.new_record? %>
  <li><%%= link_to l(:button_edit), edit_polymorphic_path([@project, @<%= model_name_underscored %>]), title: l(:button_edit), class: 'icon icon-edit' %></li>
<%% end %>
<%% if @<%= model_name_underscored %>.nil? %>
  <li><%%= link_to l(:button_<%= model_name_underscored %>_new), new_polymorphic_path([@project, :<%= model_name_underscored %>]), title: l(:title_<%= model_name_underscored %>_new), class: 'icon icon-add' %></li>
<%% end %>
  <li><%%= link_to l(:label_<%= model_name_pluralize_underscored %>), polymorphic_path([@project, <%= model_name %>], set_filter: '1'), title: l(:label_<%= model_name_pluralize_underscored %>), class: 'icon icon-folder' %></li>
</ul>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
redmine_extensions-0.0.28 lib/generators/redmine_extensions/entity/templates/_sidebar.html.erb.erb
redmine_extensions-0.0.24 lib/generators/redmine_extensions/entity/templates/_sidebar.html.erb.erb
redmine_extensions-0.0.23 lib/generators/redmine_extensions/entity/templates/_sidebar.html.erb.erb
redmine_extensions-0.0.22 lib/generators/redmine_extensions/entity/templates/_sidebar.html.erb.erb
redmine_extensions-0.0.21 lib/generators/redmine_extensions/entity/templates/_sidebar.html.erb.erb
redmine_extensions-0.0.20 lib/generators/redmine_extensions/entity/templates/_sidebar.html.erb.erb
redmine_extensions-0.0.19 lib/generators/redmine_extensions/entity/templates/_sidebar.html.erb.erb
redmine_extensions-0.0.18 lib/generators/redmine_extensions/entity/templates/_sidebar.html.erb.erb
redmine_extensions-0.0.17 lib/generators/redmine_extensions/entity/templates/_sidebar.html.erb.erb
redmine_extensions-0.0.16 lib/generators/redmine_extensions/entity/templates/_sidebar.html.erb.erb
redmine_extensions-0.0.15 lib/generators/redmine_extensions/entity/templates/_sidebar.html.erb.erb
redmine_extensions-0.0.14 lib/generators/redmine_extensions/entity/templates/_sidebar.html.erb.erb