|
@@ -0,0 +1,81 @@
|
|
|
+{% set page_title = _("Plugins") %}
|
|
|
+
|
|
|
+{% extends theme("management/management_layout.html") %}
|
|
|
+
|
|
|
+{% block breadcrumb %}
|
|
|
+<ol class="breadcrumb flaskbb-breadcrumb">
|
|
|
+ <li><a href="{{ url_for('forum.index') }}">{% trans %}Forum{% endtrans %}</a></li>
|
|
|
+ <li><a href="{{ url_for('management.overview') }}">{% trans %}Management{% endtrans %}</a></li>
|
|
|
+ <li class="active">{% trans %}Plugins{% endtrans %}</li>
|
|
|
+</ol>
|
|
|
+{% endblock %}
|
|
|
+
|
|
|
+{% block management_content %}
|
|
|
+{% from theme('macros.html') import render_pagination %}
|
|
|
+
|
|
|
+<div class="col-md-12 settings-col">
|
|
|
+ <div class="panel settings-panel">
|
|
|
+ <div class="panel-heading settings-head">
|
|
|
+ <span class="fa fa-puzzle-piece"></span> {% trans %}Manage Plugins{% endtrans %}
|
|
|
+ </div>
|
|
|
+ <div class="panel-body settings-body">
|
|
|
+ <div class="settings-content">
|
|
|
+ <table class="table">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th>{% trans %}Plugin{% endtrans %}</th>
|
|
|
+ <th>{% trans %}Information{% endtrans %}</th>
|
|
|
+ <th>{% trans %}Manage{% endtrans %}</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ {% for plugin in plugins %}
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ {% if plugin.website %}
|
|
|
+ <a href="{{ plugin.website }}">{{ plugin.name }}</a>
|
|
|
+ {% else %}
|
|
|
+ {{ plugin.name }}
|
|
|
+ {% endif %}
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ {% trans %}Version{% endtrans %}: <i>{{ plugin.version }}</i> <br />
|
|
|
+ {{ plugin.description }} <br />
|
|
|
+ {% trans %}by{% endtrans %} <i>{{ plugin.author }}</i>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ {% if not plugin.enabled %}
|
|
|
+ <form class="inline-form" method="post" action="{{ url_for('management.enable_plugin', plugin=plugin.identifier) }}">
|
|
|
+ <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
|
+ <button class="btn btn-link">{% trans %}Enable{% endtrans %}</button>
|
|
|
+ </form>
|
|
|
+ {% else %}
|
|
|
+ <form class="inline-form" method="post" action="{{ url_for('management.disable_plugin', plugin=plugin.identifier) }}">
|
|
|
+ <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
|
+ <button class="btn btn-link">{% trans %}Disable{% endtrans %}</button>
|
|
|
+ </form>
|
|
|
+ {% endif %}
|
|
|
+
|
|
|
+ {% if plugin.installable and not plugin.uninstallable %}
|
|
|
+ <br />
|
|
|
+ <form class="inline-form" method="post" action="{{ url_for('management.install_plugin', plugin=plugin.identifier) }}">
|
|
|
+ <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
|
+ <button class="btn btn-link">{% trans %}Install{% endtrans %}</button>
|
|
|
+ </form>
|
|
|
+ {% endif %}
|
|
|
+ {% if plugin.uninstallable %}
|
|
|
+ <form class="inline-form" method="post" action="{{ url_for('management.uninstall_plugin', plugin=plugin.identifier) }}">
|
|
|
+ <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
|
+ <button class="btn btn-link">{% trans %}Uninstall{% endtrans %}</button>
|
|
|
+ </form>
|
|
|
+ {% endif %}
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ {% endfor %}
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+{% endblock %}
|