2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-07-30 17:21:30 +00:00

Merge pull request #110 from matmair/matmair/issue94

Add plugin repo
This commit is contained in:
Oliver
2023-01-29 13:00:49 +11:00
committed by GitHub
21 changed files with 340 additions and 115 deletions

View File

@@ -0,0 +1,19 @@
<section class="cm-gray-2 body-font">
<div class="section-container">
<div class="flex flex-col text-center w-full mb-5">
<h1 class="text-2xl font-medium title-font mb-4 cm-gray-1 tracking-widest">Plugin List</h1>
<p>
Explore plugins provided by the community.
<a class="text-secondary inline-flex items-center" href="{% link plugins.html %}" alt="learn more">Learn More <img class="w-4 h-4 ml-2" alt="Arrow pointing right" src="{{ '/assets/learn.svg' | relative_url }}" /></a>
</p>
</div>
<div class="flex flex-wrap -m-4">
{% assign filtered_repo = site.repo | sort: 'last-modified-date' | reverse %}
{% for plugin in filtered_repo limit:2 %}
<div class="space-4 p-2 md:w-1/2">
{% include plugin_card.html plugin=plugin %}
</div>
{% endfor %}
</div>
</div>
</section>

View File

@@ -1,20 +1,20 @@
<div class="row g-0 border rounded overflow-hidden flex-md-row mb-4 shadow-sm h-md-250 position-relative">
<a href="{{ plugin.url | relative_url }}" class="no-underline" aria-label="open plugin details">
<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">
<div class="d-inline-block leading-loose">
{% for cat in plugin.categories %}
<span class="badge bg-yellow-500">{{ cat }}</span>
<span class="plugin_cat">{{ cat }}</span>
{% endfor %}
{% for tag in plugin.tags %}
<span class="badge bg-blue-400">{{ tag }}</span>
<span class="plugin_tag">{{ tag }}</span>
{% endfor %}
</div>
<h3 class="mb-0">{{ plugin.name }}</h3>
<h3 class="my-0">{{ plugin.name }}</h3>
<div class="mb-1 text-muted">
{% if plugin.published_on %}{{ plugin.published_on | date_to_string }} - {% endif %}
{% include partial/publisher_ref.html pub=plugin.publisher %}
{% include partial/publisher_ref.html pub=plugin.author %}
</div>
<p class="mb-auto">{{ plugin.excerpt | mardownify | remove: '<p>' | remove: '</p>' }}</p>
<a href="{{ plugin.url | relative_url }}" class="stretched-link" aria-label="open plugin details"></a>
<p class="my-0">{{ plugin.excerpt | mardownify | remove: '<p>' | remove: '</p>' }}</p>
</div>
</div>
</a>