From a7537589aab08de617fb24b345fa418c86aba700 Mon Sep 17 00:00:00 2001 From: Richard Hitier Date: Tue, 4 May 2021 12:20:21 +0200 Subject: [PATCH] Display charges in tables as ETP --- app/main/templates/agent.html | 3 ++- app/main/templates/agents.html | 2 +- app/main/templates/projects.html | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/main/templates/agent.html b/app/main/templates/agent.html index 70a4160..b31f2ab 100644 --- a/app/main/templates/agent.html +++ b/app/main/templates/agent.html @@ -23,7 +23,8 @@ {% for i in range(line|length) %} {%if 'Charge' in charges[0][i] %} - {{line[i]}} % + {% set charge = line[i] | int %} + {{charge / 100}} {%else%} {{line[i]}} {%endif%} diff --git a/app/main/templates/agents.html b/app/main/templates/agents.html index 59a0be3..7a561b0 100644 --- a/app/main/templates/agents.html +++ b/app/main/templates/agents.html @@ -19,7 +19,7 @@ {{ agent.firstname }} {{ agent.secondname }} - {{agent.total_charge}} % + {{agent.total_charge / 100}} {{agent.num_projects}} {% endfor %} diff --git a/app/main/templates/projects.html b/app/main/templates/projects.html index a2a37a7..34792b8 100644 --- a/app/main/templates/projects.html +++ b/app/main/templates/projects.html @@ -21,7 +21,7 @@ {% for c in project[2:-1] %} {{c}} {% endfor %} - {{ project[-1] }} % + {{ project[-1] /100}} {% endfor %} -- libgit2 0.21.2