From b9d9081047e678055a050b627cfeaf0812e1026f Mon Sep 17 00:00:00 2001 From: Richard Hitier Date: Wed, 31 Mar 2021 18:57:33 +0200 Subject: [PATCH] Tweak charges table headers --- app/db_mgr.py | 4 ++-- app/main/static/css/charges.css | 3 ++- app/main/templates/agent.html | 2 +- app/main/templates/project.html | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/db_mgr.py b/app/db_mgr.py index f3c801b..48fd14e 100644 --- a/app/db_mgr.py +++ b/app/db_mgr.py @@ -68,7 +68,7 @@ def charges_by_project(project_id): for line in results: nocomma_line = [str(cell) for cell in line] nocomma_results.append(nocomma_line) - headers = ["Period", "Agent", "Service", "Capacity", "Charge"] + headers = ["Periode", "Agent", "Service", "Fonction", "Charge"] nocomma_results.insert(0, headers) return nocomma_results @@ -101,7 +101,7 @@ def charges_by_agent_tabled(agent_id): for line in results: nocomma_line = [str(cell) for cell in line] nocomma_results.append(nocomma_line) - headers = ["Period", "Project", "Service", "Capacity", "Charge"] + headers = ["Periode", "Projet", "Service", "Fonction", "Charge"] nocomma_results.insert(0, headers) return nocomma_results diff --git a/app/main/static/css/charges.css b/app/main/static/css/charges.css index 005b68f..49543fa 100644 --- a/app/main/static/css/charges.css +++ b/app/main/static/css/charges.css @@ -6,7 +6,8 @@ border: solid 1px lightsteelblue; } -#charge_table td { +#charge_table td, +#charge_table th { padding: 0.8em; } diff --git a/app/main/templates/agent.html b/app/main/templates/agent.html index 77924c5..9b05763 100644 --- a/app/main/templates/agent.html +++ b/app/main/templates/agent.html @@ -10,7 +10,7 @@ {% for header in charges[0] %} - {{header}} + {{header}} {% endfor %} diff --git a/app/main/templates/project.html b/app/main/templates/project.html index dc9af42..680b1bb 100644 --- a/app/main/templates/project.html +++ b/app/main/templates/project.html @@ -9,7 +9,7 @@ {% for header in charges[0] %} - {{header}} + {{header}} {% endfor %} -- libgit2 0.21.2