Show contact_email on about page
This commit is contained in:
parent
5667478b4d
commit
58385248a6
|
@ -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()
|
||||
});
|
|
@ -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>
|
||||
|
|
|
@ -21,6 +21,7 @@ required:
|
|||
site_description:
|
||||
default: ''
|
||||
contact_email:
|
||||
client: true
|
||||
default: ''
|
||||
type: email
|
||||
notification_email:
|
||||
|
|
Loading…
Reference in New Issue