Skip to content

Commit

Permalink
useful note names
Browse files Browse the repository at this point in the history
  • Loading branch information
cconard96 authored and trasher committed Feb 17, 2025
1 parent f7d48b7 commit 10418e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion templates/components/notepad/form.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@
data-bs-toggle="collapse" data-bs-target="#{{ id }}"
aria-expanded="false" aria-controls="{{ id }}">
<i class="ti ti-notes me-1"></i>
<span>#{{ id }}</span>
{% set title = '#' ~ note['id'] ~ ' - ' ~ note['date_creation']|formatted_datetime %}
{% if note['date_mod'] != note['date_creation'] %}
{% set title = title ~ ' (' ~ __('Last update on %s')|format(note['date_mod']|formatted_datetime) ~ ')' %}
{% endif %}
<span>{{ title }}</span>
</button>
</div>

Expand Down

0 comments on commit 10418e9

Please sign in to comment.