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 / +9 lines)
Lines 136-141 Link Here
136
                                </thead>
136
                                </thead>
137
137
138
                                [% FOREACH plugin IN plugins %]
138
                                [% FOREACH plugin IN plugins %]
139
                                    [%
140
                                        plugin_link = '/cgi-bin/koha/plugins/run.pl'; 
141
                                        IF ( plugin.can('use_mojolicious') );
142
                                            plugin_link = '/cgi-bin/koha/staff/plugins/run';
143
                                        END;
144
                                    %]
139
                                    [% IF plugin.error %]
145
                                    [% IF plugin.error %]
140
                                    <tr class="warn">
146
                                    <tr class="warn">
141
                                        <td>
147
                                        <td>
Lines 187-205 Link Here
187
                                                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="pluginactions[% plugin.class | html %]">
193
                                                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="pluginactions[% plugin.class | html %]">
188
                                                        [% IF ( CAN_user_plugins_report ) %]
194
                                                        [% IF ( CAN_user_plugins_report ) %]
189
                                                            [% IF plugin.can('report') %]
195
                                                            [% IF plugin.can('report') %]
190
                                                                <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>
196
                                                                <li><a href="[% plugin_link | $raw %]?class=[% plugin.class | uri %]&method=report"><i class="fa fa-table fa-fw"></i> Run report</a></li>
191
                                                            [% END %]
197
                                                            [% END %]
192
                                                        [% END %]
198
                                                        [% END %]
193
199
194
                                                        [% IF ( CAN_user_plugins_tool ) %]
200
                                                        [% IF ( CAN_user_plugins_tool ) %]
195
                                                            [% IF plugin.can('tool') %]
201
                                                            [% IF plugin.can('tool') %]
196
                                                                <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>
202
                                                                <li><a href="[% plugin_link | $raw %]?class=[% plugin.class | uri %]&method=tool"><i class="fa fa-wrench fa-fw"></i> Run tool</a></li>
197
                                                            [% END %]
203
                                                            [% END %]
198
                                                        [% END %]
204
                                                        [% END %]
199
205
200
                                                        [% IF ( CAN_user_plugins_configure ) %]
206
                                                        [% IF ( CAN_user_plugins_configure ) %]
201
                                                            [% IF plugin.can('configure') %]
207
                                                            [% IF plugin.can('configure') %]
202
                                                                <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>
208
                                                                <li><a href="[% plugin_link | $raw %]?class=[% plugin.class | uri %]&method=configure"><i class="fa fa-cog fa-fw"></i> Configure</a></li>
203
                                                            [% END %]
209
                                                            [% END %]
204
                                                        [% END %]
210
                                                        [% END %]
205
                                                        [% IF ( CAN_user_plugins_manage ) %]
211
                                                        [% IF ( CAN_user_plugins_manage ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt (-2 / +8 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 160-167 Link Here
160
                                Use tool plugins
161
                                Use tool plugins
161
                                <ul>
162
                                <ul>
162
                                [% FOREACH plugin IN tool_plugins %]
163
                                [% FOREACH plugin IN tool_plugins %]
164
                                    [%
165
                                        plugin_link = '/cgi-bin/koha/plugins/run.pl'; 
166
                                        IF ( plugin.can('use_mojolicious') );
167
                                            plugin_link = '/cgi-bin/koha/staff/plugins/run';
168
                                        END;
169
                                    %]
163
                                    <li class="plugin_link">
170
                                    <li class="plugin_link">
164
                                        <a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class | uri %]&method=tool">
171
                                        <a href="[% plugin_link | $raw %]?class=[% plugin.class | uri %]&method=tool">
165
                                            <span class="plugin_name">[% plugin.metadata.name | html %]</span>
172
                                            <span class="plugin_name">[% plugin.metadata.name | html %]</span>
166
                                        </a>
173
                                        </a>
167
                                    </li>
174
                                    </li>
168
- 

Return to bug 31380