2877575ae0
I ran: $ git grep -l cat-search.inc | grep admin This means I believe the outstanding ones are (koha-tmpl/intranet-tmpl/prog/en/modules/): - admin/auth_subfields_structure.tt - admin/clone-rules.tt - admin/marc_subfields_structure.tt - admin/searchengine/elasticsearch/mappings.tt One other was recommended by Katrin in comment #9: - plugins/plugins-home.tt Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
133 lines
7.4 KiB
Text
133 lines
7.4 KiB
Text
[% USE KohaDates %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Tools › Plugins </title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
[% INCLUDE 'calendar.inc' %]
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
$(".uninstall_plugin").on("click", function(){
|
|
$(".dropdown").removeClass("open");
|
|
var plugin_name = $(this).data("plugin-name");
|
|
return confirmDelete( _("Are you sure you want to uninstall the plugin %s?").format( plugin_name ) );
|
|
});
|
|
});
|
|
</script>
|
|
</head>
|
|
|
|
<body id="plugins_plugins_home" class="plugins">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'prefs-admin-search.inc' %]
|
|
|
|
<div id="breadcrumbs">
|
|
<a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
|
|
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> ›
|
|
Plugins
|
|
</div>
|
|
|
|
<div id="doc3" class="yui-t1">
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
<div class="details">
|
|
|
|
[% IF ( CAN_user_plugins_manage ) %]
|
|
<div class="btn-toolbar" id="toolbar">
|
|
<a href="/cgi-bin/koha/plugins/plugins-upload.pl" id="upload_plugin" class="btn btn-default btn-sm"><i class="fa fa-upload"></i> Upload plugin</a>
|
|
</div>
|
|
[% END %]
|
|
|
|
<h1>Plugins</h1>
|
|
|
|
[% UNLESS ( plugins ) %]
|
|
[% UNLESS ( method ) %]
|
|
<div class="dialog message">No plugins installed</div>
|
|
[% ELSE %]
|
|
[% IF method == 'tool' %]
|
|
<div class="dialog message">No plugins that can be used as a tool are installed</div>
|
|
[% ELSIF method == 'report' %]
|
|
<div class="dialog message">No plugins that can create a report are installed</div>
|
|
[% ELSE %]
|
|
<div class="dialog message">Unknown plugin type <i>[% method %]</i></div>
|
|
[% END %]
|
|
[% END %]
|
|
[% ELSE %]
|
|
<table>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
<th>Author</th>
|
|
<th>Plugin version</th>
|
|
<th>Minimum Koha version</th>
|
|
<th>Maximum Koha version</th>
|
|
<th>Last updated</th>
|
|
[% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %]
|
|
<th>Actions</th>
|
|
[% END %]
|
|
</tr>
|
|
|
|
[% FOREACH plugin IN plugins %]
|
|
<tr>
|
|
<td><strong>[% plugin.metadata.name %]</strong></td>
|
|
<td>
|
|
[% plugin.metadata.description %]
|
|
|
|
[% IF ( plugin.metadata.minimum_version && koha_version < plugin.metadata.minimum_version ) %]
|
|
<div class="error">Warning: This report was written for a newer version of Koha. Run at your own risk.</div>
|
|
[% END %]
|
|
|
|
[% IF ( plugin.metadata.maximum_version && koha_version > plugin.metadata.maximum_version ) %]
|
|
<div class="error">Warning: This report was written for an older version of Koha. Run at your own risk.</div>
|
|
[% END %]
|
|
</td>
|
|
<td>[% plugin.metadata.author %]</td>
|
|
<td>[% plugin.metadata.version %]</td>
|
|
<td>[% plugin.metadata.minimum_version %]</td>
|
|
<td>[% plugin.metadata.maximum_version %]</td>
|
|
<td>[% plugin.metadata.date_updated | $KohaDates %]</td>
|
|
[% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %]
|
|
<td class="actions">
|
|
<div class="dropdown">
|
|
<a class="btn btn-default btn-xs dropdown-toggle" id="pluginactions[% plugin.class %]" role="button" data-toggle="dropdown" href="#">
|
|
Actions <b class="caret"></b>
|
|
</a>
|
|
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="pluginactions[% plugin.class %]">
|
|
[% IF ( CAN_user_plugins_report ) %]
|
|
[% IF plugin.can('report') %]
|
|
<li><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class %]&method=report"><i class="fa fa-table"></i> Run report</a></li>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% IF ( CAN_user_plugins_tool ) %]
|
|
[% IF plugin.can('tool') %]
|
|
<li><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class %]&method=tool"><i class="fa fa-wrench"></i> Run tool</a></li>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% IF ( CAN_user_plugins_configure ) %]
|
|
[% IF plugin.can('configure') %]
|
|
<li><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class %]&method=configure"><i class="fa fa-cog"></i> Configure</a></li>
|
|
[% END %]
|
|
[% END %]
|
|
[% IF ( CAN_user_plugins_manage ) %]
|
|
[% IF plugin.can('uninstall') %]
|
|
<li><a class="uninstall_plugin" data-plugin-name="[% plugin.metadata.name %]" href="/cgi-bin/koha/plugins/plugins-uninstall.pl?class=[% plugin.class %]"><i class="fa fa-trash"></i> Uninstall</a></li>
|
|
[% END %]
|
|
[% END %]
|
|
</ul>
|
|
</div>
|
|
</td>
|
|
[% END %]
|
|
[% END %]
|
|
</table>
|
|
[% END %]
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="yui-b noprint">
|
|
[% INCLUDE 'tools-menu.inc' %]
|
|
</div>
|
|
</div>
|
|
|
|
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|