Sha256: 250b6d124f1ef730b70d6bea5b2af4068694dc2b802f2733578128731b5f9425

Contents?: true

Size: 867 Bytes

Versions: 8

Compression:

Stored size: 867 Bytes

Contents

<ul>
  <%% if @<%= model_name_underscored %> && !@<%= model_name_underscored %>.new_record? %>
    <%%= content_tag(:li, link_to(l(:button_edit), edit_polymorphic_path([@project, @<%= model_name_underscored %>]), title: l(:button_edit), class: 'icon icon-edit button')) %>
  <%% end %>
  <%% if @<%= model_name_underscored %>.nil? %>
    <%%= content_tag(: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 button button-positive'))
  <%% end %>
  <%%= content_tag(:li, link_to(l(:label_<%= model_name_pluralize_underscored %>), polymorphic_path([@project, :<%= model_name_pluralize_underscored %>], set_filter: '1'), title: l(:label_<%= model_name_pluralize_underscored %>), class: 'icon icon-folder button')) %>
</ul>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
redmine_extensions-0.4.3 lib/generators/redmine_extensions/entity/templates/_sidebar.html.erb.erb
redmine_extensions-0.4.1 lib/generators/redmine_extensions/entity/templates/_sidebar.html.erb.erb
redmine_extensions-0.4.0 lib/generators/redmine_extensions/entity/templates/_sidebar.html.erb.erb
redmine_extensions-0.4.0.beta lib/generators/redmine_extensions/entity/templates/_sidebar.html.erb.erb
redmine_extensions-0.3.11 lib/generators/redmine_extensions/entity/templates/_sidebar.html.erb.erb
redmine_extensions-0.3.10 lib/generators/redmine_extensions/entity/templates/_sidebar.html.erb.erb
redmine_extensions-0.3.9 lib/generators/redmine_extensions/entity/templates/_sidebar.html.erb.erb
redmine_extensions-0.3.8 lib/generators/redmine_extensions/entity/templates/_sidebar.html.erb.erb