From 1e402cb084915c0841c4b6cb945ed37b6753c24f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thibault=20Delavall=C3=A9e?= Date: Wed, 27 Aug 2014 10:57:29 +0200 Subject: [PATCH] [FIX] website_forum: fixed comment unlink action : - fixed call to a wrong method - fixed button display, now based on the standard way of managing karma (popup when not having the required karma) - fixed button display karma computation - some css tweaking for this button --- addons/website_forum/controllers/main.py | 2 +- addons/website_forum/static/src/css/website_forum.css | 4 ++++ addons/website_forum/static/src/css/website_forum.sass | 2 ++ addons/website_forum/views/website_forum.xml | 11 ++++++++--- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/addons/website_forum/controllers/main.py b/addons/website_forum/controllers/main.py index a3a9b58..d68ade3 100644 --- a/addons/website_forum/controllers/main.py +++ b/addons/website_forum/controllers/main.py @@ -596,4 +596,4 @@ class WebsiteForum(http.Controller): def delete_comment(self, forum, post, comment, **kwarg): if not request.session.uid: return {'error': 'anonymous_user'} - return request.registry['forum.post'].unlink(request.cr, request.uid, post.id, comment.id, context=request.context) + return request.registry['forum.post'].unlink_comment(request.cr, request.uid, post.id, comment.id, context=request.context) diff --git a/addons/website_forum/static/src/css/website_forum.css b/addons/website_forum/static/src/css/website_forum.css index 27d5247..1e85705 100644 --- a/addons/website_forum/static/src/css/website_forum.css +++ b/addons/website_forum/static/src/css/website_forum.css @@ -90,6 +90,10 @@ a.no-decoration { padding: 4px; } +.close.comment_delete { + font-size: 16px; +} + .country_flag { max-height: 16px; display: inline-block; diff --git a/addons/website_forum/static/src/css/website_forum.sass b/addons/website_forum/static/src/css/website_forum.sass index 1d8df0a..983b018 100644 --- a/addons/website_forum/static/src/css/website_forum.sass +++ b/addons/website_forum/static/src/css/website_forum.sass @@ -71,6 +71,8 @@ a.no-decoration .oe_comment_grey background-color: #f5f5f5 padding: 4px +.close.comment_delete + font-size: 16px .country_flag max-height: 16px diff --git a/addons/website_forum/views/website_forum.xml b/addons/website_forum/views/website_forum.xml index 5fa5c65..7b74293 100644 --- a/addons/website_forum/views/website_forum.xml +++ b/addons/website_forum/views/website_forum.xml @@ -658,9 +658,14 @@
- + + + + + + + + -- 1.7.10.4