From 56513a8c6643761d34aceb1b3bc1298dd2bc1f4c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 5 May 2007 17:52:08 +0000 Subject: [PATCH] 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 --- app/views/projects/list_issues.rhtml | 5 +++-- public/images/reload.png | Bin 0 -> 528 bytes public/stylesheets/application.css | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 public/images/reload.png diff --git a/app/views/projects/list_issues.rhtml b/app/views/projects/list_issues.rhtml index 22e3b14a9..44ed90019 100644 --- a/app/views/projects/list_issues.rhtml +++ b/app/views/projects/list_issues.rhtml @@ -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 %>
<%= 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 %>

<%= @query.name %>

<% end %> diff --git a/public/images/reload.png b/public/images/reload.png new file mode 100644 index 0000000000000000000000000000000000000000..c5eb34ee0a86e434ede6363af94b62c6c6351839 GIT binary patch literal 528 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbL!PKj$oiE~kEVo7FxoQosX}gIrh<`yfw_XArIm@Lm4S(Zwt=C6!G%svN1#6T5>H=O_Uo*yf<}DWe?47* zLYxI2k;M!Q+(IDCc|W2(W8c63UwiCc%Fr2TPz zHupHsaBNQ68?|baLx~ZCAfvpzmwD!&HG9_g*)E;(e#=`Q=_G}{?&0xoPj*aTn9%XE zAoy1iAE(T_LZxGcI*-!4PJBKZm+w3!_*p}n?6Z_o-WTj&856RtRtrD3wYK74l{?og z>aEefe!eTrCpE>EMyrrjNA5$IsG}2|CiAtlP8N$A|B`q O1_n=8KbLh*2~7Ye;PsFI literal 0 HcmV?d00001 diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 7cc0f3d86..0503e36fb 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -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); }