mirror of
https://github.com/discourse/discourse.git
synced 2025-02-11 07:21:45 +08:00
![Régis Hanol](/assets/img/avatar_default.png)
- error pages - search results pages - list of all tags - topics list of a specific tag - user leaderboard
25 lines
598 B
JavaScript
25 lines
598 B
JavaScript
export default Ember.Controller.extend({
|
|
needs: ["application"],
|
|
queryParams: ["period", "order", "asc", "name"],
|
|
period: "weekly",
|
|
order: "likes_received",
|
|
asc: null,
|
|
name: "",
|
|
|
|
showTimeRead: Ember.computed.equal("period", "all"),
|
|
|
|
_setName: Discourse.debounce(function() {
|
|
this.set("name", this.get("nameInput"));
|
|
}, 500).observes("nameInput"),
|
|
|
|
_showFooter: function() {
|
|
this.set("controllers.application.showFooter", !this.get("model.canLoadMore"));
|
|
}.observes("model.canLoadMore"),
|
|
|
|
actions: {
|
|
loadMore() {
|
|
this.get("model").loadMore();
|
|
}
|
|
}
|
|
});
|