Show the creating or last editing user in part or structure info.

This commit is contained in:
Jan Böhmer 2020-02-06 19:22:01 +01:00
parent 8a7b90d0ea
commit 73c2aa232d
7 changed files with 152 additions and 8 deletions

View file

@ -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 %}