|
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 ) %] |