FEATURE: Enable topic entrance on mobile

This commit is contained in:
Robin Ward 2014-09-22 11:49:11 -04:00
parent f625500792
commit 626e896c13
5 changed files with 2 additions and 7 deletions

View File

@ -41,11 +41,6 @@ export default Ember.Component.extend({
click: function() {
var topic = this.get('topic');
if (Discourse.Mobile.mobileView) {
Discourse.URL.routeTo(topic.get('lastPostUrl'));
return false;
}
this.sendAction('action', {
topic: topic,
position: this.$('a').position()

View File

@ -28,7 +28,7 @@
{{/unless}}
<div class="pull-right">
{{posts-count-column topic=this tagName="div" class="num posts"}}
{{posts-count-column topic=this tagName="div" class="num posts" action="showTopicEntrance"}}
<div class='num activity last'>
<a href="{{lastPostUrl}}" title='{{i18n last_post}}: {{{raw-date bumped_at}}}'>{{last_poster_username}}</a>
{{activity-column topic=this tagName="span" class="age"}}

View File

@ -7,4 +7,5 @@
@import "common/foundation/variables";
@import "common/components/*";
@import "common/input_tip";
@import "common/topic-entrance";
@import "common/base/*";

View File

@ -15,7 +15,6 @@
@import "desktop/topic";
@import "desktop/upload";
@import "desktop/user";
@import "desktop/topic-entrance";
/* These files doesn't actually exist, they are injected by DiscourseSassImporter. */