2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-04-27 21:16:45 +00:00

add more source options

This commit is contained in:
Matthias Mair 2023-01-23 08:00:45 +01:00
parent 0126cf2291
commit f1f2779e57
No known key found for this signature in database
GPG Key ID: A593429DDA23B66A

View File

@ -16,12 +16,31 @@ fullwith: true
<h2 class="block sm:hidden">Link section</h2> <h2 class="block sm:hidden">Link section</h2>
<div> <div>
<a href="{{ page.github }}" class="no-underline" aria-label="open github repo"> {% if page.github %}
<a href="{{ page.github }}" class="no-underline" aria-label="open source on GitHub">
<div> <div>
<h4 class="fst-italic">Github</h4> <h4 class="fst-italic">Sourcecode on GitHub</h4>
<p>{{ page.github | remove: "https://github.com/" }}</p> <p>{{ page.github | remove: "https://github.com/" }}</p>
</div> </div>
</a> </a>
{% endif %}
{% if page.gitlab %}
<a href="{{ page.gitlab }}" class="no-underline" aria-label="open source on Gitlab">
<div>
<h4 class="fst-italic">Sourcecode on Gitlab</h4>
<p>{{ page.gitlab | remove: "https://gitlab.com/" }}</p>
</div>
</a>
{% endif %}
{% if page.source %}
<a href="{{ page.source }}" class="no-underline" aria-label="open source on SCM">
<div>
<h4 class="fst-italic">Sourcecode on SCM</h4>
<p>{{ page.source }}</p>
</div>
</a>
{% endif %}
<div> <div>
<h4 class="fst-italic">Categories</h4> <h4 class="fst-italic">Categories</h4>