diff --git a/assets/styles/tailmater.css b/assets/styles/tailmater.css index de34a36a..422d8307 100644 --- a/assets/styles/tailmater.css +++ b/assets/styles/tailmater.css @@ -1143,4 +1143,18 @@ trix-editor ol, .editor-output ol, ol.initial { #client_request #back a { @apply mb-5; +} + +ol.item-history { + @apply text-sm card-outlined w-full max-w-2xl; + list-style: decimal; + list-style-position: outside; +} + +ol.item-history li { + @apply mb-1 pl-1 ml-4; +} + +ol.item-history li:last-of-type { + @apply mb-0; } \ No newline at end of file diff --git a/templates/tom/__history.html.twig b/templates/tom/__history.html.twig index e729d895..eda4aad5 100644 --- a/templates/tom/__history.html.twig +++ b/templates/tom/__history.html.twig @@ -1,5 +1,9 @@ {% trans_default_domain 'tom' %} -{{ p.createdAt|date('d.m.Y H:i') }} -- {{ p.titel }}-- {{ p.user.email }} {{ p.approved?'versionApproved' |trans([], 'general') }} +
  • + + {{ p.createdAt|date('d.m.Y H:i') }} -- {{ p.titel }}-- {{ p.user.email }} {{ p.approved?'versionApproved' |trans([], 'general') }} + +
  • {% if p.previous %} {{ include('tom/__history.html.twig', {'p':p.previous}) }} -{% endif %} +{% endif %} \ No newline at end of file diff --git a/templates/tom/edit.html.twig b/templates/tom/edit.html.twig index 639938b9..ffd3bc60 100644 --- a/templates/tom/edit.html.twig +++ b/templates/tom/edit.html.twig @@ -19,10 +19,10 @@ {{ include('tom/__form.html.twig') }}

    {% trans from 'general' %}createdBy{% endtrans %}: {{ tom.user.email }}

    {% if tom.previous %} -
    -

    {% trans from 'general' %}history{% endtrans %}

    +

    {% trans from 'general' %}history{% endtrans %}

    +
      {{ include('tom/__history.html.twig', {'p':tom.previous}) }} -
    + {% endif %} {{ include('base/__snack.html.twig') }} {% endblock %} \ No newline at end of file