diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-16 14:18:36 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-16 14:18:36 +0000 |
commit | 2eb085506b49bc460deaed8959cb905bfccbeaa6 (patch) | |
tree | e93fa3880d2f21012964b2e8161861e0161f2971 /app | |
parent | a8fcf8487d4165741cf8bffe71ce6302c6aab4e2 (diff) | |
download | redmine-2eb085506b49bc460deaed8959cb905bfccbeaa6.tar.gz redmine-2eb085506b49bc460deaed8959cb905bfccbeaa6.zip |
Adds a title attribute to the next/previous links on the activity view, containing the corresponding date range (#837).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1261 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/views/projects/activity.rhtml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/projects/activity.rhtml b/app/views/projects/activity.rhtml index e8832fccc..bb3f16da3 100644 --- a/app/views/projects/activity.rhtml +++ b/app/views/projects/activity.rhtml @@ -21,12 +21,14 @@ <div style="float:left;"> <%= link_to_remote(('« ' + l(:label_previous)), {:update => "content", :url => params.merge(:from => @date_to - @days), :complete => 'window.scrollTo(0,0)'}, - {:href => url_for(params.merge(:from => @date_to - @days))}) %> + {:href => url_for(params.merge(:from => @date_to - @days)), + :title => "#{l(:label_date_from)} #{format_date(@date_to - 2*@days)} #{l(:label_date_to).downcase} #{format_date(@date_to - @days - 1)}"}) %> </div> <div style="float:right;"> <%= link_to_remote((l(:label_next) + ' »'), {:update => "content", :url => params.merge(:from => @date_to + @days), :complete => 'window.scrollTo(0,0)'}, - {:href => url_for(params.merge(:from => @date_to + @days))}) unless @date_to >= Date.today %> + {:href => url_for(params.merge(:from => @date_to + @days)), + :title => "#{l(:label_date_from)} #{format_date(@date_to)} #{l(:label_date_to).downcase} #{format_date(@date_to + @days - 1)}"}) unless @date_to >= Date.today %> </div> <p class="other-formats"> |