Show contact_email on about page

This commit is contained in:
Neil Lalonde 2015-01-06 17:28:42 -05:00
parent 5667478b4d
commit 58385248a6
3 changed files with 18 additions and 6 deletions

View File

@ -0,0 +1,11 @@
import ObjectController from 'discourse/controllers/object';
export default ObjectController.extend({
contactInfo: function() {
if (Discourse.SiteSettings.contact_email) {
return I18n.t('about.contact_info', {contact_email: Discourse.SiteSettings.contact_email});
} else {
return null;
}
}.property()
});

View File

@ -61,11 +61,11 @@
</table>
</section>
<section class='about contact'>
<h3>{{i18n 'about.contact'}}</h3>
<p>
{{i18n 'about.contact_info' contact_email='name@example.com'}}
</p>
</section>
{{#if contactInfo}}
<section class='about contact'>
<h3>{{i18n 'about.contact'}}</h3>
<p>{{contactInfo}}</p>
</section>
{{/if}}
</div>

View File

@ -21,6 +21,7 @@ required:
site_description:
default: ''
contact_email:
client: true
default: ''
type: email
notification_email: