Bugzilla – Attachment 30319 Details for
Bug 12162
Add class="branchcode" to body tag to make OPAC CSS-styleable per branch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12162 Add class="branchcode" to body tag to make OPAC CSS-styleable per branch
Bug-12162-Add-classbranchcode-to-body-tag-to-make-.patch (text/plain), 1.53 KB, created by
Marc Véron
on 2014-07-30 09:43:10 UTC
(
hide
)
Description:
Bug 12162 Add class="branchcode" to body tag to make OPAC CSS-styleable per branch
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2014-07-30 09:43:10 UTC
Size:
1.53 KB
patch
obsolete
>From 46eddc60e05590d7d25a0aaaa9d4b6e14dd1c143 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Fri, 18 Jul 2014 23:41:02 +0200 >Subject: [PATCH] Bug 12162 Add class="branchcode" to body tag to make OPAC > CSS-styleable per branch > >New proof of concept, with opac-main.tt only (in bootstrap), not for signing-off. > >It shows how branchcode class would be inserted. >If no branch is selected, body tag is: ><body id="opac-main" class="branch-"> >If e.g. branch FFL is selected, body tag is ><body id="opac-main" class="branch-FFL "> > >Examples to test styling in OpacUserCSS: >/*No branch, default*/ >.branch- { >background-color: orange; >border: 10px solid green; >} > >/*Branch FFL*/ >.branch-FFL { >background-color: yellow; >border: 10px solid pink; >} > >To see what files would have to be changed: >Go to folder: >koha-tmpl/opac-tmpl/bootstrap/en >git grep "<body" > >Comments welcome. >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >index 5b68c19..12f0fa4 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >@@ -4,7 +4,7 @@ > [% INCLUDE 'doc-head-close.inc' %] > [% BLOCK cssinclude %][% END %] > </head> >-<body id="opac-main"> >+<body id="opac-main" class="branch-[% IF ( LoginBranchcode ) %][%LoginBranchcode%] [% END %]"> > [% INCLUDE 'masthead.inc' %] > > <div class="main"> >-- >1.7.10.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 12162
:
27784
|
27811
|
30319
|
30536
|
30537
|
30606
|
30607
|
30770
|
31803
|
31807