From 67c8fe2e162dd565b7995e93697b6b9bb0c6f8d8 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 10 Oct 2016 08:10:29 -0400 Subject: [PATCH] Bug 17417 - Correct invalid markup around news on the staff client home page Content-Type: text/plain; charset="utf-8" This patch fixes two minor errors in the markup around displaying news on the staff client home page: Adding a missing "class" attribute, and changing the container around news items from

to

(because news items might contain

and nesting them is incorrect). To test, apply the patch and view the staff client home page with news items showing. Validate the page and confirm that there are no errors. --- koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt index b251d9b..d6a3735 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt @@ -180,11 +180,11 @@ var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this news item? This

[% IF ( koha_news_count ) %]
-

News

+

News

[% SET newsdisp = Koha.Preference('NewsAuthorDisplay') %] [% FOREACH koha_new IN koha_news %]

[% koha_new.title %]

-

[% koha_new.new %]

+
[% koha_new.new %]

Posted on [% koha_new.newdate %][% IF( ( newsdisp == 'staff' || newsdisp == 'both' ) && koha_new.borrowernumber ) %] by [% koha_new.author_title %] [% koha_new.author_firstname %] [% koha_new.author_surname %]
[% END %] [% IF ( CAN_user_tools ) %] Edit -- 2.1.4