summaryrefslogtreecommitdiff
path: root/addons/mail/static/src
diff options
context:
space:
mode:
authorFabien Pinckaers <fp@openerp.com>2012-07-30 09:52:10 +0200
committerFabien Pinckaers <fp@openerp.com>2012-07-30 09:52:10 +0200
commit83f15b73630a202d250db8d19283bb9bf6435e0b (patch)
treead041d7b0db92ea48509f17b2798512a8b550f72 /addons/mail/static/src
parent4f15336078c3fc2e50a69ed0fc78ac54ac65cd97 (diff)
small_layout_change_in_wall
bzr revid: fp@openerp.com-20120730075210-mdzu549s018i72rz
Diffstat (limited to 'addons/mail/static/src')
-rw-r--r--addons/mail/static/src/js/mail.js8
-rw-r--r--addons/mail/static/src/xml/mail.xml21
2 files changed, 15 insertions, 14 deletions
diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js
index f488225d8b6..0f50cbb1549 100644
--- a/addons/mail/static/src/js/mail.js
+++ b/addons/mail/static/src/js/mail.js
@@ -521,7 +521,7 @@ openerp.mail = function(session) {
this.params.parent_id = this.params.parent_id || false;
this.params.thread_level = this.params.thread_level || 0;
this.params.is_wall = this.params.is_wall || (this.params.records != undefined) || false;
- this.params.msg_more_limit = this.params.msg_more_limit || 150;
+ this.params.msg_more_limit = this.params.msg_more_limit || 250;
this.params.limit = this.params.limit || 100;
// this.params.limit = 3; // tmp for testing
this.params.offset = this.params.offset || 0;
@@ -758,11 +758,11 @@ openerp.mail = function(session) {
// expand feature
this.$element.find('div.oe_mail_msg_body:last').expander({
slicePoint: this.params.msg_more_limit,
- expandText: 'see more',
- userCollapseText: 'see less',
+ expandText: 'read more',
+ userCollapseText: '[^]',
detailClass: 'oe_mail_msg_tail',
moreClass: 'oe_mail_expand',
- lesClass: 'oe_mail_reduce',
+ lessClass: 'oe_mail_reduce',
});
},
diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml
index bf8d7fd1475..86d115f29c8 100644
--- a/addons/mail/static/src/xml/mail.xml
+++ b/addons/mail/static/src/xml/mail.xml
@@ -33,7 +33,7 @@
<!-- contains threads -->
</ul>
<div class="oe_mail_wall_more">
- <button class="oe_mail_wall_button_more" type="button">See more discussions</button>
+ <button class="oe_mail_wall_button_more" type="button">See more...</button>
</div>
</div>
<div class="oe_mail_wall_aside">
@@ -129,7 +129,7 @@
<t t-if="display['show_delete']">
<li t-if="record.is_author"><a href="#" class="oe_mail_msg_delete" t-attf-data-id='{record.id}'>Delete</a></li>
</t>
- <li t-if="display['show_hide']"><a href="#" class="oe_mail_msg_hide" t-attf-data-id='{record.id}'>Remove from Wall</a></li>
+ <li t-if="display['show_hide']"><a href="#" class="oe_mail_msg_hide" t-attf-data-id='{record.id}'>Hide</a></li>
<!-- Uncomment when adding subtype hiding
<li t-if="display['show_hide']">
<a href="#" class="oe_mail_msg_hide_type" t-attf-data-subtype='{record.subtype}'>Hide '<t t-esc="record.subtype"/>' for this document</a>
@@ -143,16 +143,17 @@
<h1 t-if="record.subject" class="oe_mail_msg_title">
<t t-raw="record.subject"/>
</h1>
- <div t-if="params.thread_level > 0" class="oe_mail_msg_subtitle">
- <a t-attf-href="#model=#{params.res_model}&amp;id=#{params.res_id}"><t t-raw="record.record_name"/></a>
- </div>
- <div class="oe_clear"/>
<div class="oe_mail_msg_body">
- <a t-attf-href="#model=res.users&amp;id=#{record.user_id[0]}"><t t-raw="record.user_id[1]"/></a>
- <div class="oe_mail_msg_record_body"><t t-raw="record.body"/></div>
+
+ <div class="oe_mail_msg_record_body">
+ <a t-attf-href="#model=#{params.res_model}&amp;id=#{params.res_id}" t-if="(params.thread_level > 0) &amp; (!record.subject)"><t t-raw="record.record_name"/></a>
+ <t t-raw="record.body"/>
+ </div>
</div>
<div class="oe_clear"/>
<ul class="oe_mail_msg_footer">
+ <li t-if="record.subject &amp; params.thread_level > 0"><a t-attf-href="#model=#{params.res_model}&amp;id=#{params.res_id}"><t t-raw="record.record_name"/></a></li>
+ <li><a t-attf-href="#model=res.users&amp;id=#{record.user_id[0]}"><t t-raw="record.user_id[1]"/></a></li>
<li><span t-att-title="record.date"><t t-raw="record.timerelative"/></span></li>
<li t-if="display['show_reply']"><a href="#" class="oe_mail_msg_reply">Reply</a></li>
<!-- uncomment when merging vote
@@ -160,8 +161,8 @@
-->
<li t-if="record.attachment_ids.length > 0">
<a href="#" class="oe_mail_msg_view_attachments">
- <t t-if="record.attachment_ids.length == 1">Attachment</t>
- <t t-if="record.attachment_ids.length > 1">Attachments (<t t-raw="record.attachment_ids.length"/>)</t>
+ <t t-if="record.attachment_ids.length == 1">1 Attachment</t>
+ <t t-if="record.attachment_ids.length > 1"><t t-raw="record.attachment_ids.length"/> Attachments</t>
</a>
</li>
</ul>