[IMP] To have the link to the pages in the current verison when you clicked on Diff with Master(Technical Feature).

This commit is contained in:
Goffin Simon
2015-02-02 08:26:29 +01:00
parent a6e924051d
commit ac8d13a0a1
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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")
@@ -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>