Mobile: don't show edit reason and in reply to details in composer
This commit is contained in:
parent
bd92291b26
commit
a3c148407c
|
@ -74,12 +74,14 @@ Discourse.Composer = Discourse.Model.extend({
|
||||||
username: this.get('post.username')
|
username: this.get('post.username')
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!Discourse.Mobile.mobileView) {
|
||||||
var replyUsername = post.get('reply_to_user.username');
|
var replyUsername = post.get('reply_to_user.username');
|
||||||
var replyAvatarTemplate = post.get('reply_to_user.avatar_template');
|
var replyAvatarTemplate = post.get('reply_to_user.avatar_template');
|
||||||
if (replyUsername && replyAvatarTemplate && this.get('action') === EDIT) {
|
if (replyUsername && replyAvatarTemplate && this.get('action') === EDIT) {
|
||||||
postDescription += " " + I18n.t("post.in_reply_to") + " " + Discourse.Utilities.tinyAvatar(replyAvatarTemplate) + " " + replyUsername;
|
postDescription += " " + I18n.t("post.in_reply_to") + " " + Discourse.Utilities.tinyAvatar(replyAvatarTemplate) + " " + replyUsername;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
switch (this.get('action')) {
|
switch (this.get('action')) {
|
||||||
case PRIVATE_MESSAGE: return I18n.t('topic.private_message');
|
case PRIVATE_MESSAGE: return I18n.t('topic.private_message');
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
{{textField value=editReason tabindex="5" id="edit-reason" maxlength="255" placeholderKey="composer.edit_reason_placeholder"}}
|
{{textField value=editReason tabindex="5" id="edit-reason" maxlength="255" placeholderKey="composer.edit_reason_placeholder"}}
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
<a {{action displayEditReason}}>{{i18n composer.show_edit_reason}}</a>
|
<a {{action displayEditReason}} class="display-edit-reason">{{i18n composer.show_edit_reason}}</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -201,6 +201,9 @@ display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.edit-reason-input, .display-edit-reason {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
.edit-reason-input {
|
.edit-reason-input {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-left: 2px;
|
margin-left: 2px;
|
||||||
|
|
Loading…
Reference in New Issue