mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-24 12:54:44 +02:00
Show the creating or last editing user in part or structure info.
This commit is contained in:
parent
8a7b90d0ea
commit
73c2aa232d
7 changed files with 152 additions and 8 deletions
|
@ -1,3 +1,5 @@
|
|||
{% import "helper.twig" as helper %}
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-3">{% trans %}id.label{% endtrans %}</label>
|
||||
<div class="col-md-9">
|
||||
|
@ -10,8 +12,8 @@
|
|||
<div class="col-md-9">
|
||||
<p class="form-control-plaintext">
|
||||
|
||||
{% if date(entity.addedDate) > date('1900/01/01') %}
|
||||
{{ entity.addedDate | format_datetime("long") }}
|
||||
{% if entity.id is not null and date(entity.addedDate) > date('1900/01/01') %}
|
||||
{{ helper.date_user_combination(entity, false, "long") }}
|
||||
{% else %}
|
||||
-
|
||||
{% endif %}
|
||||
|
@ -23,8 +25,8 @@
|
|||
<label class="col-form-label col-md-3">{% trans %}lastModified{% endtrans %}</label>
|
||||
<div class="col-md-9">
|
||||
<p class="form-control-plaintext">
|
||||
{% if date(entity.lastModified) > date('1900/01/01') %}
|
||||
{{ entity.lastModified | format_datetime("long") }}
|
||||
{% if entity.id is not null and date(entity.lastModified) > date('1900/01/01') %}
|
||||
{{ helper.date_user_combination(entity, true, "long") }}
|
||||
{% else %}
|
||||
-
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue