##// END OF EJS Templates
Introduce virtual MenuNodes (#15880)....
Introduce virtual MenuNodes (#15880). They are characterized by having a blank url. they will only be rendered if the user is authorized to see at least one of its children. they render as links which do nothing when clicked. Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@15501 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r15048:a6828512c02b
r15119:53710d80fc88
Show More
index.html.erb
127 lines | 5.7 KiB | text/plain | TextLexer
Jean-Philippe Lang
Makes saved query filters visible (#2883)....
r2778 <div class="contextual">
Jean-Philippe Lang
Adds Issue#allowed_target_trackers (#7839)....
r15048 <% if User.current.allowed_to?(:add_issues, @project, :global => true) && (@project.nil? || Issue.allowed_target_trackers(@project).any?) %>
Jean-Philippe Lang
Adds a "New issue" link on the global issue list (#6204)....
r14963 <%= link_to l(:label_issue_new), _new_project_issue_path(@project), :class => 'icon icon-add new-issue' %>
Jean-Philippe Lang
Removed the "New issue" menu item (#6204)....
r14962 <% end %>
Jean-Philippe Lang
Makes saved query filters visible (#2883)....
r2778 </div>
Jean-Philippe Lang
Removed unneeded #h calls in views....
r13661 <h2><%= @query.new_record? ? l(:label_issue_plural) : @query.name %></h2>
Etienne Massip
Remove unecessary page title HTML escaping from views (#9252)....
r7445 <% html_title(@query.new_record? ? l(:label_issue_plural) : @query.name) %>
Jean-Philippe Lang
Makes saved query filters visible (#2883)....
r2778
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 <%= form_tag({ :controller => 'issues', :action => 'index', :project_id => @project },
Toshi MARUYAMA
code layout clean up app/views/issues/index.html.erb...
r8394 :method => :get, :id => 'query_form') do %>
Jean-Philippe Lang
Wrap filters, options and buttons with extra div (#15362)....
r12370 <div id="query_form_with_buttons" class="hide-when-print">
Jean-Philippe Lang
Converted issue filters to non-AJAX GET requests (#1965)....
r5156 <%= hidden_field_tag 'set_filter', '1' %>
Jean-Philippe Lang
Wrap filters, options and buttons with extra div (#15362)....
r12370 <div id="query_form_content">
Jean-Philippe Lang
Filters collapsed by default for saved queries (#4623)....
r3415 <fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>">
Toshi MARUYAMA
replace tabs to spaces at app/views/issues/index.html.erb...
r7216 <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>
<div style="<%= @query.new_record? ? "" : "display: none;" %>">
<%= render :partial => 'queries/filters', :locals => {:query => @query} %>
</div>
Jean-Philippe Lang
Ticket grouping (#2679)....
r2604 </fieldset>
Jean-Philippe Lang
Add id and class for easier styling of query filters (#22018)....
r14873 <fieldset id="options" class="collapsible collapsed">
Toshi MARUYAMA
replace tabs to spaces at app/views/issues/index.html.erb...
r7216 <legend onclick="toggleFieldset(this);"><%= l(:label_options) %></legend>
<div style="display: none;">
<table>
<tr>
Jean-Philippe Lang
Add id and class for easier styling of query filters (#22018)....
r14873 <td class="field"><%= l(:field_column_names) %></td>
Jean-Philippe Lang
Adds an helper for rendering query columns selection....
r11222 <td><%= render_query_columns_selection(@query) %></td>
Toshi MARUYAMA
replace tabs to spaces at app/views/issues/index.html.erb...
r7216 </tr>
<tr>
Jean-Philippe Lang
Add id and class for easier styling of query filters (#22018)....
r14873 <td class="field"><label for='group_by'><%= l(:field_group_by) %></label></td>
Toshi MARUYAMA
code layout clean up app/views/issues/index.html.erb...
r8394 <td><%= select_tag('group_by',
options_for_select(
[[]] + @query.groupable_columns.collect {|c| [c.caption, c.name.to_s]},
@query.group_by)
) %></td>
Toshi MARUYAMA
replace tabs to spaces at app/views/issues/index.html.erb...
r7216 </tr>
Jean-Philippe Lang
Adds an option for displaying the issue description on the issue list (#3447)....
r10721 <tr>
Jean-Philippe Lang
Add id and class for easier styling of query filters (#22018)....
r14873 <td class="field"><%= l(:button_show) %></td>
Jean-Philippe Lang
Adds an option for displaying the issue description on the issue list (#3447)....
r10721 <td><%= available_block_columns_tags(@query) %></td>
</tr>
Jean-Philippe Lang
Adds options to display totals on the issue list (#1561)....
r14260 <tr>
<td><%= l(:label_total_plural) %></td>
<td><%= available_totalable_columns_tags(@query) %></td>
</tr>
Toshi MARUYAMA
replace tabs to spaces at app/views/issues/index.html.erb...
r7216 </table>
</div>
</fieldset>
</div>
Jean-Philippe Lang
Wrap filters, options and buttons with extra div (#15362)....
r12370 <p class="buttons">
Jean-Philippe Lang
Removed submit_query_form function....
r13235 <%= link_to_function l(:button_apply), '$("#query_form").submit()', :class => 'icon icon-checked' %>
Jean-Philippe Lang
Converted issue filters to non-AJAX GET requests (#1965)....
r5156 <%= link_to l(:button_clear), { :set_filter => 1, :project_id => @project }, :class => 'icon icon-reload' %>
Jean-Philippe Lang
Removed the "New issue" menu item (#6204)....
r14962 <% if @query.new_record? %>
<% if User.current.allowed_to?(:save_queries, @project, :global => true) %>
Toshi MARUYAMA
code layout clean up app/views/issues/index.html.erb...
r8394 <%= link_to_function l(:button_save),
Jean-Philippe Lang
Removed submit_query_form function....
r13235 "$('#query_form').attr('action', '#{ @project ? new_project_query_path(@project) : new_query_path }').submit()",
Toshi MARUYAMA
code layout clean up app/views/issues/index.html.erb...
r8394 :class => 'icon icon-save' %>
Jean-Philippe Lang
Removed the "New issue" menu item (#6204)....
r14962 <% end %>
<% else %>
<% if @query.editable_by?(User.current) %>
<%= link_to l(:button_edit), edit_query_path(@query), :class => 'icon icon-edit' %>
<%= delete_link query_path(@query) %>
<% end %>
Jean-Philippe Lang
ProjectsController#list_issues, #export_issues_csv and #export_issues_pdf merged into IssuesController#index...
r874 <% end %>
Jean-Philippe Lang
Fix IE6 display bug on the issue list....
r1270 </p>
Jean-Philippe Lang
Wrap filters, options and buttons with extra div (#15362)....
r12370 </div>
Jean-Philippe Lang
Added a cross-project issue list. It displays the issues of all the projects visible by the user....
r673 <% end %>
Jean-Philippe Lang
Ticket grouping (#2679)....
r2604
Jean-Philippe Lang
Added a cross-project issue list. It displays the issues of all the projects visible by the user....
r673 <%= error_messages_for 'query' %>
<% if @query.valid? %>
<% if @issues.empty? %>
Jean-Philippe Lang
ProjectsController#list_issues, #export_issues_csv and #export_issues_pdf merged into IssuesController#index...
r874 <p class="nodata"><%= l(:label_no_data) %></p>
Jean-Philippe Lang
Added a cross-project issue list. It displays the issues of all the projects visible by the user....
r673 <% else %>
Jean-Philippe Lang
Adds options to display totals on the issue list (#1561)....
r14260 <%= render_query_totals(@query) %>
Jean-Philippe Lang
Added the ability to customize columns of a saved query....
r771 <%= render :partial => 'issues/list', :locals => {:issues => @issues, :query => @query} %>
Jean-Philippe Lang
Use ul tags to do pagination (#21258)....
r14515 <span class="pagination"><%= pagination_links_full @issue_pages, @issue_count %></span>
Eric Davis
Allow the other format links to appear on the issue list (ATOM, PDF, CSV)....
r2425 <% end %>
Jean-Philippe Lang
Display links to Atom feeds (closes #496, #750)....
r1171
Jean-Philippe Lang
Adds an helper to render other formats download links....
r2331 <% other_formats_links do |f| %>
Toshi MARUYAMA
replace tabs to spaces at app/views/issues/index.html.erb...
r7216 <%= f.link_to 'Atom', :url => params.merge(:key => User.current.rss_key) %>
Jean-Philippe Lang
Show warning when exported issues exceed the limit (#13770)....
r12388 <%= f.link_to 'CSV', :url => params, :onclick => "showModal('csv-export-options', '350px'); return false;" %>
Toshi MARUYAMA
replace tabs to spaces at app/views/issues/index.html.erb...
r7216 <%= f.link_to 'PDF', :url => params %>
Jean-Philippe Lang
Adds an helper to render other formats download links....
r2331 <% end %>
Jean-Philippe Lang
Adds a dialog box for CSV export options (#4742)....
r7754 <div id="csv-export-options" style="display:none;">
Jean-Philippe Lang
Adds query params as hidden field tags to the CSV export form (#22108)....
r14820 <h3 class="title"><%= l(:label_export_options, :export_format => 'CSV') %></h3>
<%= form_tag(_project_issues_path(@project, :format => 'csv'), :method => :get, :id => 'csv-export-form') do %>
<%= query_as_hidden_field_tags(@query) %>
Jean-Philippe Lang
Sort criteria defined in custom queries are not applied when exporting to CSV (#22354)....
r14916 <%= hidden_field_tag 'sort', @sort_criteria.to_param, :id => nil %>
Jean-Philippe Lang
Adds a dialog box for CSV export options (#4742)....
r7754 <p>
Jean-Philippe Lang
Isolates csv options for a hash param (#1159)....
r14292 <label><%= radio_button_tag 'csv[columns]', '', true %> <%= l(:description_selected_columns) %></label><br />
<label><%= radio_button_tag 'csv[columns]', 'all' %> <%= l(:description_all_columns) %></label>
Jean-Philippe Lang
Adds a dialog box for CSV export options (#4742)....
r7754 </p>
<p>
Jean-Philippe Lang
Isolates csv options for a hash param (#1159)....
r14292 <label><%= check_box_tag 'csv[description]', '1', @query.has_column?(:description) %> <%= l(:field_description) %></label>
Jean-Philippe Lang
Adds a dialog box for CSV export options (#4742)....
r7754 </p>
Jean-Philippe Lang
Show warning when exported issues exceed the limit (#13770)....
r12388 <% if @issue_count > Setting.issues_export_limit.to_i %>
<p class="icon icon-warning">
<%= l(:setting_issues_export_limit) %>: <%= Setting.issues_export_limit.to_i %>
</p>
<% end %>
Jean-Philippe Lang
CSS class for modal box buttons....
r7811 <p class="buttons">
Jean-Philippe Lang
Adds a dialog box for CSV export options (#4742)....
r7754 <%= submit_tag l(:button_export), :name => nil, :onclick => "hideModal(this);" %>
<%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %>
</p>
<% end %>
</div>
Jean-Philippe Lang
Added a cross-project issue list. It displays the issues of all the projects visible by the user....
r673 <% end %>
Eric Davis
Add :view_issues_index_bottom hook. #5169...
r3728 <%= call_hook(:view_issues_index_bottom, { :issues => @issues, :project => @project, :query => @query }) %>
Jean-Philippe Lang
ProjectsController#list_issues, #export_issues_csv and #export_issues_pdf merged into IssuesController#index...
r874
<% content_for :sidebar do %>
<%= render :partial => 'issues/sidebar' %>
Jean-Philippe Lang
Queries can be marked as 'For all projects'. Such queries will be available on all projects and on the global issue list (#897, closes #671)....
r1296 <% end %>
Jean-Philippe Lang
Added atom feed on the new cross-project issue list....
r675
<% content_for :header_tags do %>
Toshi MARUYAMA
code layout clean up app/views/issues/index.html.erb...
r8394 <%= auto_discovery_link_tag(:atom,
{:query_id => @query, :format => 'atom',
:page => nil, :key => User.current.rss_key},
:title => l(:label_issue_plural)) %>
<%= auto_discovery_link_tag(:atom,
{:controller => 'journals', :action => 'index',
:query_id => @query, :format => 'atom',
:page => nil, :key => User.current.rss_key},
:title => l(:label_changes_details)) %>
Jean-Philippe Lang
Added atom feed on the new cross-project issue list....
r675 <% end %>
Jean-Philippe Lang
Fixed: context menu not available if the initial issue list is empty....
r1119
Eric Davis
Refactor: move IssuesController#context_menu to a new controller....
r3892 <%= context_menu issues_context_menu_path %>