mirror of
https://github.com/inventree/inventree-website.git
synced 2025-06-13 02:25:31 +00:00
migrate plugins repo
This commit is contained in:
20
_includes/plugin_card.html
Normal file
20
_includes/plugin_card.html
Normal file
@ -0,0 +1,20 @@
|
||||
<div class="row g-0 border rounded overflow-hidden flex-md-row mb-4 shadow-sm h-md-250 position-relative">
|
||||
<div class="col p-4 d-flex flex-column position-static">
|
||||
<div class="d-inline-block">
|
||||
{% for cat in plugin.categories %}
|
||||
<span class="badge rounded-pill bg-warning">{{ cat }}</span>
|
||||
{% endfor %}
|
||||
{% for tag in plugin.tags %}
|
||||
<span class="badge rounded-pill bg-info">{{ tag }}</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<h3 class="mb-0">{{ plugin.name }}</h3>
|
||||
<div class="mb-1 text-muted">
|
||||
{% if plugin.published_on %}{{ plugin.published_on | date_to_string }} - {% endif %}
|
||||
{% include publisher_ref.html pub=plugin.publisher %}
|
||||
</div>
|
||||
<p class="mb-auto">{{ plugin.excerpt | mardownify | remove: '<p>' | remove: '</p>' }}</p>
|
||||
<a href="{{ plugin.url }}" class="stretched-link" aria-label="open plugin details"></a>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user