Add mastodon and display admin email in the contact page
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
define([
|
||||
'/api/config',
|
||||
'/common/hyperscript.js',
|
||||
'/customize/messages.js',
|
||||
'/customize/pages.js'
|
||||
], function (h, Msg, Pages) {
|
||||
], function (Config, h, Msg, Pages) {
|
||||
return function () {
|
||||
return h('div#cp-main', [
|
||||
Pages.infopageTopbar(),
|
||||
@@ -12,35 +13,72 @@ define([
|
||||
)
|
||||
]),
|
||||
h('div.container.cp-container', [
|
||||
Config.adminEmail !== 'i.did.not.read.my.config@cryptpad.fr' ? h('div.row.cp-iconCont.align-items-center', [
|
||||
h('div.col-12',
|
||||
Pages.setHTML(h('h4.text-center'), Msg.contact_admin)
|
||||
),
|
||||
h('div.col-12.col-sm-6.col-md-3.col-lg-3',
|
||||
h('a.card', {href : "mailto:"+Config.adminEmail},
|
||||
h('div.card-body',
|
||||
h('p', [
|
||||
h('img', {src: '/customize/images/email.svg'}),
|
||||
Msg.contact_email || 'Email'
|
||||
])
|
||||
)
|
||||
)
|
||||
),
|
||||
]) : undefined,
|
||||
h('div.row.cp-iconCont.align-items-center', [
|
||||
h('div.col-12',
|
||||
Pages.setHTML(h('h4.text-center'), Msg.main_about_p26)
|
||||
Pages.setHTML(h('h4.text-center'), Msg.contact_dev)
|
||||
),
|
||||
h('div.col-12.col-sm-6.col-md-3.col-lg-3',
|
||||
h('a.card', {href : "https://twitter.com/cryptpad"},
|
||||
h('div.card-body',
|
||||
Pages.setHTML(h('p'), Msg.main_about_p22)
|
||||
h('div.card-body',
|
||||
h('p', [
|
||||
h('img', {src: '/customize/images/twitter.svg'}),
|
||||
Msg.contact_devTwitter || 'Twitter'
|
||||
])
|
||||
)
|
||||
)
|
||||
),
|
||||
h('div.col-12.col-sm-6.col-md-3.col-lg-3',
|
||||
h('a.card', {href : "https://social.weho.st/@cryptpad"},
|
||||
h('div.card-body',
|
||||
h('p', [
|
||||
h('img', {src: '/customize/images/mastodon.svg'}),
|
||||
Msg.contact_devMastodon || 'Mastodon'
|
||||
])
|
||||
)
|
||||
)
|
||||
),
|
||||
h('div.col-12.col-sm-6.col-md-3.col-lg-3',
|
||||
h('a.card', {href : "https://github.com/xwiki-labs/cryptpad/issues/"},
|
||||
h('div.card-body',
|
||||
Pages.setHTML(h('p'), Msg.main_about_p23)
|
||||
h('div.card-body',
|
||||
h('p', [
|
||||
h('img', {src: '/customize/images/issue.svg'}),
|
||||
Msg.contact_devBug || 'Bug report'
|
||||
])
|
||||
)
|
||||
)
|
||||
),
|
||||
h('div.col-12.col-sm-6.col-md-3.col-lg-3',
|
||||
h('a.card', {href : "https://riot.im/app/#/room/#cryptpad:matrix.org"},
|
||||
h('div.card-body',
|
||||
Pages.setHTML(h('p'), Msg.main_about_p24)
|
||||
h('div.card-body',
|
||||
h('p', [
|
||||
h('img', {src: '/customize/images/sayhi.svg'}),
|
||||
Msg.contact_devChat || 'Chat'
|
||||
])
|
||||
)
|
||||
)
|
||||
),
|
||||
h('div.col-12.col-sm-6.col-md-3.col-lg-3',
|
||||
h('a.card', {href : "mailto:research@xwiki.com"},
|
||||
h('div.card-body',
|
||||
Pages.setHTML(h('p'), Msg.main_about_p25)
|
||||
h('a.card', {href : "mailto:contact@cryptpad.fr"},
|
||||
h('div.card-body',
|
||||
h('p', [
|
||||
h('img', {src: '/customize/images/email.svg'}),
|
||||
Msg.contact_email || 'Email'
|
||||
])
|
||||
)
|
||||
)
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user