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
This commit is contained in:
parent
a8fcf8487d
commit
2eb085506b
|
@ -21,12 +21,14 @@
|
||||||
<div style="float:left;">
|
<div style="float:left;">
|
||||||
<%= link_to_remote(('« ' + l(:label_previous)),
|
<%= link_to_remote(('« ' + l(:label_previous)),
|
||||||
{:update => "content", :url => params.merge(:from => @date_to - @days), :complete => 'window.scrollTo(0,0)'},
|
{: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>
|
||||||
<div style="float:right;">
|
<div style="float:right;">
|
||||||
<%= link_to_remote((l(:label_next) + ' »'),
|
<%= link_to_remote((l(:label_next) + ' »'),
|
||||||
{:update => "content", :url => params.merge(:from => @date_to + @days), :complete => 'window.scrollTo(0,0)'},
|
{: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>
|
</div>
|
||||||
|
|
||||||
<p class="other-formats">
|
<p class="other-formats">
|
||||||
|
|
Loading…
Reference in New Issue