From 9b05f8fa98317411229ba81dc6c888b86c24f27d Mon Sep 17 00:00:00 2001 From: Grizzly Date: Thu, 24 Jan 2019 18:00:20 +0000 Subject: [PATCH 1/2] =?UTF-8?q?Texte=20et=20couleur=20pour=20les=20machine?= =?UTF-8?q?s=20d=C3=A9sactiv=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- machines/templates/machines/aff_machines.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/machines/templates/machines/aff_machines.html b/machines/templates/machines/aff_machines.html index 4363cd6e..70b83d0a 100644 --- a/machines/templates/machines/aff_machines.html +++ b/machines/templates/machines/aff_machines.html @@ -52,7 +52,12 @@ with this program; if not, write to the Free Software Foundation, Inc., {% trans "No name" as tr_no_name %} {% trans "View the profile" as tr_view_the_profile %} - {{ machine.get_name|default:tr_no_name }} + {% if machine.active %} + + {% else %} + Deactivated: + {% endif %} + {{ machine.get_name|default:tr_no_name }} {{ machine.user }} From ee7c1272b16b5809248e8d8df07b0a4a49fe3287 Mon Sep 17 00:00:00 2001 From: klafyvel Date: Sat, 26 Jan 2019 13:08:59 +0100 Subject: [PATCH 2/2] Translation for deactivated --- machines/templates/machines/aff_machines.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machines/templates/machines/aff_machines.html b/machines/templates/machines/aff_machines.html index 70b83d0a..02ec3c91 100644 --- a/machines/templates/machines/aff_machines.html +++ b/machines/templates/machines/aff_machines.html @@ -55,7 +55,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% if machine.active %} {% else %} - Deactivated: + {% trans "Deactivated" %}: {% endif %} {{ machine.get_name|default:tr_no_name }}