Commit 9d3a6d70 authored by jplang's avatar jplang

Don't render an empty li tag (#23192).

git-svn-id: https://svn.redmine.org/redmine/trunk@15597 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent fa220028
......@@ -28,11 +28,11 @@
params.merge(:from => @date_to - @days - 1),
:title => l(:label_date_from_to, :start => format_date(@date_to - 2*@days), :end => format_date(@date_to - @days - 1)),
:accesskey => accesskey(:previous)) %>
</li><li class="next page">
</li><% unless @date_to >= User.current.today %><li class="next page">
<%= link_to_content_update(l(:label_next) + " \xc2\xbb",
params.merge(:from => @date_to + @days - 1),
:title => l(:label_date_from_to, :start => format_date(@date_to), :end => format_date(@date_to + @days - 1)),
:accesskey => accesskey(:next)) unless @date_to >= User.current.today %>
:accesskey => accesskey(:next)) %><% end %>
</li>
</ul>
</span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment