Project

General

Profile

Patch #26671 » pagination_in_gantt.diff

patch - Go MAEDA, 2017-08-14 07:33

View differences:

app/views/gantts/show.html.erb (working copy)
335 335
</tr>
336 336
</table>
337 337

  
338
<table style="width:100%">
339
<tr>
340
  <td style="text-align:left;">
341
    <%= link_to("\xc2\xab " + l(:label_previous),
342
                               {:params => request.query_parameters.merge(@gantt.params_previous)},
343
                               :accesskey => accesskey(:previous)) %>
344
  </td>
345
  <td style="text-align:right;">
346
    <%= link_to(l(:label_next) + " \xc2\xbb",
347
                               {:params => request.query_parameters.merge(@gantt.params_next)},
348
                               :accesskey => accesskey(:next)) %>
349
  </td>
350
</tr>
351
</table>
338
<span class="pagination">
339
  <ul class="pages">
340
    <li class="previous page">
341
      <%= link_to("\xc2\xab " + l(:label_previous),
342
                                 {:params => request.query_parameters.merge(@gantt.params_previous)},
343
                                 :accesskey => accesskey(:previous)) %>
344
    </li><li class="next page">
345
      <%= link_to(l(:label_next) + " \xc2\xbb",
346
                                 {:params => request.query_parameters.merge(@gantt.params_next)},
347
                                 :accesskey => accesskey(:next)) %>
348
    </li>
349
  </ul>
350
</span>
352 351

  
353 352
<% other_formats_links do |f| %>
354 353
  <%= f.link_to_with_query_parameters 'PDF', @gantt.params %>
(3-3/3)