Bugzilla – Attachment 89907 Details for
Bug 22935
Improve style of Bootstrap pagination
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22935: Improve style of Bootstrap pagination
Bug-22935-Improve-style-of-Bootstrap-pagination.patch (text/plain), 4.42 KB, created by
Owen Leonard
on 2019-05-17 15:09:49 UTC
(
hide
)
Description:
Bug 22935: Improve style of Bootstrap pagination
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2019-05-17 15:09:49 UTC
Size:
4.42 KB
patch
obsolete
>From d8fb0e204a320462f9455c07cdc0ab6e847b8ada Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 17 May 2019 15:03:24 +0000 >Subject: [PATCH] Bug 22935: Improve style of Bootstrap pagination > >This patch makes some updates to the staff client CSS and adds Font >Awesome icons to the Bootstrap pagination include. > >To test, apply the patch and rebuild the staff client CSS. > >Perform a search in the staff client which will return multiple pages of >results. Check that the pagination links look good. >--- > .../intranet-tmpl/prog/css/src/staff-global.scss | 28 ++++++++++++++++++++++ > .../prog/en/includes/page-numbers.inc | 8 +++---- > 2 files changed, 32 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >index 0ac6b70..931b351 100644 >--- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >+++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >@@ -3358,6 +3358,34 @@ nav { > text-decoration: none; > } > >+.pagination { >+ margin:.5em .8em; >+ >+ .active { >+ a { >+ background-color: #5A9EAA; >+ border-color: #5A9EAA; >+ >+ &:hover, >+ &:focus { >+ background-color: #5A9EAA; >+ border-color: #5A9EAA; >+ } >+ } >+ >+ span { >+ background-color: #5A9EAA; >+ border-color: #5A9EAA; >+ >+ &:hover, >+ &:focus { >+ background-color: #5A9EAA; >+ border-color: #5A9EAA; >+ } >+ } >+ } >+} >+ > button, > .btn { > border-color: #ADADAD #ADADAD #949494; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/page-numbers.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/page-numbers.inc >index 6ea10c1..4fb9a6b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/page-numbers.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/page-numbers.inc >@@ -1,9 +1,9 @@ > [% IF ( PAGE_NUMBERS ) %]<nav><ul class="pagination"> > [% IF hits_to_paginate < total %]<h6>[% hits_to_paginate | html %] of [% total | html %] results loaded, refine your search to view other records</h6>[% END %] > [% IF ( previous_page_offset.defined ) %] >- <li><a class="nav" href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %][% IF ( sort_by ) %]&sort_by=[% sort_by |url %][% END %]">First</a></li> >+ <li><a class="nav" href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %][% IF ( sort_by ) %]&sort_by=[% sort_by |url %][% END %]"><i class="fa fa-fw fa-angle-double-left"></i> First</a></li> > <!-- Row of numbers corresponding to search result pages --> >- <li><a class="nav" href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&offset=[% previous_page_offset | html %][% IF ( sort_by ) %]&sort_by=[% sort_by |url %][% END %]"><< Previous</a></li> >+ <li><a class="nav" href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&offset=[% previous_page_offset | html %][% IF ( sort_by ) %]&sort_by=[% sort_by |url %][% END %]"><i class="fa fa-fw fa-angle-left"></i> Previous</a></li> > [% END %] > [% FOREACH PAGE_NUMBER IN PAGE_NUMBERS %] > [% IF ( PAGE_NUMBER.highlight ) %] >@@ -13,7 +13,7 @@ > [% END %] > [% END %] > [% IF ( next_page_offset ) %] >- <li><a class="nav" href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&offset=[% next_page_offset | html %][% IF ( sort_by ) %]&sort_by=[% sort_by |url %][% END %]">Next >></a></li> >- <li><a class="nav" href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&offset=[% last_page_offset | html %][% IF ( sort_by ) %]&sort_by=[% sort_by |url %][% END %]">Last</a></li> >+ <li><a class="nav" href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&offset=[% next_page_offset | html %][% IF ( sort_by ) %]&sort_by=[% sort_by |url %][% END %]">Next <i class="fa fa-fw fa-angle-right"></i></a></li> >+ <li><a class="nav" href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&offset=[% last_page_offset | html %][% IF ( sort_by ) %]&sort_by=[% sort_by |url %][% END %]">Last <i class="fa fa-fw fa-angle-double-right"></i></a></li> > [% END %] > </ul></nav>[% END %] >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22935
:
89906
|
89907
|
89913
|
89914
|
90034