Sha256: 5b37f6ace4632d1a3e738ab1c5d1dc4bbffb0c46fc08cbe73cbfa43265278297

Contents?: true

Size: 1.31 KB

Versions: 15

Compression:

Stored size: 1.31 KB

Contents

<% if Redmine::Plugin.installed?(:easy_extensions) %>
<%%= render @query %>
<%% ### PAGE CUSTOMS ########################################################## %>
<%%= context_menu context_menu_<%= model_name_pluralize_underscored %>_path(project_id: @project) %>
<%% content_for :sidebar do %>
  <%%= render partial: '<%= model_name_pluralize_underscored %>/sidebar' %>
  <%%= render partial: 'sidebar/saved_easyqueries_by_type', locals: { query_class: @query.class, project: @project } %>
<%% end %>
<% else %>
<div class="contextual">
  <%% if User.current.allowed_to?(:add_<%= model_name_pluralize_underscored %>, @project, global: true) %>
    <%%= link_to l(:button_<%= model_name_underscored %>_new), new_<%= model_name_underscored %>_path, class: 'icon icon-add' %>
  <%% end %>
</div>
<h2><%%= @query.queried_class.to_s %></h2>

<%%= form_tag(<%= model_name_pluralize_underscored %>_path, method: :get, id: 'query_form') do %>
  <%%= render partial: 'queries/query_form' %>
<%% end %>

<%% if @query.valid? %>
  <%% if @entities.empty? %>
    <p class="nodata"><%%= l(:label_no_data) %></p>
  <%% else %>
    <%%= render_query_totals(@query) %>
    <%%= render partial: 'list', locals: { entities: @entities }%>
    <span class="pagination"><%%= pagination_links_full @entity_pages, @entity_count %></span>
  <%% end %>
<%% end %>
<% end %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
redmine_extensions-0.6.3 lib/generators/redmine_extensions/entity/templates/index.html.erb.erb
redmine_extensions-0.6.2 lib/generators/redmine_extensions/entity/templates/index.html.erb.erb
redmine_extensions-0.6.1 lib/generators/redmine_extensions/entity/templates/index.html.erb.erb
redmine_extensions-0.6.0 lib/generators/redmine_extensions/entity/templates/index.html.erb.erb
redmine_extensions-0.4.5 lib/generators/redmine_extensions/entity/templates/index.html.erb.erb
redmine_extensions-0.5.1 lib/generators/redmine_extensions/entity/templates/index.html.erb.erb
redmine_extensions-0.4.4 lib/generators/redmine_extensions/entity/templates/index.html.erb.erb
redmine_extensions-0.4.3 lib/generators/redmine_extensions/entity/templates/index.html.erb.erb
redmine_extensions-0.4.1 lib/generators/redmine_extensions/entity/templates/index.html.erb.erb
redmine_extensions-0.4.0 lib/generators/redmine_extensions/entity/templates/index.html.erb.erb
redmine_extensions-0.4.0.beta lib/generators/redmine_extensions/entity/templates/index.html.erb.erb
redmine_extensions-0.3.11 lib/generators/redmine_extensions/entity/templates/index.html.erb.erb
redmine_extensions-0.3.10 lib/generators/redmine_extensions/entity/templates/index.html.erb.erb
redmine_extensions-0.3.9 lib/generators/redmine_extensions/entity/templates/index.html.erb.erb
redmine_extensions-0.3.8 lib/generators/redmine_extensions/entity/templates/index.html.erb.erb