Project

General

Profile

Patch #23192 » pagination_in_activity_page.diff

Marius BĂLTEANU, 2016-06-29 07:13

View differences:

app/views/activities/index.html.erb
21 21

  
22 22
<%= content_tag('p', l(:label_no_data), :class => 'nodata') if @events_by_day.empty? %>
23 23

  
24
<div style="float:left;">
24
<span class="pagination">
25
  <ul class="pages">
26
    <li class="previous">
25 27
<%= link_to_content_update("\xc2\xab " + l(:label_previous),
26 28
                   params.merge(:from => @date_to - @days - 1),
27 29
                   :title => l(:label_date_from_to, :start => format_date(@date_to - 2*@days), :end => format_date(@date_to - @days - 1)),
28 30
                   :accesskey => accesskey(:previous)) %>
29
</div>
30
<div style="float:right;">
31
    </li>
32
    <li class="next">
31 33
<%= link_to_content_update(l(:label_next) + " \xc2\xbb",
32 34
                   params.merge(:from => @date_to + @days - 1),
33 35
                   :title => l(:label_date_from_to, :start => format_date(@date_to), :end => format_date(@date_to + @days - 1)),
34 36
                   :accesskey => accesskey(:next)) unless @date_to >= User.current.today %>
35
</div>
37
    </li>
38
  </ul>
39
</span>
36 40
&nbsp;
37 41
<% other_formats_links do |f| %>
38 42
  <%= f.link_to 'Atom', :url => params.merge(:from => nil, :key => User.current.rss_key) %>
(3-3/3)