]> source.dussan.org Git - redmine.git/commitdiff
Use the new pagination style for the calendars view (#27346).
authorGo MAEDA <maeda@farend.jp>
Sun, 7 May 2023 00:18:33 +0000 (00:18 +0000)
committerGo MAEDA <maeda@farend.jp>
Sun, 7 May 2023 00:18:33 +0000 (00:18 +0000)
Patch by Bernhard Rohloff.

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

app/views/calendars/show.html.erb
public/stylesheets/application.css
test/functional/calendars_controller_test.rb

index 76513f50e7def37cdc441e615f6b3819f5061b9f..d3d00a427eb26e4aa4463454aa6d58a5787f07b4 100644 (file)
   </fieldset>
 </div>
 
-<p class="contextual">
-  <%= link_to_previous_month(@year, @month, :accesskey => accesskey(:previous)) %> | <%= link_to_next_month(@year, @month, :accesskey => accesskey(:next)) %>
-</p>
+<span class="contextual pagination">
+  <ul class="pages">
+    <li class="previous page">
+      <%= link_to_previous_month(@year, @month, :accesskey => accesskey(:previous)) %>
+    </li><li class="next page">
+      <%= link_to_next_month(@year, @month, :accesskey => accesskey(:next)) %>
+    </li>
+  </ul>
+</span>
 
 <p class="buttons">
   <%= label_tag('month', l(:label_month)) %>
index 0f4561de24088279321cdd9815226d9ef5ba167f..7d256832bc77b1763c978fc9f60c0924d14d4b3e 100644 (file)
@@ -1116,6 +1116,7 @@ table.cal .starting a.issue, p.cal.legend .starting {background: url(../images/b
 table.cal .ending a.issue, p.cal.legend .ending {background: url(../images/bullet_end.png) no-repeat -1px -2px; padding-left:16px;}
 table.cal .starting.ending a.issue, p.cal.legend .starting.ending {background: url(../images/bullet_diamond.png) no-repeat -1px -2px; padding-left:16px;}
 p.cal.legend span {display:block;}
+.controller-calendars p.buttons {margin-top: unset;}
 
 /***** Tooltips ******/
 .tooltip{position:relative;z-index:24;}
index dc7698e9aca1c68b93bf1298e84fd63fc5cb8e9b..e5a4a6e946f7e0f2afe14657fb9190d0dac3a72f 100644 (file)
@@ -57,7 +57,7 @@ class CalendarsControllerTest < Redmine::ControllerTest
         assert_select 'div#query_form_content' do
           assert_select 'fieldset#filters.collapsible'
         end
-        assert_select 'p.contextual'
+        assert_select 'span.contextual.pagination'
         assert_select 'p.buttons'
       end
     end