From f69d98460f9cbc9ac9c42467faf218e69a2ee934 Mon Sep 17 00:00:00 2001 From: mipel Date: Wed, 4 Aug 2021 15:55:40 +0200 Subject: [PATCH] Template improvement * minor improvement --- compensation/templates/compensation/detail/view.html | 4 +--- intervention/templates/intervention/detail/view.html | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/compensation/templates/compensation/detail/view.html b/compensation/templates/compensation/detail/view.html index cf7ba0e2..d9322109 100644 --- a/compensation/templates/compensation/detail/view.html +++ b/compensation/templates/compensation/detail/view.html @@ -65,9 +65,7 @@ {{comp.created.timestamp|default_if_none:""|naturalday}}
- {% with comp.created.user as user %} - {% include 'user/includes/contact_modal_button.html' %} - {% endwith %} + {{comp.created.user.username}} diff --git a/intervention/templates/intervention/detail/view.html b/intervention/templates/intervention/detail/view.html index c395cf59..1e4cb3b5 100644 --- a/intervention/templates/intervention/detail/view.html +++ b/intervention/templates/intervention/detail/view.html @@ -97,9 +97,7 @@ {{intervention.created.timestamp|default_if_none:""|naturalday}}
- {% with intervention.created.user as user %} - {% include 'user/includes/contact_modal_button.html' %} - {% endwith %} + {{intervention.created.user.username}}