You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html.erb 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <div class="contextual">
  2. <%= form_tag({}, :method => :get) do %>
  3. <% end %>
  4. <%= render_project_action_links %>
  5. </div>
  6. <h2><%= @query.new_record? ? l(:label_project_plural) : @query.name %></h2>
  7. <%= @query.persisted? && @query.description.present? ? content_tag('p', @query.description, class: 'subtitle') : '' %>
  8. <%= form_tag(projects_path(@project, nil), :method => :get, :id => 'query_form') do %>
  9. <%= render :partial => 'queries/query_form' %>
  10. <% end %>
  11. <% if @query.valid? %>
  12. <% if @entries.empty? %>
  13. <p class="nodata"><%= l(:label_no_data) %></p>
  14. <% else %>
  15. <%= render :partial => @query.display_type, :locals => { :entries => @entries }%>
  16. <% end %>
  17. <% end %>
  18. <% if User.current.logged? %>
  19. <p style="text-align:right;">
  20. <span class="icon icon-user my-project"><%= l(:label_my_projects) %></span>
  21. <span class="icon icon-bookmarked-project"><%= l(:label_my_bookmarks) %></span>
  22. </p>
  23. <% end %>
  24. <% content_for :sidebar do %>
  25. <%= render :partial => 'projects/sidebar' %>
  26. <% end %>
  27. <% other_formats_links do |f| %>
  28. <%= f.link_to 'Atom', :url => {:key => User.current.atom_key} %>
  29. <% if @query.display_type == 'list' %>
  30. <%= f.link_to_with_query_parameters 'CSV', {}, :onclick => "showModal('csv-export-options', '350px'); return false;" %>
  31. <% end %>
  32. <% end %>
  33. <% html_title(l(:label_project_plural)) -%>