Bug 22544: Use template plugin for news author display
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
4838615d08
commit
52ff082aa0
|
|
@ -31,7 +31,7 @@
|
|||
[% FOREACH koha_new IN koha_news %]
|
||||
<div class="newsitem" id="news[% koha_new.idnew | html %]"><h4>[% koha_new.title | html %]</h4>
|
||||
<div class="newsbody">[% koha_new.content | $raw %]</div>
|
||||
<p class="newsfooter"> Posted on [% koha_new.published_on | $KohaDates %][% IF( show_author && koha_new.borrowernumber ) %] by <span class="newsauthor_title">[% koha_new.author.title | html %] </span>[% koha_new.author.firstname | html %] [% koha_new.author.surname | html %]<br />[% END %]
|
||||
<p class="newsfooter"> Posted on [% koha_new.published_on | $KohaDates %][% IF( show_author && koha_new.author ) %] by <span class="newsauthor">[% INCLUDE 'patron-title.inc' patron=koha_new.author %]<br />[% END %]
|
||||
[% IF ( CAN_user_tools ) %]
|
||||
<a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&id=[% koha_new.idnew | uri %]">Edit</a>
|
||||
| <a class="news_delete" href="/cgi-bin/koha/tools/koha-news.pl?op=del&ids=[% koha_new.idnew | html %]">Delete</a>
|
||||
|
|
|
|||
|
|
@ -181,7 +181,7 @@
|
|||
<td data-order="[% opac_new.published_on | html %]">[% opac_new.published_on | $KohaDates %]</td>
|
||||
<td data-order="[% opac_new.expirationdate | html %]">[% opac_new.expirationdate | $KohaDates %] [% IF ( opac_new.is_expired ) %](<span class="expired">expired</span>)[% END %]</td>
|
||||
<td>[% opac_new.title | html %]</td>
|
||||
<td>[% IF ( opac_new.author) %][% INCLUDE 'patron-title.inc' patron=opac_new.author hide_patron_infos_if_needed=1 %][% END %]</td>
|
||||
<td>[% IF ( opac_new.author) %][% INCLUDE 'patron-title.inc' patron=opac_new.author %][% END %]</td>
|
||||
<td>
|
||||
<div class="btn-group">
|
||||
<a class="preview_news btn btn-default btn-xs" data-number="[% loop.count | html %]"><i class="fa fa-eye" aria-hidden="true"></i> Preview content</a>
|
||||
|
|
|
|||
|
|
@ -109,8 +109,8 @@
|
|||
<div class="newsbody">[% koha_new.content | $raw %]</div>
|
||||
<div class="newsfooter">
|
||||
Published on [% koha_new.published_on | $KohaDates %]
|
||||
[% IF ( show_author && koha_new.borrowernumber ) %]
|
||||
by <span class="newsauthor_title">[% koha_new.author.title | html %] </span>[% koha_new.author.firstname | html %] [% koha_new.author.surname | html %]
|
||||
[% IF ( show_author && koha_new.author ) %]
|
||||
by <span class="newsauthor">[% INCLUDE 'patron-title.inc' patron=koha_new.author %]</span>
|
||||
[% END %]
|
||||
[% IF ( news_item ) %]
|
||||
• <a href="/cgi-bin/koha/opac-main.pl">Show all news</a>
|
||||
|
|
|
|||
Loading…
Reference in New Issue