Skip to content

Commit

Permalink
ux: Display day name in web UIs
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlesne committed Jul 15, 2024
1 parent 04fa804 commit 23d5dca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions public_website/list.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ History for {{ phone_number or 'all numbers' }}
<div class="p-4 truncate col-span-2">📝&nbsp;&nbsp;Short summary</div>
</div>
{% for call in calls %}
<a href="/report/{{ call.call_id }}" title="Call from {{ call.initiate.phone_number }} the {{ call.created_at.astimezone(call.tz()).strftime('%d %b %Y, %H:%M (%Z)') }}" class="grid grid-cols-4 hover:bg-neutral-100/60 dark:hover:bg-neutral-800/60 {% if not loop.last %}border-b border-neutral-200/60 dark:border-neutral-700/60{% endif %}">
<a href="/report/{{ call.call_id }}" title="Call from {{ call.initiate.phone_number }} the {{ call.created_at.astimezone(call.tz()).strftime('%a %d %b %Y, %H:%M (%Z)') }}" class="grid grid-cols-4 hover:bg-neutral-100/60 dark:hover:bg-neutral-800/60 {% if not loop.last %}border-b border-neutral-200/60 dark:border-neutral-700/60{% endif %}">
<div class="p-4 truncate">{{ call.initiate.phone_number }}</div>
<div class="p-4 truncate">{{ call.created_at.astimezone(call.tz()).strftime('%d %b %Y, %H:%M (%Z)') }}</div>
<div class="p-4 truncate">{{ call.created_at.astimezone(call.tz()).strftime('%a %d %b %Y, %H:%M (%Z)') }}</div>
<div class="col-span-2 p-4 truncate">{{ call.synthesis.short | lower }}</div>
</a>
{% endfor %}
Expand Down
6 changes: 3 additions & 3 deletions public_website/single.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Claim ({{ call.initiate.phone_number }})
</span>
</div>
<div class="text-neutral-600 dark:text-neutral-400">
{{ message.created_at.astimezone(call.tz()).strftime('%d %b %Y, %H:%M (%Z)') }}
{{ message.created_at.astimezone(call.tz()).strftime('%a %d %b %Y, %H:%M (%Z)') }}
</div>
</div>
{% if message.content %}
Expand Down Expand Up @@ -108,7 +108,7 @@ Claim ({{ call.initiate.phone_number }})
{% for reminder in call.reminders | sort(attribute='due_date_time') %}
<div>
<div class="text-xs">
{{ reminder.owner | title }}<span class="text-neutral-600 dark:text-neutral-400">, {{ reminder.due_date_time.astimezone(call.tz()).strftime('%d %b %Y, %H:%M (%Z)') }}</span>
{{ reminder.owner | title }}<span class="text-neutral-600 dark:text-neutral-400">, {{ reminder.due_date_time.astimezone(call.tz()).strftime('%a %d %b %Y, %H:%M (%Z)') }}</span>
</div>
<p class="text-neutral-600 dark:text-neutral-400">{{ reminder.title | capitalize }}</p>
</div>
Expand Down Expand Up @@ -185,7 +185,7 @@ Claim ({{ call.initiate.phone_number }})
set details = [
{
'title': 'Date',
'value': call.claim.incident_date_time.strftime('%d %b %Y, %H:%M (%Z)') if call.claim.incident_date_time else 'N/A'
'value': call.claim.incident_date_time.strftime('%a %d %b %Y, %H:%M (%Z)') if call.claim.incident_date_time else 'N/A'
},
{
'title': 'Location',
Expand Down

0 comments on commit 23d5dca

Please sign in to comment.