diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/views/activities/index.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/activities/index.html.erb b/app/views/activities/index.html.erb index f1a25e664..748e60fd1 100644 --- a/app/views/activities/index.html.erb +++ b/app/views/activities/index.html.erb @@ -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> |