[IMP] mail_followers: 'Add others' button more visible
bzr revid: chm@openerp.com-20130128150518-pctzao2u6vgxr9vy
This commit is contained in:
@@ -545,7 +545,16 @@
|
||||
text-align: center;
|
||||
width:100%;
|
||||
}
|
||||
.openerp .oe_followers button.oe_follower.oe_following{
|
||||
.openerp .oe_followers button.oe_invite{
|
||||
margin: 0;
|
||||
padding: 2px 8px;
|
||||
position: relative;
|
||||
top: -2px;
|
||||
font-size: 12px;
|
||||
text-shadow: none;
|
||||
}
|
||||
.openerp .oe_followers button.oe_follower.oe_following,
|
||||
.openerp .oe_followers button.oe_invite{
|
||||
color: white;
|
||||
background-color: #3465A4;
|
||||
background-image: -webkit-linear-gradient(top, #729FCF, #3465A4);
|
||||
|
||||
@@ -215,21 +215,13 @@ openerp_mail_followers = function(session, mail) {
|
||||
/** Display subtypes: {'name': default, followed} */
|
||||
display_subtypes:function (data) {
|
||||
var self = this;
|
||||
var subtype_list_ul = this.$('.oe_subtype_list');
|
||||
subtype_list_ul.empty();
|
||||
this.$('.oe_subtype_list').empty();
|
||||
var records = data[this.view.datarecord.id || this.view.dataset.ids[0]].message_subtype_data;
|
||||
var nb_subtype = 0;
|
||||
_(records).each(function (record) {nb_subtype++;});
|
||||
if (nb_subtype > 1) {
|
||||
this.$('hr').show();
|
||||
_(records).each(function (record, record_name) {
|
||||
record.name = record_name;
|
||||
record.followed = record.followed || undefined;
|
||||
$(session.web.qweb.render('mail.followers.subtype', {'record': record})).appendTo( self.$('.oe_subtype_list') );
|
||||
});
|
||||
} else {
|
||||
this.$('hr').hide();
|
||||
}
|
||||
_(records).each(function (record, record_name) {
|
||||
record.name = record_name;
|
||||
record.followed = record.followed || undefined;
|
||||
$(session.web.qweb.render('mail.followers.subtype', {'record': record})).appendTo( self.$('.oe_subtype_list') );
|
||||
});
|
||||
},
|
||||
|
||||
do_follow: function () {
|
||||
|
||||
@@ -17,10 +17,9 @@
|
||||
</t>
|
||||
<div class="oe_subtype_list"></div>
|
||||
</div>
|
||||
<hr size="2"></hr>
|
||||
<div class='oe_follower_title_box'>
|
||||
<h4 class='oe_follower_title'>Followers</h4>
|
||||
<a t-if="widget.view_is_editable" href='#' class="oe_invite">Add others</a>
|
||||
<button t-if="widget.view_is_editable" href='#' class="oe_invite">Invite user</button>
|
||||
</div>
|
||||
<div class="oe_follower_list"></div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user