[IMP] css: design for 'likes'
authorFrédéric van der Essen <fva@openerp.com>
Mon, 29 Oct 2012 14:45:03 +0000 (15:45 +0100)
committerFrédéric van der Essen <fva@openerp.com>
Mon, 29 Oct 2012 14:45:03 +0000 (15:45 +0100)
bzr revid: fva@openerp.com-20121029144503-tc124u71b2qijclx

addons/mail/static/src/css/mail.css
addons/mail/static/src/xml/mail.xml

index eab8860..af3cc3e 100644 (file)
 .openerp .oe_mail .oe_msg.oe_msg_indented .oe_msg_content{
     padding-top:2px;
 }
+/* b) Votes (likes) */
+.openerp .oe_mail .oe_mail_vote_count{
+    display: inline;
+    position: relative;
+    background: #7C7BAD;
+    color: white;
+    text-shadow: none;
+    border-radius: 3px;
+    margin: 0px;
+    padding-left: 3px;
+    padding-right: 18px;
+    margin-right: 3px;
+}
+.openerp .oe_mail .oe_mail_vote_count .oe_e{
+    position: absolute;
+    bottom: 1px;
+    right: 2px;
+    font-size: 26px;
+}
 
-/* b) Message action icons */
+/* c) Message action icons */
 
 .openerp .oe_mail .oe_msg.oe_msg_unread .oe_unread{
     display:none;
index ecd7fa4..caa85cd 100644 (file)
     -->
     <span t-name="mail.thread.message.vote">
         
-        <span class="oe_mail_vote_count">
-            <t t-if='widget.has_voted'>
-                You
-            </t>
-            <t t-if='(widget.vote_nb - (widget.has_voted ? 1 : 0)) > 0'>
-                <t t-if='widget.has_voted'> and </t>
-                <t t-raw="(widget.vote_nb - (widget.has_voted ? 1 : 0))"/>
-                <t t-esc="widget.vote_nb"/> people
-            </t>
-            <t t-if='widget.vote_nb'>
-                like
-            </t>
+        <span class="oe_mail_vote_count" t-if='widget.vote_nb > 0'>
+            <t t-raw='widget.vote_nb' />
+            <span class='oe_e'>8</span>
         </span>
         <a href='#' t-attf-class="oe_msg_vote">
             <t t-if="!widget.has_voted">like</t>