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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt (-2 / +11 lines)
Lines 120-128 Link Here
120
    <dd>Quote editor for Quote-of-the-day feature in OPAC</dd>
120
    <dd>Quote editor for Quote-of-the-day feature in OPAC</dd>
121
    [% END %]
121
    [% END %]
122
122
123
    [% IF ( Koha.ArePluginsEnabled() && CAN_user_plugins_tool ) %]
123
    [% IF ( Koha.ArePluginsEnabled() && CAN_user_plugins_tool && tool_plugins ) %]
124
    <dt><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=tool">Tool plugins</a></dt>
124
    <dt><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=tool">Tool plugins</a></dt>
125
    <dd>Use tool plugins</dd>
125
    <dd>
126
        Use tool plugins
127
        [% FOREACH plugin IN tool_plugins %]
128
            <div class="plugin_link">
129
                <a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class | uri %]&method=tool">
130
                    Run plugin <span class="plugin_name">[% plugin.metadata.name | html %]</span>
131
                </a>
132
            </div>
133
        [% END %]
134
    </dd>
126
    [% END %]
135
    [% END %]
127
136
128
    [% IF ( CAN_user_tools_upload_general_files ) %]
137
    [% IF ( CAN_user_tools_upload_general_files ) %]
(-)a/tools/tools-home.pl (-1 / +7 lines)
Lines 43-46 $template->param( Link Here
43
    pendingtags     => $pendingtags
43
    pendingtags     => $pendingtags
44
);
44
);
45
45
46
if ( C4::Context->config('enable_plugins') ) {
47
    my @tool_plugins = Koha::Plugins->new()->GetPlugins({
48
        method => 'tool',
49
    });
50
    $template->param( tool_plugins => \@tool_plugins );
51
}
52
46
output_html_with_http_headers $query, $cookie, $template->output;
53
output_html_with_http_headers $query, $cookie, $template->output;
47
- 

Return to bug 26338