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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt (+14 lines)
Lines 219-224 Link Here
219
                    </div> <!-- /.col-sm-12 -->
219
                    </div> <!-- /.col-sm-12 -->
220
                </div> <!-- /.row -->
220
                </div> <!-- /.row -->
221
221
222
223
                [% IF Koha.ArePluginsEnabled() && additional_urls %]
224
                <dt>Additional URLS</a></dt>
225
                <dd>
226
                    <ul>
227
                    [% FOREACH url IN additional_urls %]
228
                        <li class="plugin_link">
229
                            <a href="[% url.uri %]"><span class="plugin_name">[% url.name | html %]</span></a>
230
                        </li>
231
                    [% END %]
232
                    </ul>
233
                </dd>
234
                [% END %]
235
222
                [% IF ( IntranetmainUserblock ) %]
236
                [% IF ( IntranetmainUserblock ) %]
223
                    <div class="row">
237
                    <div class="row">
224
                        <div class="col-sm-12">
238
                        <div class="col-sm-12">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt (+13 lines)
Lines 136-141 Link Here
136
    </dd>
136
    </dd>
137
    [% END %]
137
    [% END %]
138
138
139
    [% IF Koha.ArePluginsEnabled() && additional_urls %]
140
    <dt>Additional URLS</a></dt>
141
    <dd>
142
        <ul>
143
        [% FOREACH url IN additional_urls %]
144
            <li class="plugin_link">
145
                <a href="[% url.uri %]"><span class="plugin_name">[% url.name | html %]</span></a>
146
            </li>
147
        [% END %]
148
        </ul>
149
    </dd>
150
    [% END %]
151
139
    [% IF ( CAN_user_tools_upload_general_files ) %]
152
    [% IF ( CAN_user_tools_upload_general_files ) %]
140
    <dt><a href="/cgi-bin/koha/tools/upload.pl">Upload</a></dt>
153
    <dt><a href="/cgi-bin/koha/tools/upload.pl">Upload</a></dt>
141
    <dd>Upload any type of file, manage uploads</dd>
154
    <dd>Upload any type of file, manage uploads</dd>
(-)a/mainpage.pl (+11 lines)
Lines 103-106 $template->param( Link Here
103
    pending_problem_reports        => $pending_problem_reports
103
    pending_problem_reports        => $pending_problem_reports
104
);
104
);
105
105
106
if ( C4::Context->config('enable_plugins') ) {
107
    my @additional_urls = Koha::Plugins->call(
108
        'additional_urls',
109
        {
110
            page => 'mainpage',
111
        }
112
    );
113
    @additional_urls = map {@$_} @additional_urls;
114
    $template->param( additional_urls => \@additional_urls );
115
}
116
106
output_html_with_http_headers $query, $cookie, $template->output;
117
output_html_with_http_headers $query, $cookie, $template->output;
(-)a/tools/tools-home.pl (-1 / +9 lines)
Lines 47-52 if ( C4::Context->config('enable_plugins') ) { Link Here
47
        method => 'tool',
47
        method => 'tool',
48
    });
48
    });
49
    $template->param( tool_plugins => \@tool_plugins );
49
    $template->param( tool_plugins => \@tool_plugins );
50
51
    my @additional_urls = Koha::Plugins->call(
52
        'additional_urls',
53
        {
54
            page => 'tools-home',
55
        }
56
    );
57
    @additional_urls = map {@$_} @additional_urls;
58
    $template->param( additional_urls => \@additional_urls );
50
}
59
}
51
60
52
output_html_with_http_headers $query, $cookie, $template->output;
61
output_html_with_http_headers $query, $cookie, $template->output;
53
- 

Return to bug 27527