FEATURE: display reply to post on mobile

This commit is contained in:
Sam Saffron 2014-09-17 01:19:40 +10:00
parent 0855fe5438
commit b62aaf5a53
3 changed files with 12 additions and 3 deletions

View File

@ -11,9 +11,9 @@
{{#if loadingReplyHistory}}
{{i18n loading}}
{{else}}
<i class="fa fa-mail-forward"></i>&nbsp;
<i class="fa fa-mail-forward"></i>
{{avatar reply_to_user imageSize="tiny"}}
{{reply_to_user.username}}
<span>{{reply_to_user.username}}</span>
{{/if}}
</a>
{{/if}}

View File

@ -185,6 +185,11 @@ Discourse.PostView = Discourse.GroupedView.extend(Ember.Evented, {
topicController = this.get('controller'),
origScrollTop = $(window).scrollTop();
if (Discourse.Mobile.mobileView) {
Discourse.URL.routeTo(this.get('post.topic').urlForPostNumber(this.get('post.reply_to_post_number')));
return;
}
if (replyHistory.length > 0) {
var origHeight = this.$('.embedded-posts.top').height();

View File

@ -121,7 +121,11 @@ button {
}
a.reply-to-tab {
display: none;
position: absolute;
z-index: 400;
right: 80px;
color: scale-color($primary, $lightness: 50%);
span { display: none; }
}
a.star {