2
0
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:
2022-02-07 00:24:10 +01:00
parent cd504fad25
commit b046190388
14 changed files with 288 additions and 0 deletions

View 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>

View File

@ -0,0 +1,4 @@
{% assign publisher_ref = site.publishers | where: 'short_name', include.pub | first %}
<a href="{{ publisher_ref.url }}" class="link-secondary">
<p class="text-muted">by <img src="https://github.com/{{ include.pub }}.png?size=40" alt="mdo" class="rounded-circle" width="20" height="20"> {{ include.pub }}</p>
</a>