Lines 74-100
Link Here
|
74 |
|
74 |
|
75 |
[% IF search_results %] |
75 |
[% IF search_results %] |
76 |
<h2>Search results</h2> |
76 |
<h2>Search results</h2> |
77 |
<table class="table table-striped"> |
77 |
<div class="page-section"> |
78 |
<thead> |
78 |
<table class="table table-striped"> |
79 |
<tr> |
79 |
<thead> |
80 |
<th>Name</th> |
80 |
<tr> |
81 |
<th>Description</th> |
81 |
<th>Name</th> |
82 |
<th>Organization</th> |
82 |
<th>Description</th> |
83 |
<th>Latest version</th> |
83 |
<th>Organization</th> |
84 |
<th> </th> |
84 |
<th>Latest version</th> |
85 |
</tr> |
85 |
<th> </th> |
86 |
</thead> |
86 |
</tr> |
87 |
|
87 |
</thead> |
88 |
[% FOREACH sr IN search_results %] |
88 |
|
89 |
<tr> |
89 |
[% FOREACH sr IN search_results %] |
90 |
<td><a href="[% sr.result.html_url | url %]" target="_new">[% sr.result.name | html %]</a></td> |
90 |
<tr> |
91 |
<td>[% sr.result.description | html %]</td> |
91 |
<td><a href="[% sr.result.html_url | url %]" target="_new">[% sr.result.name | html %]</a></td> |
92 |
<td>[% sr.repo.name | html %]</td> |
92 |
<td>[% sr.result.description | html %]</td> |
93 |
<td>[% sr.result.tag_name | html %]</td> |
93 |
<td>[% sr.repo.name | html %]</td> |
94 |
<td><a class="btn btn-default btn-sm btn-install-plugin" href="/cgi-bin/koha/plugins/plugins-upload.pl?op=Upload&uploadfile=[% sr.result.install_name | uri %]&uploadlocation=[% sr.result.install_url | uri %]"><i class="fa fa-download"></i> Install</a></td> |
94 |
<td>[% sr.result.tag_name | html %]</td> |
95 |
</tr> |
95 |
<td><a class="btn btn-default btn-sm btn-install-plugin" href="/cgi-bin/koha/plugins/plugins-upload.pl?op=Upload&uploadfile=[% sr.result.install_name | uri %]&uploadlocation=[% sr.result.install_url | uri %]"><i class="fa fa-download"></i> Install</a></td> |
96 |
[% END %] |
96 |
</tr> |
97 |
</table> |
97 |
[% END %] |
|
|
98 |
</table> |
99 |
</div><!-- /.page-section --> |
98 |
[% END %] |
100 |
[% END %] |
99 |
|
101 |
|
100 |
[% UNLESS ( plugins ) %] |
102 |
[% UNLESS ( plugins ) %] |
Lines 116-220
Link Here
|
116 |
[% END %] |
118 |
[% END %] |
117 |
[% END %] |
119 |
[% END %] |
118 |
[% ELSE %] |
120 |
[% ELSE %] |
119 |
<table id="installed_plugins"> |
121 |
<div class="page-section"> |
120 |
<thead> |
122 |
<table id="installed_plugins"> |
121 |
<tr> |
123 |
<thead> |
122 |
<th>Name</th> |
124 |
<tr> |
123 |
<th>Description</th> |
125 |
<th>Name</th> |
124 |
<th>Author</th> |
126 |
<th>Description</th> |
125 |
<th>Plugin version</th> |
127 |
<th>Author</th> |
126 |
<th>Minimum Koha version</th> |
128 |
<th>Plugin version</th> |
127 |
<th>Maximum Koha version</th> |
129 |
<th>Minimum Koha version</th> |
128 |
<th>Last updated</th> |
130 |
<th>Maximum Koha version</th> |
129 |
[% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %] |
131 |
<th>Last updated</th> |
130 |
<th class="noExport">Actions</th> |
132 |
[% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %] |
131 |
[% END %] |
133 |
<th class="noExport">Actions</th> |
132 |
</tr> |
|
|
133 |
</thead> |
134 |
|
135 |
[% FOREACH plugin IN plugins %] |
136 |
[% IF plugin.error %] |
137 |
<tr class="warn"> |
138 |
<td> |
139 |
<strong>[% plugin.name | html %]</strong> |
140 |
<span class="label label-warning">ERRORS</span> |
141 |
</td> |
142 |
[% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %] |
143 |
<td colspan="7">Error found whilst attempting to load plugin</td> |
144 |
[% ELSE %] |
145 |
<td colspan="6">Error found whilst attempting to load plugin</td> |
146 |
[% END %] |
147 |
</tr> |
148 |
[% ELSE %] |
149 |
<tr> |
150 |
<td> |
151 |
<strong>[% plugin.metadata.name | html %]</strong> |
152 |
[% IF ( plugin.is_enabled ) %] |
153 |
<span class="label label-primary">ENABLED</span> |
154 |
[% ELSE %] |
155 |
<span class="label label-default">DISABLED</span> |
156 |
[% END %] |
134 |
[% END %] |
157 |
</td> |
135 |
</tr> |
158 |
<td> |
136 |
</thead> |
159 |
[% plugin.metadata.description | html %] |
|
|
160 |
|
137 |
|
161 |
[% IF ( plugin.metadata.minimum_version && koha_version < plugin.metadata.minimum_version ) %] |
138 |
[% FOREACH plugin IN plugins %] |
162 |
<div class="dialog alert"> |
139 |
[% IF plugin.error %] |
163 |
Warning: This plugin was written for a newer version of Koha. Use at your own risk. |
140 |
<tr class="warn"> |
164 |
</div> |
141 |
<td> |
|
|
142 |
<strong>[% plugin.name | html %]</strong> |
143 |
<span class="label label-warning">ERRORS</span> |
144 |
</td> |
145 |
[% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %] |
146 |
<td colspan="7">Error found whilst attempting to load plugin</td> |
147 |
[% ELSE %] |
148 |
<td colspan="6">Error found whilst attempting to load plugin</td> |
165 |
[% END %] |
149 |
[% END %] |
|
|
150 |
</tr> |
151 |
[% ELSE %] |
152 |
<tr> |
153 |
<td> |
154 |
<strong>[% plugin.metadata.name | html %]</strong> |
155 |
[% IF ( plugin.is_enabled ) %] |
156 |
<span class="label label-primary">ENABLED</span> |
157 |
[% ELSE %] |
158 |
<span class="label label-default">DISABLED</span> |
159 |
[% END %] |
160 |
</td> |
161 |
<td> |
162 |
[% plugin.metadata.description | html %] |
166 |
|
163 |
|
167 |
[% IF ( plugin.metadata.maximum_version && koha_version > plugin.metadata.maximum_version ) %] |
164 |
[% IF ( plugin.metadata.minimum_version && koha_version < plugin.metadata.minimum_version ) %] |
168 |
<div class="dialog alert"> |
165 |
<div class="dialog alert"> |
169 |
Warning: This plugin was written for an older version of Koha. Use at your own risk. |
166 |
Warning: This plugin was written for a newer version of Koha. Use at your own risk. |
170 |
</div> |
167 |
</div> |
171 |
[% END %] |
168 |
[% END %] |
172 |
</td> |
169 |
|
173 |
<td>[% plugin.metadata.author | html %]</td> |
170 |
[% IF ( plugin.metadata.maximum_version && koha_version > plugin.metadata.maximum_version ) %] |
174 |
<td>[% plugin.metadata.version | html %]</td> |
171 |
<div class="dialog alert"> |
175 |
<td>[% plugin.metadata.minimum_version | html %]</td> |
172 |
Warning: This plugin was written for an older version of Koha. Use at your own risk. |
176 |
<td>[% plugin.metadata.maximum_version | html %]</td> |
173 |
</div> |
177 |
<td>[% plugin.metadata.date_updated | $KohaDates %]</td> |
174 |
[% END %] |
178 |
[% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %] |
175 |
</td> |
179 |
<td class="actions"> |
176 |
<td>[% plugin.metadata.author | html %]</td> |
180 |
<div class="btn-group dropup"> |
177 |
<td>[% plugin.metadata.version | html %]</td> |
181 |
<a class="btn btn-default btn-xs dropdown-toggle" id="pluginactions[% plugin.class | html %]" role="button" data-toggle="dropdown" href="#"> |
178 |
<td>[% plugin.metadata.minimum_version | html %]</td> |
182 |
Actions <b class="caret"></b> |
179 |
<td>[% plugin.metadata.maximum_version | html %]</td> |
183 |
</a> |
180 |
<td>[% plugin.metadata.date_updated | $KohaDates %]</td> |
184 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="pluginactions[% plugin.class | html %]"> |
181 |
[% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %] |
185 |
[% IF ( CAN_user_plugins_report ) %] |
182 |
<td class="actions"> |
186 |
[% IF plugin.can('report') %] |
183 |
<div class="btn-group dropup"> |
187 |
<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> |
184 |
<a class="btn btn-default btn-xs dropdown-toggle" id="pluginactions[% plugin.class | html %]" role="button" data-toggle="dropdown" href="#"> |
|
|
185 |
Actions <b class="caret"></b> |
186 |
</a> |
187 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="pluginactions[% plugin.class | html %]"> |
188 |
[% IF ( CAN_user_plugins_report ) %] |
189 |
[% 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> |
191 |
[% END %] |
188 |
[% END %] |
192 |
[% END %] |
189 |
[% END %] |
|
|
190 |
|
193 |
|
191 |
[% IF ( CAN_user_plugins_tool ) %] |
194 |
[% IF ( CAN_user_plugins_tool ) %] |
192 |
[% IF plugin.can('tool') %] |
195 |
[% IF plugin.can('tool') %] |
193 |
<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> |
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> |
|
|
197 |
[% END %] |
194 |
[% END %] |
198 |
[% END %] |
195 |
[% END %] |
|
|
196 |
|
199 |
|
197 |
[% IF ( CAN_user_plugins_configure ) %] |
200 |
[% IF ( CAN_user_plugins_configure ) %] |
198 |
[% IF plugin.can('configure') %] |
201 |
[% IF plugin.can('configure') %] |
199 |
<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> |
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> |
|
|
203 |
[% END %] |
200 |
[% END %] |
204 |
[% END %] |
201 |
[% END %] |
205 |
[% IF ( CAN_user_plugins_manage ) %] |
202 |
[% IF ( CAN_user_plugins_manage ) %] |
206 |
<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> |
203 |
<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> |
207 |
[% IF ( plugin.is_enabled ) %] |
204 |
[% IF ( plugin.is_enabled ) %] |
208 |
<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> |
205 |
<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> |
209 |
[% ELSE %] |
206 |
[% ELSE %] |
210 |
<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> |
207 |
<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> |
211 |
[% END %] |
208 |
[% END %] |
212 |
[% END %] |
209 |
[% END %] |
213 |
</ul> |
210 |
</ul> |
214 |
</div> |
211 |
</div> |
215 |
</td> |
212 |
</td> |
216 |
[% END %] |
|
|
217 |
</tr> |
213 |
[% END %] |
218 |
[% END %] |
214 |
</tr> |
|
|
215 |
[% END %] |
219 |
[% END %] |
216 |
[% END %] |
220 |
</table> |
217 |
</table> |
221 |
</div><!-- /.page-section --> |
218 |
[% END %] |
222 |
[% END %] |
219 |
</div> |
223 |
</div> |
220 |
|
224 |
|
221 |
- |
|
|