|
Lines 147-152
Link Here
|
| 147 |
</thead> |
147 |
</thead> |
| 148 |
|
148 |
|
| 149 |
[% FOREACH plugin IN plugins %] |
149 |
[% FOREACH plugin IN plugins %] |
|
|
150 |
[% plugin_link = '/cgi-bin/koha/plugins/run.pl' %] |
| 151 |
[% IF ( plugin.can('use_mojolicious') ) %] |
| 152 |
[% plugin_link = '/cgi-bin/koha/staff/plugins/run' %] |
| 153 |
[% END %] |
| 150 |
[% IF plugin.error %] |
154 |
[% IF plugin.error %] |
| 151 |
<tr class="warn"> |
155 |
<tr class="warn"> |
| 152 |
<td> |
156 |
<td> |
|
Lines 200-218
Link Here
|
| 200 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="pluginactions[% plugin.class | html %]"> |
204 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="pluginactions[% plugin.class | html %]"> |
| 201 |
[% IF ( CAN_user_plugins_report ) %] |
205 |
[% IF ( CAN_user_plugins_report ) %] |
| 202 |
[% IF plugin.can('report') %] |
206 |
[% IF plugin.can('report') %] |
| 203 |
<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> |
207 |
<li><a href="[% plugin_link | $raw %]?class=[% plugin.class | uri %]&method=report"><i class="fa fa-table fa-fw"></i> Run report</a></li> |
| 204 |
[% END %] |
208 |
[% END %] |
| 205 |
[% END %] |
209 |
[% END %] |
| 206 |
|
210 |
|
| 207 |
[% IF ( CAN_user_plugins_tool ) %] |
211 |
[% IF ( CAN_user_plugins_tool ) %] |
| 208 |
[% IF plugin.can('tool') %] |
212 |
[% IF plugin.can('tool') %] |
| 209 |
<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> |
213 |
<li><a href="[% plugin_link | $raw %]?class=[% plugin.class | uri %]&method=tool"><i class="fa fa-wrench fa-fw"></i> Run tool</a></li> |
| 210 |
[% END %] |
214 |
[% END %] |
| 211 |
[% END %] |
215 |
[% END %] |
| 212 |
|
216 |
|
| 213 |
[% IF ( CAN_user_plugins_configure ) %] |
217 |
[% IF ( CAN_user_plugins_configure ) %] |
| 214 |
[% IF plugin.can('configure') %] |
218 |
[% IF plugin.can('configure') %] |
| 215 |
<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> |
219 |
<li><a href="[% plugin_link | $raw %]?class=[% plugin.class | uri %]&method=configure"><i class="fa fa-cog fa-fw"></i> Configure</a></li> |
| 216 |
[% END %] |
220 |
[% END %] |
| 217 |
[% END %] |
221 |
[% END %] |
| 218 |
[% IF ( CAN_user_plugins_manage ) %] |
222 |
[% IF ( CAN_user_plugins_manage ) %] |