diff --git a/app/assets/javascripts/discourse/controllers/about.js.es6 b/app/assets/javascripts/discourse/controllers/about.js.es6 index f88b331cae6..070f143bc28 100644 --- a/app/assets/javascripts/discourse/controllers/about.js.es6 +++ b/app/assets/javascripts/discourse/controllers/about.js.es6 @@ -1,6 +1,10 @@ import ObjectController from 'discourse/controllers/object'; export default ObjectController.extend({ + faqOverriden: function() { + return !(this.siteSettings.faq_url.length === 0); + }.property(), + contactInfo: function() { if (Discourse.SiteSettings.contact_email) { return I18n.t('about.contact_info', {contact_email: Discourse.SiteSettings.contact_email}); diff --git a/app/assets/javascripts/discourse/templates/about.hbs b/app/assets/javascripts/discourse/templates/about.hbs index 077f8fb721b..ecfa576dee9 100644 --- a/app/assets/javascripts/discourse/templates/about.hbs +++ b/app/assets/javascripts/discourse/templates/about.hbs @@ -1,82 +1,97 @@ -
{{description}}
-{{description}}
+ | {{i18n 'about.stat.all_time'}} | +{{i18n 'about.stat.last_7_days'}} | +{{i18n 'about.stat.last_30_days'}} | +
---|---|---|---|
{{i18n 'about.topic_count'}} | +{{number stats.topic_count}} | +{{number stats.topics_7_days}} | +{{number stats.topics_30_days}} | +
{{i18n 'about.post_count'}} | +{{number stats.post_count}} | +{{number stats.posts_7_days}} | +{{number stats.posts_30_days}} | +
{{i18n 'about.user_count'}} | +{{number stats.user_count}} | +{{number stats.users_7_days}} | +{{number stats.users_30_days}} | +
{{i18n 'about.active_user_count'}} | +— | +{{number stats.active_users_7_days}} | +{{number stats.active_users_30_days}} | +
{{i18n 'about.like_count'}} | +{{number stats.like_count}} | +{{number stats.likes_7_days}} | +{{number stats.likes_30_days}} | +
- | {{i18n 'about.stat.all_time'}} | -{{i18n 'about.stat.last_7_days'}} | -{{i18n 'about.stat.last_30_days'}} | -
---|---|---|---|
{{i18n 'about.topic_count'}} | -{{number stats.topic_count}} | -{{number stats.topics_7_days}} | -{{number stats.topics_30_days}} | -
{{i18n 'about.post_count'}} | -{{number stats.post_count}} | -{{number stats.posts_7_days}} | -{{number stats.posts_30_days}} | -
{{i18n 'about.user_count'}} | -{{number stats.user_count}} | -{{number stats.users_7_days}} | -{{number stats.users_30_days}} | -
{{i18n 'about.active_user_count'}} | -— | -{{number stats.active_users_7_days}} | -{{number stats.active_users_30_days}} | -
{{i18n 'about.like_count'}} | -{{number stats.like_count}} | -{{number stats.likes_7_days}} | -{{number stats.likes_30_days}} | -
{{contactInfo}}
-{{contactInfo}}
+