mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-02 17:25:05 +02:00
Mark the special project build status in part info page and parts tables
This commit is contained in:
parent
fdcd1b9d9d
commit
05c4adb928
6 changed files with 47 additions and 3 deletions
|
@ -37,14 +37,20 @@
|
|||
<td>{{ part.iD }}</td>
|
||||
</tr>
|
||||
|
||||
<tr> {# ID #}
|
||||
<tr> {# IPN #}
|
||||
<td>{% trans %}part.edit.ipn{% endtrans %}</td>
|
||||
<td>{{ part.ipn ?? 'part.ipn.not_defined'|trans }}</td>
|
||||
</tr>
|
||||
|
||||
<tr> {# Favorite status #}
|
||||
<td>{% trans %}part.isFavorite{% endtrans %}</td>
|
||||
<td>{{ helper.boolean(part.favorite) }}</td>
|
||||
<td>{{ helper.boolean_badge(part.favorite) }}</td>
|
||||
</tr>
|
||||
|
||||
<tr> {# Build status #}
|
||||
<td>{% trans %}part.is_build_part{% endtrans %}</td>
|
||||
<td>{{ helper.boolean_badge(part.projectBuildPart) }}
|
||||
{% if part.projectBuildPart %}(<a href="{{ entity_url(part.builtProject, "edit") }}">{{ part.builtProject.name }}</a>){% endif %}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
<b class="mb-2">{% trans with {'%timestamp%': timeTravel|format_datetime('short')} %}part.info.timetravel_hint{% endtrans %}</b>
|
||||
{% endif %}
|
||||
|
||||
{% if part.projectBuildPart %}
|
||||
<b class="mb-2">{% trans %}part.info.projectBuildPart.hint{% endtrans %}: <a href="{{ entity_url(part.builtProject) }}">{{ part.builtProject.name }}</a></b>
|
||||
{% endif %}
|
||||
|
||||
<div class="mb-3">
|
||||
<span class="text-muted" title="{% trans %}lastModified{% endtrans %}">
|
||||
<i class="fas fa-history fa-fw"></i> {{ helper.date_user_combination(part, true) }}
|
||||
|
|
|
@ -20,6 +20,9 @@
|
|||
{% if timeTravel != null %}
|
||||
<i>({{ timeTravel | format_datetime('short') }})</i>
|
||||
{% endif %}
|
||||
{% if part.projectBuildPart %}
|
||||
(<i>{{ entity_type_label(part.builtProject) }}</i>: <a class="text-white" href="{{ entity_url(part.builtProject) }}">{{ part.builtProject.name }}</a>)
|
||||
{% endif %}
|
||||
<div class="float-end">
|
||||
{% trans %}id.label{% endtrans %}: {{ part.id }} {% if part.ipn is not empty %}(<i>{{ part.ipn }}</i>){% endif %}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue