@@ -1,68 +1,68 | |||
|
1 | 1 | <% if @query.new_record? %> |
|
2 | 2 | <h2><%=l(:label_issue_plural)%></h2> |
|
3 | 3 | <% html_title(l(:label_issue_plural)) %> |
|
4 | 4 | |
|
5 | 5 | <% form_tag({ :controller => 'queries', :action => 'new' }, :id => 'query_form') do %> |
|
6 | 6 | <%= hidden_field_tag('project_id', @project.to_param) if @project %> |
|
7 | 7 | <fieldset id="filters"><legend><%= l(:label_filter_plural) %></legend> |
|
8 | 8 | <%= render :partial => 'queries/filters', :locals => {:query => @query} %> |
|
9 | 9 | <p class="buttons"> |
|
10 | 10 | <%= link_to_remote l(:button_apply), |
|
11 | 11 | { :url => { :set_filter => 1 }, |
|
12 | 12 | :update => "content", |
|
13 | 13 | :with => "Form.serialize('query_form')" |
|
14 | 14 | }, :class => 'icon icon-checked' %> |
|
15 | 15 | |
|
16 | 16 | <%= link_to_remote l(:button_clear), |
|
17 | 17 | { :url => { :set_filter => 1, :project_id => @project }, |
|
18 | 18 | :method => :get, |
|
19 | 19 | :update => "content", |
|
20 | 20 | }, :class => 'icon icon-reload' %> |
|
21 | 21 | |
|
22 | 22 | <% if User.current.allowed_to?(:save_queries, @project, :global => true) %> |
|
23 | 23 | <%= link_to l(:button_save), {}, :onclick => "$('query_form').submit(); return false;", :class => 'icon icon-save' %> |
|
24 | 24 | <% end %> |
|
25 | 25 | </p> |
|
26 | 26 | </fieldset> |
|
27 | 27 | <% end %> |
|
28 | 28 | <% else %> |
|
29 | 29 | <div class="contextual"> |
|
30 | 30 | <% if @query.editable_by?(User.current) %> |
|
31 | 31 | <%= link_to l(:button_edit), {:controller => 'queries', :action => 'edit', :id => @query}, :class => 'icon icon-edit' %> |
|
32 | 32 | <%= link_to l(:button_delete), {:controller => 'queries', :action => 'destroy', :id => @query}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %> |
|
33 | 33 | <% end %> |
|
34 | 34 | </div> |
|
35 | 35 | <h2><%=h @query.name %></h2> |
|
36 | 36 | <div id="query_form"></div> |
|
37 | 37 | <% html_title @query.name %> |
|
38 | 38 | <% end %> |
|
39 | 39 | <%= error_messages_for 'query' %> |
|
40 | 40 | <% if @query.valid? %> |
|
41 | 41 | <% if @issues.empty? %> |
|
42 | 42 | <p class="nodata"><%= l(:label_no_data) %></p> |
|
43 | 43 | <% else %> |
|
44 | 44 | <%= render :partial => 'issues/list', :locals => {:issues => @issues, :query => @query} %> |
|
45 | 45 | <p class="pagination"><%= pagination_links_full @issue_pages, @issue_count %></p> |
|
46 | <% end %> | |
|
46 | 47 | |
|
47 | 48 | <% other_formats_links do |f| %> |
|
48 | 49 | <%= f.link_to 'Atom', :url => {:query_id => (@query.new_record? ? nil : @query), :key => User.current.rss_key} %> |
|
49 | 50 | <%= f.link_to 'CSV' %> |
|
50 | 51 | <%= f.link_to 'PDF' %> |
|
51 | 52 | <% end %> |
|
52 | 53 | |
|
53 | 54 | <% end %> |
|
54 | <% end %> | |
|
55 | 55 | |
|
56 | 56 | <% content_for :sidebar do %> |
|
57 | 57 | <%= render :partial => 'issues/sidebar' %> |
|
58 | 58 | <% end %> |
|
59 | 59 | |
|
60 | 60 | <% content_for :header_tags do %> |
|
61 | 61 | <%= auto_discovery_link_tag(:atom, {:query_id => @query, :format => 'atom', :page => nil, :key => User.current.rss_key}, :title => l(:label_issue_plural)) %> |
|
62 | 62 | <%= auto_discovery_link_tag(:atom, {:action => 'changes', :query_id => @query, :format => 'atom', :page => nil, :key => User.current.rss_key}, :title => l(:label_changes_details)) %> |
|
63 | 63 | <%= javascript_include_tag 'context_menu' %> |
|
64 | 64 | <%= stylesheet_link_tag 'context_menu' %> |
|
65 | 65 | <% end %> |
|
66 | 66 | |
|
67 | 67 | <div id="context-menu" style="display: none;"></div> |
|
68 | 68 | <%= javascript_tag "new ContextMenu('#{url_for(:controller => 'issues', :action => 'context_menu')}')" %> |
General Comments 0
You need to be logged in to leave comments.
Login now