mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-13 11:54:32 +02:00
Show part name as manufacturer URL link, when no MPN was set.
This commit is contained in:
parent
27b43041f9
commit
421a5d27dd
1 changed files with 7 additions and 1 deletions
|
@ -15,7 +15,13 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if part.manufacturerProductUrl %}
|
{% if part.manufacturerProductUrl %}
|
||||||
<small>
|
<small>
|
||||||
<a class="link-external" href="{{ part.manufacturerProductUrl }}" rel="noopener" target="_blank">{{ part.manufacturerProductNumber }}</a>
|
<a class="link-external" href="{{ part.manufacturerProductUrl }}" rel="noopener" target="_blank">
|
||||||
|
{% if part.manufacturerProductNumber is not empty %}
|
||||||
|
{{ part.manufacturerProductNumber }}
|
||||||
|
{% else %}
|
||||||
|
<i>{{ part.name }}</i>
|
||||||
|
{% endif %}
|
||||||
|
</a>
|
||||||
</small>
|
</small>
|
||||||
{% else %}
|
{% else %}
|
||||||
<small>{{ part.manufacturerProductNumber }}</small>
|
<small>{{ part.manufacturerProductNumber }}</small>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue