Bugzilla – Attachment 77566 Details for
Bug 14272
Allow OPAC to show a single news entry
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14272: (follow-up) Fixing template error and layout
Bug-14272-follow-up-Fixing-template-error-and-layo.patch (text/plain), 3.50 KB, created by
Owen Leonard
on 2018-08-08 12:01:54 UTC
(
hide
)
Description:
Bug 14272: (follow-up) Fixing template error and layout
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2018-08-08 12:01:54 UTC
Size:
3.50 KB
patch
obsolete
>From 0379501251f8a2825e003f9f99629c3a98abcd62 Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Wed, 4 Jul 2018 01:08:17 +0000 >Subject: [PATCH] Bug 14272: (follow-up) Fixing template error and layout > >To test, confirm that OpacMainUserBlock and Quote of the Day do not show >if viewing a single news item, but do show otherwise. Confirm user >dashboard shows where expected > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../opac-tmpl/bootstrap/en/modules/opac-main.tt | 39 +++++++++++----------- > 1 file changed, 19 insertions(+), 20 deletions(-) > >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 b1b6ef6..87e5752 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >@@ -64,7 +64,6 @@ > > [% IF ( koha_news ) %] > >- > [% IF single_news_error %] > > <div class="alert alert-error"> >@@ -86,7 +85,7 @@ > > [% END %] > >- [% UNLESS news_item %] <!-- If single news item --> >+ [% UNLESS news_item %] <!-- unless single news item --> > > <div id="rssnews-container"> > <!-- Logged in users have a branch code or it could be explicitly set --> >@@ -105,31 +104,31 @@ > [% END %] > [% END %] > </div> >- [% ELSE %] >- [% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %] >- <div id="news" class="newscontainer"> >- <div class="newsitem"> >- <div class="newsbody">No news to display.</div> >- <div class="newsfooter"></div> >- </div> >+ >+ [% IF ( display_daily_quote && daily_quote ) %] >+ <div id="daily-quote"> >+ <h3>Quote of the day</h3> >+ <div> >+ <span id="daily-quote-text">[% daily_quote.text %]</span><span id="daily-quote-sep"> ~ </span><span id="daily-quote-source">[% daily_quote.source %]</span> > </div> >- [% END %] >+ </div> > [% END %] > >- [% IF ( display_daily_quote && daily_quote ) %] >- <div id="daily-quote"> >- <h3>Quote of the day</h3> >- <div> >- <span id="daily-quote-text">[% daily_quote.text %]</span><span id="daily-quote-sep"> ~ </span><span id="daily-quote-source">[% daily_quote.source %]</span> >+ [% IF ( OpacMainUserBlock ) %]<div id="opacmainuserblock">[% OpacMainUserBlock %]</div>[% END %] >+ >+ [% END %] <!-- single news item --> >+ [% ELSE %] <!-- koha news --> >+ [% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %] >+ <div id="news" class="newscontainer"> >+ <div class="newsitem"> >+ <div class="newsbody">No news to display.</div> >+ <div class="newsfooter"></div> >+ </div> > </div> >- </div> >+ [% END %] > [% END %] >- >- [% IF ( OpacMainUserBlock ) %]<div id="opacmainuserblock">[% OpacMainUserBlock %]</div>[% END %] > </div> <!-- / .span 7/9 --> > >- [% END %] <!-- If single news item --> >- > [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) || OpacNavRight ) %] > <div class="span3"> > [% IF Koha.Preference( 'opacuserlogin' ) == 1 %] >-- >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 14272
:
45721
|
45740
|
45741
|
45818
|
45820
|
45845
|
45846
|
45935
|
45936
|
45937
|
47556
|
47557
|
47558
|
47665
|
47666
|
47667
|
47668
|
47669
|
47670
|
47671
|
47672
|
47673
|
50557
|
50558
|
50559
|
59483
|
70728
|
70729
|
70730
|
70731
|
72065
|
72548
|
72549
|
72550
|
72551
|
76015
|
76307
|
76580
|
76662
|
77546
|
77564
|
77565
|
77566
|
77567
|
77568
|
77569
|
78104
|
78206
|
78207
|
78208
|
78231
|
81643
|
82713
|
83425
|
83426
|
83427
|
83428
|
83429
|
83430
|
84868
|
84869
|
84870
|
84871
|
84872
|
84873
|
84874