View | Details | Raw Unified | Return to bug 22544
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt (-1 / +1 lines)
Lines 25-31 Link Here
25
                        [% FOREACH koha_new IN koha_news %]
25
                        [% FOREACH koha_new IN koha_news %]
26
                            <div class="newsitem" id="news[% koha_new.idnew | html %]"><h4>[% koha_new.title | html %]</h4>
26
                            <div class="newsitem" id="news[% koha_new.idnew | html %]"><h4>[% koha_new.title | html %]</h4>
27
                                <div class="newsbody">[% koha_new.content | $raw %]</div>
27
                                <div class="newsbody">[% koha_new.content | $raw %]</div>
28
                                <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 %]
28
                                <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 %]
29
                                    [% IF ( CAN_user_tools ) %]
29
                                    [% IF ( CAN_user_tools ) %]
30
                                        <a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&amp;id=[% koha_new.idnew | uri %]">Edit</a>
30
                                        <a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&amp;id=[% koha_new.idnew | uri %]">Edit</a>
31
                                         | <a class="news_delete" href="/cgi-bin/koha/tools/koha-news.pl?op=del&amp;ids=[% koha_new.idnew | html %]">Delete</a>
31
                                         | <a class="news_delete" href="/cgi-bin/koha/tools/koha-news.pl?op=del&amp;ids=[% koha_new.idnew | html %]">Delete</a>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt (-1 / +1 lines)
Lines 152-158 Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div> Link Here
152
                            <td><span title="[% opac_new.published_on | html %]">[% opac_new.published_on | $KohaDates %]</span></td>
152
                            <td><span title="[% opac_new.published_on | html %]">[% opac_new.published_on | $KohaDates %]</span></td>
153
                            <td><span title="[% opac_new.expirationdate | html %]">[% opac_new.expirationdate | $KohaDates %] [% IF ( opac_new.is_expired ) %](<span class="expired">expired</span>)[% END %]</span></td>
153
                            <td><span title="[% opac_new.expirationdate | html %]">[% opac_new.expirationdate | $KohaDates %] [% IF ( opac_new.is_expired ) %](<span class="expired">expired</span>)[% END %]</span></td>
154
                            <td>[% opac_new.title | html %]</td>
154
                            <td>[% opac_new.title | html %]</td>
155
                            <td>[% IF ( opac_new.author) %][% INCLUDE 'patron-title.inc' patron=opac_new.author hide_patron_infos_if_needed=1 %][% END %]</td>
155
                            <td>[% IF ( opac_new.author) %][% INCLUDE 'patron-title.inc' patron=opac_new.author %][% END %]</td>
156
                            <td>
156
                            <td>
157
                                <div class="btn-group">
157
                                <div class="btn-group">
158
                                    <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>
158
                                    <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>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt (-3 / +2 lines)
Lines 106-113 Link Here
106
                            <div class="newsbody">[% koha_new.content | $raw %]</div>
106
                            <div class="newsbody">[% koha_new.content | $raw %]</div>
107
                            <div class="newsfooter">
107
                            <div class="newsfooter">
108
                                Published on [% koha_new.published_on | $KohaDates %]
108
                                Published on [% koha_new.published_on | $KohaDates %]
109
                                [% IF ( show_author && koha_new.borrowernumber ) %]
109
                                [% IF ( show_author && koha_new.author ) %]
110
                                    by <span class="newsauthor_title">[% koha_new.author.title | html %] </span>[% koha_new.author.firstname | html %] [% koha_new.author.surname | html %]
110
                                    by <span class="newsauthor">[% INCLUDE 'patron-title.inc' patron=koha_new.author %]</span>
111
                                [% END %]
111
                                [% END %]
112
                                [% IF ( news_item ) %]
112
                                [% IF ( news_item ) %]
113
                                    &bull; <a href="/cgi-bin/koha/opac-main.pl">Show all news</a>
113
                                    &bull; <a href="/cgi-bin/koha/opac-main.pl">Show all news</a>
114
- 

Return to bug 22544