blob: c0e2a713e8bfbda94e578d0d71232b6cfe8207e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<div class="contextual">
<%= link_to l(:label_project_new), new_project_path, :class => 'icon icon-add' %>
</div>
<h2><%= @query.new_record? ? l(:label_project_plural) : @query.name %></h2>
<%= @query.persisted? && @query.description.present? ? content_tag('p', @query.description, class: 'subtitle') : '' %>
<%= form_tag(admin_projects_path(@project, nil), :method => :get, :id => 'query_form') do %>
<%= hidden_field_tag 'admin_projects', '1' %>
<%= render :partial => 'queries/query_form' %>
<% end %>
<% if @query.valid? %>
<%if @projects.any? %>
<%= render :partial => 'projects/list', :locals => { :entries => @projects }%>
<% else %>
<p class="nodata"><%= l(:label_no_data) %></p>
<% end %>
<% end %>
<% content_for :sidebar do %>
<%= render :partial => 'projects/sidebar' %>
<% end %>
|