[imp]:improve vote_alert warrning

bzr revid: sunilsharma.sharma07@gmail.com-20140326090240-mwzpzbrt79f1k33w
This commit is contained in:
Sunil Sharma (OpenERP) 2014-03-26 14:32:40 +05:30
parent db68689f80
commit 18da293363
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ $(document).ready(function () {
'<button type="button" class="close notification_close" data-dismiss="alert" aria-hidden="true">&times;</button>'+
'Sorry, you cannot vote for your own posts'+
'</div>');
$link.parents().find("#post_vote").append($warning);
$link.parent().append($warning);
}
} else {
$link.parent().find("#vote_count").html(data['vote_count']);

View File

@ -345,7 +345,7 @@
<t t-call="website_forum.header">
<div t-attf-class="question #{not question.active and 'alert alert-danger' or ''}">
<div class="text-center pull-left" id="post_vote">
<div class="text-center pull-left">
<div t-attf-class="box oe_grey">
<a t-attf-class="fa fa-thumbs-up #{question.user_vote == 1 and 'text-success' or ''}"
t-attf-id="#{question.id}" t-attf-value="1"/>
@ -423,7 +423,7 @@
<div t-foreach="question.child_ids" t-as="answer" class="mt16 mb32" id="answer">
<a t-attf-id="answer-#{str(answer.id)}"/>
<div class="text-center pull-left" id="post_vote">
<div class="text-center pull-left">
<div t-attf-class="box oe_grey">
<a t-attf-class="fa fa-thumbs-up #{answer.user_vote == 1 and 'text-success' or ''}"
t-attf-id="#{answer.id}" t-attf-value="1"/>