Bugzilla – Attachment 30537 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.09 KB, created by
Marc Véron
on 2014-08-04 15:59:46 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-08-04 15:59:46 UTC
Size:
1.09 KB
patch
obsolete
>From 9fa12143c02e295f2d5b8be31c7f24430b3fa931 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Tue, 22 Jul 2014 17:08:16 +0200 >Subject: [PATCH] Bug 12162 Add class="branchcode" to body tag to make OPAC > CSS-styleable per branch > >New proof of concept, for testing translations, with if-construct outside of html tags. >However, one var is inside. >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt | 7 ++++++- > 1 file changed, 6 insertions(+), 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..486fda2 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,12 @@ > [% INCLUDE 'doc-head-close.inc' %] > [% BLOCK cssinclude %][% END %] > </head> >-<body id="opac-main"> >+ >+[% IF ( LoginBranchcode ) %] >+<body id="opac-main" class="branch-[%LoginBranchcode%]"> >+[% ELSE %] >+<body id="opac-main" class="branch-default"> >+[% 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