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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt (-3 / +4 lines)
Lines 177-197 Link Here
177
                                                   Actions <b class="caret"></b>
177
                                                   Actions <b class="caret"></b>
178
                                                </a>
178
                                                </a>
179
                                                <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="pluginactions[% plugin.class | html %]">
179
                                                <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="pluginactions[% plugin.class | html %]">
180
                                                    [% plugin_link = '/cgi-bin/koha/plugins/run.pl'; IF ( plugin.can('use_mojolicious') ); plugin_link = '/cgi-bin/koha/staff/plugins/run'; END; %]
180
                                                    [% IF ( CAN_user_plugins_report ) %]
181
                                                    [% IF ( CAN_user_plugins_report ) %]
181
                                                        [% IF plugin.can('report') %]
182
                                                        [% IF plugin.can('report') %]
182
                                                            <li><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class | uri %]&method=report"><i class="fa fa-table fa-fw"></i> Run report</a></li>
183
                                                            <li><a href="[% plugin_link | $raw %]?class=[% plugin.class | uri %]&method=report"><i class="fa fa-table fa-fw"></i> Run report</a></li>
183
                                                        [% END %]
184
                                                        [% END %]
184
                                                    [% END %]
185
                                                    [% END %]
185
186
186
                                                    [% IF ( CAN_user_plugins_tool ) %]
187
                                                    [% IF ( CAN_user_plugins_tool ) %]
187
                                                        [% IF plugin.can('tool') %]
188
                                                        [% IF plugin.can('tool') %]
188
                                                            <li><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class | uri %]&method=tool"><i class="fa fa-wrench fa-fw"></i> Run tool</a></li>
189
                                                            <li><a href="[% plugin_link | $raw %]?class=[% plugin.class | uri %]&method=tool"><i class="fa fa-wrench fa-fw"></i> Run tool</a></li>
189
                                                        [% END %]
190
                                                        [% END %]
190
                                                    [% END %]
191
                                                    [% END %]
191
192
192
                                                    [% IF ( CAN_user_plugins_configure ) %]
193
                                                    [% IF ( CAN_user_plugins_configure ) %]
193
                                                        [% IF plugin.can('configure') %]
194
                                                        [% IF plugin.can('configure') %]
194
                                                            <li><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class | uri %]&method=configure"><i class="fa fa-cog fa-fw"></i> Configure</a></li>
195
                                                            <li><a href="[% plugin_link | $raw %]?class=[% plugin.class | uri %]&method=configure"><i class="fa fa-cog fa-fw"></i> Configure</a></li>
195
                                                        [% END %]
196
                                                        [% END %]
196
                                                    [% END %]
197
                                                    [% END %]
197
                                                    [% IF ( CAN_user_plugins_manage ) %]
198
                                                    [% IF ( CAN_user_plugins_manage ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt (-2 / +3 lines)
Lines 1-3 Link Here
1
[% USE raw %]
1
[% USE Koha %]
2
[% USE Koha %]
2
[% USE Branches %]
3
[% USE Branches %]
3
[% USE Registers %]
4
[% USE Registers %]
Lines 140-146 Link Here
140
        <ul>
141
        <ul>
141
        [% FOREACH plugin IN tool_plugins %]
142
        [% FOREACH plugin IN tool_plugins %]
142
            <li class="plugin_link">
143
            <li class="plugin_link">
143
                <a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class | uri %]&method=tool">
144
                [% plugin_link = '/cgi-bin/koha/plugins/run.pl'; IF ( plugin.can('use_mojolicious') ); plugin_link = '/cgi-bin/koha/staff/plugins/run'; END; %]
145
                <a href="[% plugin_link | $raw %]?class=[% plugin.class | uri %]&method=tool">
144
                    <span class="plugin_name">[% plugin.metadata.name | html %]</span>
146
                    <span class="plugin_name">[% plugin.metadata.name | html %]</span>
145
                </a>
147
                </a>
146
            </li>
148
            </li>
147
- 

Return to bug 31380