34 lines
1.2 KiB
HTML
34 lines
1.2 KiB
HTML
{% extends "workspace_header_general.html" %}
|
|
|
|
{% block page_title %}Plugin Marketplace{% endblock %}
|
|
{% block page_description %}View and install available plugins.{% endblock %}
|
|
|
|
{% block workspace_content %}
|
|
<form action="{{ url_for('plugins_update') }}" method="POST">
|
|
<button type="submit">Refresh</button>
|
|
</form>
|
|
|
|
{% for plugin in plugins %}
|
|
<h2>{{ plugin.name }}</h2>
|
|
{% if plugin.is_installed %}
|
|
<p>Installed: ✅ <form action="{{ url_for('plugin_upgrade', name=plugin.name) }}" method="POST"><button type="submit">Upgrade</button></form></p>
|
|
{% else %}
|
|
<p><form action="{{ url_for('plugin_upgrade', name=plugin.name) }}" method="POST"><button type="submit">Install</button></form></p>
|
|
{% endif %}
|
|
<p{{ plugin.short_description }}></p>
|
|
<!-- TODO is that actually safe? -->
|
|
<p>{{ plugin.description|safe }}</p>
|
|
<ul>
|
|
<li>url: {{ plugin.url }}</li>
|
|
<li>index: {{ plugin.index }}</li>
|
|
</ul>
|
|
{% endfor %}
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
<script>
|
|
document.getElementById('plugin-marketplace').classList.toggle('sidebar-tab-selected');
|
|
document.querySelectorAll('plugin-marketplace-logo').classList.toggle('sidebar-tab-logo-selected');
|
|
</script>
|
|
{% endblock %}
|