2008-03-11 19:33:38 +00:00
|
|
|
<div class="contextual">
|
2016-11-19 10:34:25 +00:00
|
|
|
<%= form_tag({}, :method => :get) do %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<%= render_project_action_links %>
|
2008-03-11 19:33:38 +00:00
|
|
|
</div>
|
|
|
|
|
|
2019-10-19 11:36:13 +00:00
|
|
|
<h2><%= @query.new_record? ? l(:label_project_plural) : @query.name %></h2>
|
2024-06-04 20:04:45 +00:00
|
|
|
<%= @query.persisted? && @query.description.present? ? content_tag('p', @query.description, class: 'subtitle') : '' %>
|
2006-06-28 18:11:03 +00:00
|
|
|
|
2019-10-19 11:36:13 +00:00
|
|
|
<%= form_tag(projects_path(@project, nil), :method => :get, :id => 'query_form') do %>
|
|
|
|
|
<%= render :partial => 'queries/query_form' %>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<% if @query.valid? %>
|
2019-10-19 11:42:20 +00:00
|
|
|
<% if @entries.empty? %>
|
2019-10-19 11:36:13 +00:00
|
|
|
<p class="nodata"><%= l(:label_no_data) %></p>
|
|
|
|
|
<% else %>
|
2019-10-19 11:42:20 +00:00
|
|
|
<%= render :partial => @query.display_type, :locals => { :entries => @entries }%>
|
2019-10-19 11:36:13 +00:00
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
2007-03-12 17:59:02 +00:00
|
|
|
|
2007-08-29 16:52:35 +00:00
|
|
|
<% if User.current.logged? %>
|
2008-05-27 16:49:18 +00:00
|
|
|
<p style="text-align:right;">
|
2024-10-19 10:06:26 +00:00
|
|
|
<span class="icon icon-user my-project"><%= sprite_icon('user', l(:label_my_projects)) %></span>
|
|
|
|
|
<span class="icon icon-bookmarked-project"><%= sprite_icon('bookmarked', l(:label_my_bookmarks)) %></span>
|
2008-05-27 16:49:18 +00:00
|
|
|
</p>
|
2007-04-21 16:40:56 +00:00
|
|
|
<% end %>
|
2007-12-07 18:42:40 +00:00
|
|
|
|
2019-10-19 11:36:13 +00:00
|
|
|
<% content_for :sidebar do %>
|
|
|
|
|
<%= render :partial => 'projects/sidebar' %>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
2009-01-29 13:53:17 +00:00
|
|
|
<% other_formats_links do |f| %>
|
2019-11-02 07:22:45 +00:00
|
|
|
<% if @query.display_type == 'list' %>
|
|
|
|
|
<%= f.link_to_with_query_parameters 'CSV', {}, :onclick => "showModal('csv-export-options', '350px'); return false;" %>
|
|
|
|
|
<% end %>
|
2025-05-05 02:31:38 +00:00
|
|
|
<%= f.link_to 'Atom', :url => {:key => User.current.atom_key} %>
|
2009-01-29 13:53:17 +00:00
|
|
|
<% end %>
|
2008-05-27 16:49:18 +00:00
|
|
|
|
2008-01-02 22:41:53 +00:00
|
|
|
<% html_title(l(:label_project_plural)) -%>
|