From 4278c95d8150e67e2362852546b3292212a9e231 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 2 Apr 2019 21:33:46 +0200 Subject: [PATCH] Mail wording --- copanier/templates/emails/order_summary.html | 2 +- copanier/templates/emails/order_summary.txt | 2 +- remote/__main__.py | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/copanier/templates/emails/order_summary.html b/copanier/templates/emails/order_summary.html index 2b353d5..058995f 100644 --- a/copanier/templates/emails/order_summary.html +++ b/copanier/templates/emails/order_summary.html @@ -1,5 +1,5 @@

Bonjour,

-

Voici le résumé de la commande «{{ delivery.producer }}»

+

Voici le résumé de votre commande «{{ delivery.producer }}»

{% include "includes/order_summary.html" %}

Livraison: {{ delivery.where }}, le {{ delivery.from_date|date }} de {{ delivery.from_date|time }} à {{ delivery.to_date|time }}

Bonne journée!

diff --git a/copanier/templates/emails/order_summary.txt b/copanier/templates/emails/order_summary.txt index c8d2a7b..da952b6 100644 --- a/copanier/templates/emails/order_summary.txt +++ b/copanier/templates/emails/order_summary.txt @@ -1,6 +1,6 @@ Salut salut, -Voici le résumé de la commande «{{ delivery.producer }}» +Voici le résumé de votre commande «{{ delivery.producer }}» Produit | Prix unitaire | Quantité diff --git a/remote/__main__.py b/remote/__main__.py index 81b73b4..0949f97 100644 --- a/remote/__main__.py +++ b/remote/__main__.py @@ -165,6 +165,13 @@ def error_logs(): run("tail -F /var/log/nginx/error.log") +@minicli.cli +def data_logs(): + """See the app data logs.""" + with sudo(): + run("tail -F /srv/copanier/logs/copanier-requests.log") + + @minicli.cli def upload_env(): """Upload environment vars to the server.