FIX: Don't show undefined query params

This commit is contained in:
Robin Ward 2014-04-29 16:17:43 -04:00
parent 4442ae1c8a
commit 87b4cd3323
2 changed files with 3 additions and 8 deletions

View File

@ -1,13 +1,8 @@
Discourse.SiteMapController = Ember.ArrayController.extend(Discourse.HasCurrentUser, {
itemController: "siteMapCategory",
showAdminLinks: function() {
return this.get("currentUser.staff");
}.property("currentUser.staff"),
flaggedPostsCount: function() {
return this.get("currentUser.site_flagged_posts_count");
}.property("currentUser.site_flagged_posts_count"),
showAdminLinks: Em.computed.alias('currentUser.staff'),
flaggedPostsCount: Em.computed.alias("currentUser.site_flagged_posts_count"),
faqUrl: function() {
return Discourse.SiteSettings.faq_url ? Discourse.SiteSettings.faq_url : Discourse.getURL('/faq');

View File

@ -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}}