2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 20:45:44 +00:00

mark active sample code as a sample

This commit is contained in:
Matthias
2022-04-04 23:53:35 +02:00
parent d1a8b7ed48
commit bdc62dfcc3
2 changed files with 14 additions and 0 deletions

View File

@ -76,6 +76,12 @@
{% endfor %}
{% endif %}
{% if plugin.is_sample %}
<a class='sidebar-selector' id='select-plugin-{{plugin_key}}' data-bs-parent="#sidebar">
<span class='badge bg-info rounded-pill'>{% trans "code sample" %}</span>
</a>
{% endif %}
{% if plugin.website %}
<a href="{{ plugin.website }}"><span class="fas fa-globe"></span></a>
{% endif %}