diff --git a/addons/website_forum/controllers/main.py b/addons/website_forum/controllers/main.py index 327a23fa5e7..d259582cc8d 100644 --- a/addons/website_forum/controllers/main.py +++ b/addons/website_forum/controllers/main.py @@ -188,11 +188,11 @@ class website_forum(http.Controller): }, context=create_context) return werkzeug.utils.redirect("/forum/%s/question/%s" % (slug(forum),post_id)) - @http.route(['/forum//question/editanswer'], type='http', auth="user", website=True, multilang=True) - def edit_answer(self, forum, post_id, **kwargs): + @http.route(['/forum//question//editanswer'], type='http', auth="user", website=True, multilang=True) + def edit_answer(self, forum, post, **kwargs): cr, uid, context = request.cr, request.uid, request.context request.registry['res.users'].write(cr, uid, uid, {'forum': True}, context=context) - post = request.registry['website.forum.post'].browse(cr, uid, int(post_id), context=context) + post = request.registry['website.forum.post'].browse(cr, uid, post.id, context=context) for answer in post.child_ids: if answer.create_uid.id == request.uid: post_answer = answer diff --git a/addons/website_forum/static/src/css/website_forum.css b/addons/website_forum/static/src/css/website_forum.css index c8d3c709e24..35803cce0ab 100644 --- a/addons/website_forum/static/src/css/website_forum.css +++ b/addons/website_forum/static/src/css/website_forum.css @@ -24,3 +24,10 @@ max-width: 50px; margin-right: 10px; } + +.forum_button { + background-color : #df3f3f; + color: white !important; + margin-top: 10px; + margin-bottom: 10px; +} \ 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 3d2804dad08..4454d0c5523 100644 --- a/addons/website_forum/views/website_forum.xml +++ b/addons/website_forum/views/website_forum.xml @@ -250,45 +250,19 @@

Ask your Question

    -
  • - please, try to make your question interesting to others -
  • -
  • - provide enough details and, if possible, give an example -
  • -
  • - be clear and concise, avoid unnecessary introductions (Hi, - ... - Thanks...) -
  • +
  • please, try to make your question interesting to others
  • +
  • provide enough details and, if possible, give an example
  • +
  • be clear and concise, avoid unnecessary introductions (Hi, ... Thanks...)
-
-
- -
-
- Please enter a descriptive question (should - finish by a '?') -
-
-