From 6281adf82b06e16d94e8283db1775338eea2298a 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 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. Signed-off-by: Marc Revision for QA removes an extra

from elsewhere in the template to make the validator return no errors. --- 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 b251d9b..ca7699d 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 @@ -197,7 +197,6 @@ var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this news item? This

[% END %]
-
-- 2.1.4