mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 21:10:17 +08:00
FEATURE: Enable topic entrance on mobile
This commit is contained in:
parent
f625500792
commit
626e896c13
|
@ -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()
|
||||
|
|
|
@ -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"}}
|
||||
|
|
|
@ -7,4 +7,5 @@
|
|||
@import "common/foundation/variables";
|
||||
@import "common/components/*";
|
||||
@import "common/input_tip";
|
||||
@import "common/topic-entrance";
|
||||
@import "common/base/*";
|
||||
|
|
|
@ -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. */
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user