Added a "clear" link when displaying a saved query. It clears the query filter to show all issues.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@513 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-05-05 17:52:08 +00:00
parent 8b1455c945
commit 56513a8c66
3 changed files with 4 additions and 2 deletions

View File

@ -17,7 +17,7 @@
<%= link_to_remote l(:button_clear),
{ :url => {:controller => 'projects', :action => 'list_issues', :id => @project, :set_filter => 1},
:update => "content",
}, :class => 'icon icon-del' %>
}, :class => 'icon icon-reload' %>
<% if authorize_for('projects', 'add_query') %>
<%= link_to_remote l(:button_save),
@ -32,10 +32,11 @@
<% else %>
<div class="contextual">
<%= render :partial => 'issues/add_shortcut', :locals => {:trackers => @trackers } %>
<%= link_to l(:button_clear), {:controller => 'projects', :action => 'list_issues', :id => @project, :set_filter => 1}, :class => 'icon icon-reload' %>
<% if authorize_for('projects', 'add_query') %>
<%= link_to l(:button_edit), {:controller => 'queries', :action => 'edit', :id => @query}, :class => 'icon icon-edit' %>
<%= link_to l(:button_delete), {:controller => 'queries', :action => 'destroy', :id => @query}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
<% end %>
<% end %>
</div>
<h2><%= @query.name %></h2>
<% end %>

BIN
public/images/reload.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 528 B

View File

@ -162,6 +162,7 @@ vertical-align: middle;
.icon-warning { background-image: url(../images/warning.png); }
.icon-fav { background-image: url(../images/fav.png); }
.icon-fav-off { background-image: url(../images/fav_off.png); }
.icon-reload { background-image: url(../images/reload.png); }
.icon22-projects { background-image: url(../images/22x22/projects.png); }
.icon22-users { background-image: url(../images/22x22/users.png); }