]> source.dussan.org Git - redmine.git/commitdiff
Don't render an empty li tag (#23192).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 30 Jun 2016 20:14:49 +0000 (20:14 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 30 Jun 2016 20:14:49 +0000 (20:14 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@15597 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/activities/index.html.erb

index f1a25e664084c3ca2b9026cdec727f5926110085..748e60fd129e439781c960a3d1ea7fac0daaf5cb 100644 (file)
                    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>