From 24c0902c20f9e99c67bbc4f1570fd22ab5af1b1a Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Fri, 1 Mar 2013 16:21:50 +0100 Subject: [PATCH] [IMP] better templates bzr revid: mat@openerp.com-20130301152150-7iyp75nywkvai2jn --- addons/gamification/templates/base.mako | 13 ++++++++++++ .../templates/group_progress.mako | 18 ++++------------- .../templates/personal_progress.mako | 20 ++++--------------- 3 files changed, 21 insertions(+), 30 deletions(-) create mode 100644 addons/gamification/templates/base.mako diff --git a/addons/gamification/templates/base.mako b/addons/gamification/templates/base.mako new file mode 100644 index 00000000000..d5bb0c24c99 --- /dev/null +++ b/addons/gamification/templates/base.mako @@ -0,0 +1,13 @@ + + + + + + +
+ ${object.name} +
+

${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 index 332711fd1e4..e875b3466f8 100644 --- a/addons/gamification/templates/group_progress.mako +++ b/addons/gamification/templates/group_progress.mako @@ -1,17 +1,7 @@ - - - - - - -
- ${object.name} -
+<% extends 'base.mako' %> -

${object.report_header or ''}

-

- % for planline in planlines_boards: - +<% block body %> + % for planline in planlines_boards: @@ -39,4 +29,4 @@

% endfor - \ No newline at end of file +<% endblock %> \ No newline at end of file diff --git a/addons/gamification/templates/personal_progress.mako b/addons/gamification/templates/personal_progress.mako index 702e844cf06..642d0aa9fc8 100644 --- a/addons/gamification/templates/personal_progress.mako +++ b/addons/gamification/templates/personal_progress.mako @@ -1,15 +1,6 @@ - - - - - - -
- ${object.name} -
-

${object.report_header or ''}

-

-
${planline['goal_type']}
+<% extends 'base.mako' %> + +<% block body %>
@@ -23,9 +14,6 @@ - -

- % endfor
Goal Target${goal.current} ${goal.completeness} %
- \ No newline at end of file +<% endblock %> \ No newline at end of file