summaryrefslogtreecommitdiff
path: root/addons/website_version
diff options
context:
space:
mode:
authorGoffin Simon <simon.goffin@outlook.com>2015-01-20 11:07:41 +0100
committerGoffin Simon <simon.goffin@outlook.com>2015-02-02 08:26:29 +0100
commitac8d13a0a14d5a720939448beb18bf51cebf34f7 (patch)
tree41920dc2aa43ad8aab3a10893578cdbd33b919b5 /addons/website_version
parenta6e924051d2eb43cb9fdf27dcb2dcf5ca92dded9 (diff)
[IMP] To have the link to the pages in the current verison when you clicked on Diff with Master(Technical Feature).
Diffstat (limited to 'addons/website_version')
-rw-r--r--addons/website_version/controllers/main.py2
-rw-r--r--addons/website_version/static/src/xml/version_templates.xml4
2 files changed, 3 insertions, 3 deletions
diff --git a/addons/website_version/controllers/main.py b/addons/website_version/controllers/main.py
index 21adcb740f2..9580ec981fa 100644
--- a/addons/website_version/controllers/main.py
+++ b/addons/website_version/controllers/main.py
@@ -82,7 +82,7 @@ class Versioning_Controller(Website):
version = mod_version.browse(version_id)
name_list = []
for view in version.view_ids:
- name_list.append(view.name)
+ name_list.append({'name': view.name, 'url': '/page/' + view.name.replace(' ', '').lower()})
return name_list
@http.route('/website_version/google_access', type='json', auth="user")
diff --git a/addons/website_version/static/src/xml/version_templates.xml b/addons/website_version/static/src/xml/version_templates.xml
index ffe06d4d40e..d40b330be8e 100644
--- a/addons/website_version/static/src/xml/version_templates.xml
+++ b/addons/website_version/static/src/xml/version_templates.xml
@@ -236,8 +236,8 @@
<div class="modal-body">
<t t-if="list.length != 0">
<ul>
- <t t-foreach="list" t-as="item">
- <li><t t-esc="item"></t> </li>
+ <t t-foreach="list" t-as="item">
+ <li><a t-att-href="item.url"> <b><t t-esc="item.name"></t></b> </a></li>
</t>
</ul>
</t>