Skip to content

Commit

Permalink
use format_datetime and add translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Warxcell committed Sep 29, 2020
1 parent 2ca26df commit 2a607b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Resources/views/form/file.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

{% if file and file.id %}
<div>
<span>Original filename: {{ file.originalFilename }}</span>
<span>Size: {{ file.fileSize|format_bytes }}</span>
<span>Mime Type: {{ file.mimeType }}</span>
<span>Created: {{ file.createdAt|localizeddate }}</span>
<span>{% trans %}Original filename{% endtrans %}: {{ file.originalFilename }}</span>
<span>{% trans %}Size{% endtrans %}: {{ file.fileSize|format_bytes }}</span>
<span>{% trans %}Mime Type{% endtrans %}: {{ file.mimeType }}</span>
<span>{% trans %}Created{% endtrans %}: {{ file.createdAt|format_datetime }}</span>
</div>
{% endif %}

Expand Down

0 comments on commit 2a607b9

Please sign in to comment.