discourse/app/assets/javascripts/discourse/controllers/about.js.es6
2015-02-23 23:09:13 +05:30

16 lines
605 B
JavaScript

import ObjectController from 'discourse/controllers/object';
export default ObjectController.extend({
faqOverriden: Ember.computed.gt('siteSettings.faq_url.length', 0),
contactInfo: function() {
if (this.siteSettings.contact_url) {
return I18n.t('about.contact_info', {contact_info: "<a href='"+ this.siteSettings.contact_url +"' target='_blank'>"+ this.siteSettings.contact_url +"</a>"});
} else if (this.siteSettings.contact_email) {
return I18n.t('about.contact_info', {contact_info: this.siteSettings.contact_email});
} else {
return null;
}
}.property()
});