From d08076e7e55a7c78a7ab3d79c33151dd4c469101 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 10 Oct 2016 08:10:29 -0400 Subject: [PATCH] Bug 17417 [Revised] Correct invalid markup around news on the staff client home page 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. Signed-off-by: Marc Revision for QA removes an extra

from elsewhere in the template to make the validator return no errors. Signed-off-by: Katrin Fischer Signed-off-by: Kyle M Hall --- koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt | 5 ++--- 1 file changed, 2 insertions(+), 3 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 33e6259cea..060ba39e4b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt @@ -189,11 +189,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 @@ -206,7 +206,6 @@ var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this news item? This

[% END %]
-
-- 2.39.5