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-178
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 ( metadata.is_enabled ) %] |
121 |
<span class="label label-primary">ENABLED</span> |
121 |
<span class="label label-primary">ENABLED</span> |
122 |
[% ELSE %] |
122 |
[% ELSE %] |
123 |
<span class="label label-default">DISABLED</span> |
123 |
<span class="label label-default">DISABLED</span> |
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="btn-group dropup"> |
148 |
<div class="btn-group dropup"> |
149 |
<a class="btn btn-default btn-xs dropdown-toggle" id="pluginactions[% plugin.class | html %]" role="button" data-toggle="dropdown" href="#"> |
149 |
<a class="btn btn-default btn-xs dropdown-toggle" id="pluginactions[% metadata.class | html %]" role="button" data-toggle="dropdown" href="#"> |
150 |
Actions <b class="caret"></b> |
150 |
Actions <b class="caret"></b> |
151 |
</a> |
151 |
</a> |
152 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="pluginactions[% plugin.class | html %]"> |
152 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="pluginactions[% metadata.class | html %]"> |
153 |
[% IF ( CAN_user_plugins_report ) %] |
153 |
[% IF ( CAN_user_plugins_report ) %] |
154 |
[% IF plugin.can('report') %] |
154 |
[% IF metadata.can.report %] |
155 |
<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> |
155 |
<li><a href="/cgi-bin/koha/plugins/run.pl?class=[% metadata.class | uri %]&method=report"><i class="fa fa-table fa-fw"></i> Run report</a></li> |
156 |
[% END %] |
156 |
[% END %] |
157 |
[% END %] |
157 |
[% END %] |
158 |
|
158 |
|
159 |
[% IF ( CAN_user_plugins_tool ) %] |
159 |
[% IF ( CAN_user_plugins_tool ) %] |
160 |
[% IF plugin.can('tool') %] |
160 |
[% IF metadata.can.tool %] |
161 |
<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> |
161 |
<li><a href="/cgi-bin/koha/plugins/run.pl?class=[% metadata.class | uri %]&method=tool"><i class="fa fa-wrench fa-fw"></i> Run tool</a></li> |
162 |
[% END %] |
162 |
[% END %] |
163 |
[% END %] |
163 |
[% END %] |
164 |
|
164 |
|
165 |
[% IF ( CAN_user_plugins_configure ) %] |
165 |
[% IF ( CAN_user_plugins_configure ) %] |
166 |
[% IF plugin.can('configure') %] |
166 |
[% IF metadata.can.configure %] |
167 |
<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> |
167 |
<li><a href="/cgi-bin/koha/plugins/run.pl?class=[% metadata.class | uri %]&method=configure"><i class="fa fa-cog fa-fw"></i> Configure</a></li> |
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=[% metadata.class | html %]"><i class="fa fa-trash fa-fw"></i> Uninstall</a></li> |
172 |
[% IF ( plugin.is_enabled ) %] |
172 |
[% IF ( metadata.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=[% metadata.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=[% metadata.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> |