Skip to content

Commit

Permalink
feat: add ticks on completed tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Clément committed Jul 23, 2024
1 parent 3cc8060 commit 07cf5c1
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
1 change: 1 addition & 0 deletions muskathlon/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"templates/donation_result.xml",
"templates/assets.xml",
"data/website_redirect.xml",
"templates/muskathlon_my_events.xml",
],
"depends": [
"website_event_compassion",
Expand Down
8 changes: 8 additions & 0 deletions muskathlon/templates/muskathlon_my_events.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template id="my_events_muskathlon" inherit_id="website_event_compassion.my_event_details">
<xpath expr="//div[@name='tasks_section']//a[@type='button']" position="inside">
<i t-if="task.done" class="fa fa-check" />
</xpath>
</template>
</odoo>
2 changes: 1 addition & 1 deletion website_event_compassion/i18n/fr_CH.po
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions website_event_compassion/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@

/*
:Author: David Goodger ([email protected])
: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.
Expand Down Expand Up @@ -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 }
Expand All @@ -300,7 +301,7 @@
span.pre {
white-space: pre }

span.problematic {
span.problematic, pre.problematic {
color: red }

span.section-subtitle {
Expand Down
5 changes: 3 additions & 2 deletions website_event_compassion/templates/my_events.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
/>
>
<t t-esc="task.name" />
</a>
</t>
</div>
</div>
Expand Down

0 comments on commit 07cf5c1

Please sign in to comment.