From 90953057aa54fab33f447a6cab83f6601ff8bc77 Mon Sep 17 00:00:00 2001 From: Mantavya Gajjar Date: Sat, 22 Feb 2014 23:24:29 +0530 Subject: [PATCH] [FIX]: change paths for the questions /qustions - list of questions /question/number - question page bzr revid: mga@tinyerp.com-20140222175429-ed2bf13rvihzlmpe --- addons/website_forum/controllers/main.py | 4 ++-- addons/website_forum/data/forum_data.xml | 2 +- .../website_forum/static/src/xml/website_forum.xml | 12 ++++++------ addons/website_forum/views/website_forum.xml | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/addons/website_forum/controllers/main.py b/addons/website_forum/controllers/main.py index dc09afbde30..59123708c4b 100644 --- a/addons/website_forum/controllers/main.py +++ b/addons/website_forum/controllers/main.py @@ -35,7 +35,7 @@ from openerp.addons.website.controllers.main import Website as controllers controllers = controllers() class website_forum(http.Controller): - @http.route(['/question/', '/question/page/'], type='http', auth="public", website=True, multilang=True) + @http.route(['/questions/', '/question/page/'], type='http', auth="public", website=True, multilang=True) def questions(self, page=1, **searches): cr, uid, context = request.cr, request.uid, request.context forum_obj = request.registry['website.forum.post'] @@ -45,7 +45,7 @@ class website_forum(http.Controller): question_count = forum_obj.search( request.cr, request.uid, [], count=True, context=request.context) - pager = request.website.pager(url="/question/", total=question_count, page=page, step=step, scope=5) + pager = request.website.pager(url="/questions/", total=question_count, page=page, step=step, scope=5) obj_ids = forum_obj.search( request.cr, request.uid, [], limit=step, diff --git a/addons/website_forum/data/forum_data.xml b/addons/website_forum/data/forum_data.xml index f5c92f0678a..a9d27e72a25 100644 --- a/addons/website_forum/data/forum_data.xml +++ b/addons/website_forum/data/forum_data.xml @@ -4,7 +4,7 @@ Support - /question + /questions 40 diff --git a/addons/website_forum/static/src/xml/website_forum.xml b/addons/website_forum/static/src/xml/website_forum.xml index 78042288b23..06728f9e5ef 100644 --- a/addons/website_forum/static/src/xml/website_forum.xml +++ b/addons/website_forum/static/src/xml/website_forum.xml @@ -1,7 +1,7 @@ - - -
  • New Question
  • -
    -
    -
    + + +
  • New Question
  • +
    +
    + \ No newline at end of file diff --git a/addons/website_forum/views/website_forum.xml b/addons/website_forum/views/website_forum.xml index 6a8c3ea49de..d6f82f313c4 100644 --- a/addons/website_forum/views/website_forum.xml +++ b/addons/website_forum/views/website_forum.xml @@ -17,7 +17,7 @@ name="Footer Questions Link">
  • - Questions + Support