mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
chore: Update plugin SVGs for external plugins by adding an external link + Add SVGs in plugins page as well
This commit is contained in:
parent
d08eec138b
commit
7ab6c864e2
2 changed files with 36 additions and 19 deletions
14
src/ui/templates/plugins.html
vendored
14
src/ui/templates/plugins.html
vendored
|
|
@ -1,6 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
|
||||
{% set attribute_name = "plugins" %}
|
||||
{%
|
||||
include "plugins_modal.html" %}
|
||||
|
|
@ -129,6 +128,19 @@
|
|||
</svg>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if plugin['type'] == "external" %}
|
||||
<a {% if not is_pro_version %}target="_blank" rel="noopener"{% endif %}
|
||||
aria-label="external plugin"
|
||||
class="hover:-translate-y-px mx-1 -translate-y-0.5 ml-1"
|
||||
href="https://github.com/bunkerity/bunkerweb-plugins">
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 24 24"
|
||||
fill="currentColor"
|
||||
class="h-6 w-6 dark:brightness-90 fill-blue-500">
|
||||
<path fill-rule="evenodd" d="M10.5 3.75a6 6 0 0 0-5.98 6.496A5.25 5.25 0 0 0 6.75 20.25H18a4.5 4.5 0 0 0 2.206-8.423 3.75 3.75 0 0 0-4.133-4.303A6.001 6.001 0 0 0 10.5 3.75Zm2.25 6a.75.75 0 0 0-1.5 0v4.94l-1.72-1.72a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l3-3a.75.75 0 1 0-1.06-1.06l-1.72 1.72V9.75Z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
|
|
|||
41
src/ui/templates/settings_plugins.html
vendored
41
src/ui/templates/settings_plugins.html
vendored
|
|
@ -42,24 +42,29 @@
|
|||
</a>
|
||||
{% endif %}
|
||||
{% if plugin['type'] == "core" %}
|
||||
<div
|
||||
aria-label="core plugin"
|
||||
class="hover:-translate-y-px mx-1 -translate-y-0.5 ml-2">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="h-5.5 w-5.5 dark:brightness-90 fill-orange-500">
|
||||
<path fill-rule="evenodd" d="M5.25 2.25a3 3 0 0 0-3 3v4.318a3 3 0 0 0 .879 2.121l9.58 9.581c.92.92 2.39 1.186 3.548.428a18.849 18.849 0 0 0 5.441-5.44c.758-1.16.492-2.629-.428-3.548l-9.58-9.581a3 3 0 0 0-2.122-.879H5.25ZM6.375 7.5a1.125 1.125 0 1 0 0-2.25 1.125 1.125 0 0 0 0 2.25Z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if plugin['type'] == "external" %}
|
||||
<div
|
||||
aria-label="external plugin"
|
||||
class="hover:-translate-y-px mx-1 -translate-y-0.5 ml-2">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="h-6 w-6 dark:brightness-90 fill-blue-500">
|
||||
<path fill-rule="evenodd" d="M10.5 3.75a6 6 0 0 0-5.98 6.496A5.25 5.25 0 0 0 6.75 20.25H18a4.5 4.5 0 0 0 2.206-8.423 3.75 3.75 0 0 0-4.133-4.303A6.001 6.001 0 0 0 10.5 3.75Zm2.25 6a.75.75 0 0 0-1.5 0v4.94l-1.72-1.72a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l3-3a.75.75 0 1 0-1.06-1.06l-1.72 1.72V9.75Z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
|
||||
</div>
|
||||
{% endif %}
|
||||
<div aria-label="core plugin"
|
||||
class="hover:-translate-y-px mx-1 -translate-y-0.5 ml-2">
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 24 24"
|
||||
fill="currentColor"
|
||||
class="h-5.5 w-5.5 dark:brightness-90 fill-orange-500">
|
||||
<path fill-rule="evenodd" d="M5.25 2.25a3 3 0 0 0-3 3v4.318a3 3 0 0 0 .879 2.121l9.58 9.581c.92.92 2.39 1.186 3.548.428a18.849 18.849 0 0 0 5.441-5.44c.758-1.16.492-2.629-.428-3.548l-9.58-9.581a3 3 0 0 0-2.122-.879H5.25ZM6.375 7.5a1.125 1.125 0 1 0 0-2.25 1.125 1.125 0 0 0 0 2.25Z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if plugin['type'] == "external" %}
|
||||
<a {% if not is_pro_version %}target="_blank" rel="noopener"{% endif %}
|
||||
aria-label="external plugin"
|
||||
class="hover:-translate-y-px mx-1 -translate-y-0.5 ml-1"
|
||||
href="https://github.com/bunkerity/bunkerweb-plugins">
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 24 24"
|
||||
fill="currentColor"
|
||||
class="h-6 w-6 dark:brightness-90 fill-blue-500">
|
||||
<path fill-rule="evenodd" d="M10.5 3.75a6 6 0 0 0-5.98 6.496A5.25 5.25 0 0 0 6.75 20.25H18a4.5 4.5 0 0 0 2.206-8.423 3.75 3.75 0 0 0-4.133-4.303A6.001 6.001 0 0 0 10.5 3.75Zm2.25 6a.75.75 0 0 0-1.5 0v4.94l-1.72-1.72a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l3-3a.75.75 0 1 0-1.06-1.06l-1.72 1.72V9.75Z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="max-w-[650px] transition duration-300 ease-in-out dark:opacity-90 ml-2 ">
|
||||
<p class="text-sm dark:text-gray-300 mb-1">{{ plugin['description'] }}</p>
|
||||
|
|
|
|||
Loading…
Reference in a new issue