${object.report_header or ''}
- % for line in ctx['lines_boards']: + % for line in ctx["challenge_lines"]:| ${line.goal_definition.name} | +${line['name']} | ||||||
|---|---|---|---|---|---|---|---|
| # | @@ -188,23 +188,21 @@Completeness | Current | |||||
| ${idx+1} | -${goal.user_id.name} | -${goal.completeness}% | -${goal.current}/${goal.target_goal} - % if goal.definition_suffix: - ${goal.definition_suffix} - % endif - | -||||
| ${goal['rank']} | +${goal['name']} | +${goal['completeness']}% | +${goal['current']}/${line['target']} + % if line['suffix']: + ${line['suffix']} + % endif + | +||||
Congratulation, you have received the badge ${badge_user.badge_id.name} ! - % if user_from - This badge was granted by ${user_from.name}. - % endif -
- - % if badge_user.comment -${badge_user.comment}
- % endif - - \ No newline at end of file diff --git a/addons/gamification/templates/base.mako b/addons/gamification/templates/base.mako deleted file mode 100644 index d5bb0c24c99..00000000000 --- a/addons/gamification/templates/base.mako +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - -${object.report_header or ''}
-<% block body %><% endblock %> - - \ No newline at end of file diff --git a/addons/gamification/templates/group_progress.mako b/addons/gamification/templates/group_progress.mako deleted file mode 100644 index 5d71c36032f..00000000000 --- a/addons/gamification/templates/group_progress.mako +++ /dev/null @@ -1,38 +0,0 @@ -<% extends 'base.mako' %> - -<% block body %> - % for line in lines_boards: -| ${line.goal_definition.name} | -|||
|---|---|---|---|
| # | -Person | -Completeness | -Current | -
| ${idx+1} | -${goal.user_id.name} | -${goal.completeness}% | -${goal.current}/${goal.target_goal} - % if goal.definition_suffix: - ${goal.definition_suffix} - % endif - | -
| Goal | -Target | -Current | -Completeness | -
|---|---|---|---|
| ${goal.definition_id.name} | -${goal.target_goal} - % if goal.definition_suffix: - ${goal.definition_suffix} - % endif - | -${goal.current} - % if goal.definition_suffix: - ${goal.definition_suffix} - % endif - | -${goal.completeness} % | -
${object.report_header or ''}
- -You have not updated your progress for the goal ${object.definition_id.name} (currently reached at ${object.completeness}%) for at least ${object.remind_update_delay} days. Do not forget to do it.
- -If you have not changed your score yet, you can use the button "The current value is up to date" to indicate so.
- - diff --git a/addons/gamification/views/challenge.xml b/addons/gamification/views/challenge.xml index 5403630b5b6..973194738cd 100644 --- a/addons/gamification/views/challenge.xml +++ b/addons/gamification/views/challenge.xml @@ -76,7 +76,7 @@Depending on the Diasplay mode, reports will be individual or shared.
+