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>
|
</table>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class='about contact'>
|
{{#if contactInfo}}
|
||||||
<h3>{{i18n 'about.contact'}}</h3>
|
<section class='about contact'>
|
||||||
<p>
|
<h3>{{i18n 'about.contact'}}</h3>
|
||||||
{{i18n 'about.contact_info' contact_email='name@example.com'}}
|
<p>{{contactInfo}}</p>
|
||||||
</p>
|
</section>
|
||||||
</section>
|
{{/if}}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -21,6 +21,7 @@ required:
|
||||||
site_description:
|
site_description:
|
||||||
default: ''
|
default: ''
|
||||||
contact_email:
|
contact_email:
|
||||||
|
client: true
|
||||||
default: ''
|
default: ''
|
||||||
type: email
|
type: email
|
||||||
notification_email:
|
notification_email:
|
||||||
|
|
Loading…
Reference in New Issue