Bugzilla – Attachment 45220 Details for
Bug 11038
Enable use of IntranetUserCSS and intranetcolorstylesheet on staff client login page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11038: Enable use of IntranetUserCSS on staff client login page
Bug-11038-Enable-use-of-IntranetUserCSS-on-staff-c.patch (text/plain), 2.89 KB, created by
Bernardo Gonzalez Kriegel
on 2015-11-28 14:48:38 UTC
(
hide
)
Description:
Bug 11038: Enable use of IntranetUserCSS on staff client login page
Filename:
MIME Type:
Creator:
Bernardo Gonzalez Kriegel
Created:
2015-11-28 14:48:38 UTC
Size:
2.89 KB
patch
obsolete
>From e1310b281089fcc69015b6dbc0c016399cc2dba4 Mon Sep 17 00:00:00 2001 >From: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Date: Sat, 28 Nov 2015 11:33:37 -0300 >Subject: [PATCH] Bug 11038: Enable use of IntranetUserCSS on staff client > login page > >This patch enable use of IntranetUserCss on staff client >login page. > >To test: >1) Add something to IntranetUserCSS to modify login page, >for example > > #login h1 a { > height:30px; > } > >2) Logout from staff client, no changes on login page. >3) Apply the patch >4) Reload, now logo is cut in half :) >Bonus) Login again an try changing image, add > > #login h1 { > background: url(http://example.com/img/other-logo.png) no-repeat top center; > } > >and fix height. Logout and check > >This also affects 3.20 and perhaps earlier versions. >Re-upload to fix examples >--- > C4/Auth.pm | 1 + > koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc | 2 +- > 2 files changed, 2 insertions(+), 1 deletion(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index 8c6d747..8512fd9 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -1229,6 +1229,7 @@ sub checkauth { > intranetbookbag => C4::Context->preference("intranetbookbag"), > IntranetNav => C4::Context->preference("IntranetNav"), > IntranetFavicon => C4::Context->preference("IntranetFavicon"), >+ IntranetUserCSS => C4::Context->preference("IntranetUserCSS"), > IntranetUserJS => C4::Context->preference("IntranetUserJS"), > IndependentBranches => C4::Context->preference("IndependentBranches"), > AutoLocation => C4::Context->preference("AutoLocation"), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc >index 73514c2..3e99a52 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc >@@ -10,7 +10,6 @@ > <link rel="stylesheet" type="text/css" media="print" href="[% themelang %]/css/print.css" /> > [% INCLUDE intranetstylesheet.inc %] > [% IF ( bidi ) %]<link rel="stylesheet" type="text/css" href="[% themelang %]/css/right-to-left.css" />[% END %] >-[% IF ( IntranetUserCSS ) %]<style type="text/css">[% IntranetUserCSS %]</style>[% END %] > > <script type="text/javascript" src="[% interface %]/lib/jquery/jquery.js"></script> > <script type="text/javascript" src="[% interface %]/lib/jquery/jquery-ui.js"></script> >@@ -23,6 +22,7 @@ > [% IF ( login ) %] > <link rel="stylesheet" type="text/css" href="[% themelang %]/css/login.css" /> > [% END %] >+[% IF ( IntranetUserCSS ) %]<style type="text/css">[% IntranetUserCSS %]</style>[% END %] > > <!-- koha core js --> > <script type="text/javascript" src="[% themelang %]/js/staff-global.js"></script> >-- >1.9.1
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 11038
:
45219
|
45220
|
45237
|
45273