]> source.dussan.org Git - redmine.git/commitdiff
Add the new pagination style in the activity page (#23192).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 29 Jun 2016 15:44:05 +0000 (15:44 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 29 Jun 2016 15:44:05 +0000 (15:44 +0000)
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@15589 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/activities/index.html.erb

index c191ccba56a40e99b06320c6e94cd6afd41a5d58..a135f97ff2ce72c4e2bbc4f8e18059d2b1d1b397 100644 (file)
 
 <%= content_tag('p', l(:label_no_data), :class => 'nodata') if @events_by_day.empty? %>
 
-<div style="float:left;">
+<span class="pagination">
+  <ul class="pages">
+    <li class="previous">
 <%= link_to_content_update("\xc2\xab " + l(:label_previous),
                    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)) %>
-</div>
-<div style="float:right;">
+    </li>
+    <li class="next">
 <%= 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 %>
-</div>
+    </li>
+  </ul>
+</span>
 &nbsp;
 <% other_formats_links do |f| %>
   <%= f.link_to 'Atom', :url => params.merge(:from => nil, :key => User.current.rss_key) %>