From 07cf5c16c9d6c686dbab21ff81a15e2b966af920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Tue, 23 Jul 2024 09:01:11 +0200 Subject: [PATCH] feat: add ticks on completed tasks --- muskathlon/__manifest__.py | 1 + muskathlon/templates/muskathlon_my_events.xml | 8 ++++++++ website_event_compassion/i18n/fr_CH.po | 2 +- website_event_compassion/static/description/index.html | 7 ++++--- website_event_compassion/templates/my_events.xml | 5 +++-- 5 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 muskathlon/templates/muskathlon_my_events.xml diff --git a/muskathlon/__manifest__.py b/muskathlon/__manifest__.py index 996df83..c964abb 100644 --- a/muskathlon/__manifest__.py +++ b/muskathlon/__manifest__.py @@ -66,6 +66,7 @@ "templates/donation_result.xml", "templates/assets.xml", "data/website_redirect.xml", + "templates/muskathlon_my_events.xml", ], "depends": [ "website_event_compassion", diff --git a/muskathlon/templates/muskathlon_my_events.xml b/muskathlon/templates/muskathlon_my_events.xml new file mode 100644 index 0000000..8b53e95 --- /dev/null +++ b/muskathlon/templates/muskathlon_my_events.xml @@ -0,0 +1,8 @@ + + + + \ No newline at end of file diff --git a/website_event_compassion/i18n/fr_CH.po b/website_event_compassion/i18n/fr_CH.po index e3dd9fa..0706843 100644 --- a/website_event_compassion/i18n/fr_CH.po +++ b/website_event_compassion/i18n/fr_CH.po @@ -1935,7 +1935,7 @@ msgid "" "Sponsoring a child converts to an equivalent donation\n" " of" msgstr "" -"Le parrainage d'un enfant équivaut à un don de\n" +"Le parrainage d'un enfant équivaut à un don\n" " de" #. module: website_event_compassion diff --git a/website_event_compassion/static/description/index.html b/website_event_compassion/static/description/index.html index 69e6a35..6c516b1 100644 --- a/website_event_compassion/static/description/index.html +++ b/website_event_compassion/static/description/index.html @@ -8,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -274,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -300,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { diff --git a/website_event_compassion/templates/my_events.xml b/website_event_compassion/templates/my_events.xml index 418c88a..aa2772c 100644 --- a/website_event_compassion/templates/my_events.xml +++ b/website_event_compassion/templates/my_events.xml @@ -161,8 +161,9 @@ t-attf-class="btn btn-#{'secondary' if task.done else 'primary'}" t-attf-href="../tasks/#{slug(task)}" t-att-target="'_blank' if task.task_id.open_new_tab else '_self'" - t-esc="task.name" - /> + > + +