]> source.dussan.org Git - redmine.git/commitdiff
Adds a title attribute to the next/previous links on the activity view, containing...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 16 Mar 2008 14:18:36 +0000 (14:18 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 16 Mar 2008 14:18:36 +0000 (14:18 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1261 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/projects/activity.rhtml

index e8832fccc806877211d4831fad837c445d44b3a4..bb3f16da3a4e30b0c62f1b1085e60e153516ddee 100644 (file)
 <div style="float:left;">
 <%= link_to_remote(('&#171; ' + 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) + ' &#187;'), 
                    {: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>
 &nbsp;
 <p class="other-formats">