mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 05:50:14 +08:00
FIX: Don't show undefined
query params
This commit is contained in:
parent
4442ae1c8a
commit
87b4cd3323
|
@ -1,13 +1,8 @@
|
||||||
Discourse.SiteMapController = Ember.ArrayController.extend(Discourse.HasCurrentUser, {
|
Discourse.SiteMapController = Ember.ArrayController.extend(Discourse.HasCurrentUser, {
|
||||||
itemController: "siteMapCategory",
|
itemController: "siteMapCategory",
|
||||||
|
|
||||||
showAdminLinks: function() {
|
showAdminLinks: Em.computed.alias('currentUser.staff'),
|
||||||
return this.get("currentUser.staff");
|
flaggedPostsCount: Em.computed.alias("currentUser.site_flagged_posts_count"),
|
||||||
}.property("currentUser.staff"),
|
|
||||||
|
|
||||||
flaggedPostsCount: function() {
|
|
||||||
return this.get("currentUser.site_flagged_posts_count");
|
|
||||||
}.property("currentUser.site_flagged_posts_count"),
|
|
||||||
|
|
||||||
faqUrl: function() {
|
faqUrl: function() {
|
||||||
return Discourse.SiteSettings.faq_url ? Discourse.SiteSettings.faq_url : Discourse.getURL('/faq');
|
return Discourse.SiteSettings.faq_url ? Discourse.SiteSettings.faq_url : Discourse.getURL('/faq');
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{{#titledLinkTo "discovery.latest" titleKey="filters.latest.help" class="latest-topics-link"}}{{i18n filters.latest.title}}{{/titledLinkTo}}
|
{{#titledLinkTo "discovery.latest" (query-params ascending="false" order="default") titleKey="filters.latest.help" class="latest-topics-link"}}{{i18n filters.latest.title}}{{/titledLinkTo}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user