diff options
author | Matthew Lemon <y@yulqen.org> | 2024-10-07 15:40:13 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-10-07 15:40:13 +0100 |
commit | 222cd8c0737ea76f33b6a9337316b673f532bcc0 (patch) | |
tree | eddb5ecc6723c541eae6348e0ce1380670d7f566 /engagements/templates | |
parent | b821c337590e2653074f3f01c649c180918c1c32 (diff) |
Nice engagement duration text for summary box on detail page
Diffstat (limited to 'engagements/templates')
-rw-r--r-- | engagements/templates/engagements/engagement_detail.html | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/engagements/templates/engagements/engagement_detail.html b/engagements/templates/engagements/engagement_detail.html index fbf6735..c122e11 100644 --- a/engagements/templates/engagements/engagement_detail.html +++ b/engagements/templates/engagements/engagement_detail.html @@ -81,10 +81,9 @@ <path stroke-linecap="round" stroke-linejoin="round" d="M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5m-9-6h.008v.008H12v-.008ZM12 15h.008v.008H12V15Zm0 2.25h.008v.008H12v-.008ZM9.75 15h.008v.008H9.75V15Zm0 2.25h.008v.008H9.75v-.008ZM7.5 15h.008v.008H7.5V15Zm0 2.25h.008v.008H7.5v-.008Zm6.75-4.5h.008v.008h-.008v-.008Zm0 2.25h.008v.008h-.008V15Zm0 2.25h.008v.008h-.008v-.008Zm2.25-4.5h.008v.008H16.5v-.008Zm0 2.25h.008v.008H16.5V15Z"/> </svg> - <span class="text-black">{{ engagement.proposed_start_date|date:'j M Y' }}</span> - {% if engagement.proposed_end_date != engagement.proposed_start_date %} - - {{ engagement.proposed_end_date|date:'j M Y' }} - {% endif %} + <span class="text-black"> + {{ day_duration }} + </span> </div> <!-- Site/Operation --> |