From 006c6a4e01f7cd5ed179d1010e4507be79847927 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sun, 7 May 2023 00:18:33 +0000 Subject: [PATCH] Use the new pagination style for the calendars view (#27346). 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 | 12 +++++++++--- public/stylesheets/application.css | 1 + test/functional/calendars_controller_test.rb | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/app/views/calendars/show.html.erb b/app/views/calendars/show.html.erb index 76513f50e..d3d00a427 100644 --- a/app/views/calendars/show.html.erb +++ b/app/views/calendars/show.html.erb @@ -15,9 +15,15 @@ -

- <%= link_to_previous_month(@year, @month, :accesskey => accesskey(:previous)) %> | <%= link_to_next_month(@year, @month, :accesskey => accesskey(:next)) %> -

+ + +

<%= label_tag('month', l(:label_month)) %> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 0f4561de2..7d256832b 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -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;} diff --git a/test/functional/calendars_controller_test.rb b/test/functional/calendars_controller_test.rb index dc7698e9a..e5a4a6e94 100644 --- a/test/functional/calendars_controller_test.rb +++ b/test/functional/calendars_controller_test.rb @@ -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 -- 2.39.5