Lines 80-86
Link Here
|
80 |
</table> |
80 |
</table> |
81 |
[% END %] |
81 |
[% END %] |
82 |
|
82 |
|
83 |
[% UNLESS ( plugins ) %] |
83 |
[% UNLESS ( plugins_metadata ) %] |
84 |
[% UNLESS ( method ) %] |
84 |
[% UNLESS ( method ) %] |
85 |
<div class="dialog message">No plugins installed</div> |
85 |
<div class="dialog message">No plugins installed</div> |
86 |
[% ELSE %] |
86 |
[% ELSE %] |
Lines 113-122
Link Here
|
113 |
[% END %] |
113 |
[% END %] |
114 |
</tr> |
114 |
</tr> |
115 |
|
115 |
|
116 |
[% FOREACH plugin IN plugins %] |
116 |
[% FOREACH metadata IN plugins_metadata %] |
117 |
<tr> |
117 |
<tr> |
118 |
<td> |
118 |
<td> |
119 |
<strong>[% plugin.metadata.name | html %]</strong> |
119 |
<strong>[% metadata.name | html %]</strong> |
120 |
[% IF ( plugin.is_enabled ) %] |
120 |
[% IF ( plugin.is_enabled ) %] |
121 |
<span class="label label-primary">ENABLED</span> |
121 |
<span class="label label-primary">ENABLED</span> |
122 |
[% ELSE %] |
122 |
[% ELSE %] |
Lines 124-148
Link Here
|
124 |
[% END %] |
124 |
[% END %] |
125 |
</td> |
125 |
</td> |
126 |
<td> |
126 |
<td> |
127 |
[% plugin.metadata.description | html %] |
127 |
[% metadata.description | html %] |
128 |
|
128 |
|
129 |
[% IF ( plugin.metadata.minimum_version && koha_version < plugin.metadata.minimum_version ) %] |
129 |
[% IF ( metadata.minimum_version && koha_version < metadata.minimum_version ) %] |
130 |
<div class="dialog alert"> |
130 |
<div class="dialog alert"> |
131 |
Warning: This report was written for a newer version of Koha. Run at your own risk. |
131 |
Warning: This report was written for a newer version of Koha. Run at your own risk. |
132 |
</div> |
132 |
</div> |
133 |
[% END %] |
133 |
[% END %] |
134 |
|
134 |
|
135 |
[% IF ( plugin.metadata.maximum_version && koha_version > plugin.metadata.maximum_version ) %] |
135 |
[% IF ( metadata.maximum_version && koha_version > metadata.maximum_version ) %] |
136 |
<div class="dialog alert"> |
136 |
<div class="dialog alert"> |
137 |
Warning: This plugin was written for an older version of Koha. Run at your own risk. |
137 |
Warning: This plugin was written for an older version of Koha. Run at your own risk. |
138 |
</div> |
138 |
</div> |
139 |
[% END %] |
139 |
[% END %] |
140 |
</td> |
140 |
</td> |
141 |
<td>[% plugin.metadata.author | html %]</td> |
141 |
<td>[% metadata.author | html %]</td> |
142 |
<td>[% plugin.metadata.version | html %]</td> |
142 |
<td>[% metadata.version | html %]</td> |
143 |
<td>[% plugin.metadata.minimum_version | html %]</td> |
143 |
<td>[% metadata.minimum_version | html %]</td> |
144 |
<td>[% plugin.metadata.maximum_version | html %]</td> |
144 |
<td>[% metadata.maximum_version | html %]</td> |
145 |
<td>[% plugin.metadata.date_updated | $KohaDates %]</td> |
145 |
<td>[% metadata.date_updated | $KohaDates %]</td> |
146 |
[% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %] |
146 |
[% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %] |
147 |
<td class="actions"> |
147 |
<td class="actions"> |
148 |
<div class="dropdown"> |
148 |
<div class="dropdown"> |
Lines 168-178
Link Here
|
168 |
[% END %] |
168 |
[% END %] |
169 |
[% END %] |
169 |
[% END %] |
170 |
[% IF ( CAN_user_plugins_manage ) %] |
170 |
[% IF ( CAN_user_plugins_manage ) %] |
171 |
<li><a class="uninstall_plugin" data-plugin-name="[% plugin.metadata.name | html %]" href="/cgi-bin/koha/plugins/plugins-uninstall.pl?class=[% plugin.class | html %]"><i class="fa fa-trash fa-fw"></i> Uninstall</a></li> |
171 |
<li><a class="uninstall_plugin" data-plugin-name="[% metadata.name | html %]" href="/cgi-bin/koha/plugins/plugins-uninstall.pl?class=[% plugin.class | html %]"><i class="fa fa-trash fa-fw"></i> Uninstall</a></li> |
172 |
[% IF ( plugin.is_enabled ) %] |
172 |
[% IF ( plugin.is_enabled ) %] |
173 |
<li><a class="enable_plugin" data-plugin-name="[% plugin.metadata.name | html %]" href="/cgi-bin/koha/plugins/plugins-enable.pl?class=[% plugin.class | html %]&method=disable"><i class="fa fa-pause fa-fw"></i> Disable</a></li> |
173 |
<li><a class="enable_plugin" data-plugin-name="[% metadata.name | html %]" href="/cgi-bin/koha/plugins/plugins-enable.pl?class=[% plugin.class | html %]&method=disable"><i class="fa fa-pause fa-fw"></i> Disable</a></li> |
174 |
[% ELSE %] |
174 |
[% ELSE %] |
175 |
<li><a class="enable_plugin" data-plugin-name="[% plugin.metadata.name | html %]" href="/cgi-bin/koha/plugins/plugins-enable.pl?class=[% plugin.class | html %]&method=enable"><i class="fa fa-play fa-fw"></i> Enable</a></li> |
175 |
<li><a class="enable_plugin" data-plugin-name="[% metadata.name | html %]" href="/cgi-bin/koha/plugins/plugins-enable.pl?class=[% plugin.class | html %]&method=enable"><i class="fa fa-play fa-fw"></i> Enable</a></li> |
176 |
[% END %] |
176 |
[% END %] |
177 |
[% END %] |
177 |
[% END %] |
178 |
</ul> |
178 |
</ul> |