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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt (-1 / +1 lines)
Lines 34-40 Link Here
34
                                <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 %]
34
                                <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 %]
35
                                    [% IF ( CAN_user_tools_edit_additional_contents ) %]
35
                                    [% IF ( CAN_user_tools_edit_additional_contents ) %]
36
                                        <a href="/cgi-bin/koha/tools/additional-contents.pl?op=add_form&amp;id=[% koha_new.idnew | uri %]">Edit</a>
36
                                        <a href="/cgi-bin/koha/tools/additional-contents.pl?op=add_form&amp;id=[% koha_new.idnew | uri %]">Edit</a>
37
                                         | <a class="news_delete" href="/cgi-bin/koha/tools/additional-contents.pl?op=delete_confirmed&amp;ids=[% koha_new.idnew | html %]">Delete</a>
37
                                         | <a class="news_delete" href="/cgi-bin/koha/tools/additional-contents.pl?op=delete_confirmed&amp;ids=[% koha_new.idnew | html %]&amp;csrf_token=[% csrf_token | uri %]">Delete</a>
38
                                         | <a href="/cgi-bin/koha/tools/additional-contents.pl?op=add_form">New</a>
38
                                         | <a href="/cgi-bin/koha/tools/additional-contents.pl?op=add_form">New</a>
39
                                    [% END %]
39
                                    [% END %]
40
                                </p>
40
                                </p>
(-)a/mainpage.pl (-1 / +2 lines)
Lines 37-42 use Koha::Suggestions; Link Here
37
use Koha::BackgroundJobs;
37
use Koha::BackgroundJobs;
38
use Koha::CurbsidePickups;
38
use Koha::CurbsidePickups;
39
use Koha::Tickets;
39
use Koha::Tickets;
40
use Koha::Token;
40
41
41
my $query = CGI->new;
42
my $query = CGI->new;
42
43
Lines 69-74 my $koha_news = Koha::AdditionalContents->search_for_display( Link Here
69
70
70
$template->param(
71
$template->param(
71
    koha_news   => $koha_news,
72
    koha_news   => $koha_news,
73
    csrf_token  => Koha::Token->new->generate_csrf({ session_id => $query->cookie('CGISESSID'), }),
72
    daily_quote => Koha::Quotes->get_daily_quote(),
74
    daily_quote => Koha::Quotes->get_daily_quote(),
73
);
75
);
74
76
75
- 

Return to bug 35019