|
|
@ -15,6 +15,9 @@ define([
|
|
|
|
].indexOf(Config.adminEmail) === -1;
|
|
|
|
].indexOf(Config.adminEmail) === -1;
|
|
|
|
var adminMailbox = Config.supportMailbox && LocalStore.isLoggedIn();
|
|
|
|
var adminMailbox = Config.supportMailbox && LocalStore.isLoggedIn();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// XXX: existing key to update
|
|
|
|
|
|
|
|
Msg.contact_admin = "Contact the administrators for: {0}"; // XXX DB: add instance title
|
|
|
|
|
|
|
|
|
|
|
|
return h('div#cp-main', [
|
|
|
|
return h('div#cp-main', [
|
|
|
|
Pages.infopageTopbar(),
|
|
|
|
Pages.infopageTopbar(),
|
|
|
|
h('div.container.cp-container', [
|
|
|
|
h('div.container.cp-container', [
|
|
|
@ -24,7 +27,7 @@ define([
|
|
|
|
(adminEmail || adminMailbox) ? h('div.row.cp-iconCont.align-items-center', [
|
|
|
|
(adminEmail || adminMailbox) ? h('div.row.cp-iconCont.align-items-center', [
|
|
|
|
h('div.col-12',
|
|
|
|
h('div.col-12',
|
|
|
|
Pages.setHTML(h('h2.text-center'), Msg.contact_admin),
|
|
|
|
Pages.setHTML(h('h2.text-center'), Msg.contact_admin),
|
|
|
|
h('p', Msg.contact_adminHint)
|
|
|
|
h('p.center', Msg.contact_adminHint)
|
|
|
|
),
|
|
|
|
),
|
|
|
|
adminEmail ? h('div.col-12.col-sm-6.col-md-3.col-lg-3',
|
|
|
|
adminEmail ? h('div.col-12.col-sm-6.col-md-3.col-lg-3',
|
|
|
|
h('a.card', {href : "mailto:"+Config.adminEmail},
|
|
|
|
h('a.card', {href : "mailto:"+Config.adminEmail},
|
|
|
@ -58,24 +61,24 @@ define([
|
|
|
|
h('div.row.cp-iconCont.align-items-center', [
|
|
|
|
h('div.row.cp-iconCont.align-items-center', [
|
|
|
|
h('div.col-12',
|
|
|
|
h('div.col-12',
|
|
|
|
Pages.setHTML(h('h2.text-center'), Msg.contact_dev),
|
|
|
|
Pages.setHTML(h('h2.text-center'), Msg.contact_dev),
|
|
|
|
h('p', Msg.contact_devHint)
|
|
|
|
h('p.center', Msg.contact_devHint)
|
|
|
|
),
|
|
|
|
),
|
|
|
|
h('div.col-12.col-sm-6.col-md-3.col-lg-3',
|
|
|
|
h('div',
|
|
|
|
h('a.card', {href : "https://twitter.com/cryptpad"},
|
|
|
|
h('a.card-small', {href : "https://matrix.to/#/#cryptpad:matrix.xwiki.com"},
|
|
|
|
h('div.card-body',
|
|
|
|
h('div.card-body',
|
|
|
|
h('p', [
|
|
|
|
h('p', [
|
|
|
|
// this is not a typo. adblock plus blocks images with src *twitter* apparently
|
|
|
|
|
|
|
|
h('img', {
|
|
|
|
h('img', {
|
|
|
|
src: '/customize/images/twiitter.svg',
|
|
|
|
src: '/customize/images/sayhi.svg',
|
|
|
|
alt: '',
|
|
|
|
alt: '',
|
|
|
|
'aria-hidden': 'true'}),
|
|
|
|
'aria-hidden': 'true'
|
|
|
|
'Twitter'
|
|
|
|
}),
|
|
|
|
|
|
|
|
Msg.contact_chat || 'Chat'
|
|
|
|
])
|
|
|
|
])
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
),
|
|
|
|
),
|
|
|
|
h('div.col-12.col-sm-6.col-md-3.col-lg-3',
|
|
|
|
h('div',
|
|
|
|
h('a.card', {href : "https://social.weho.st/@cryptpad"},
|
|
|
|
h('a.card-small', {href : "https://social.weho.st/@cryptpad"},
|
|
|
|
h('div.card-body',
|
|
|
|
h('div.card-body',
|
|
|
|
h('p', [
|
|
|
|
h('p', [
|
|
|
|
h('img', {
|
|
|
|
h('img', {
|
|
|
@ -88,35 +91,35 @@ define([
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
),
|
|
|
|
),
|
|
|
|
h('div.col-12.col-sm-6.col-md-3.col-lg-3',
|
|
|
|
h('div',
|
|
|
|
h('a.card', {href : "https://github.com/xwiki-labs/cryptpad/issues/"},
|
|
|
|
h('a.card-small', {href : "https://twitter.com/cryptpad"},
|
|
|
|
h('div.card-body',
|
|
|
|
h('div.card-body',
|
|
|
|
h('p', [
|
|
|
|
h('p', [
|
|
|
|
|
|
|
|
// this is not a typo. adblock plus blocks images with src *twitter* apparently
|
|
|
|
h('img', {
|
|
|
|
h('img', {
|
|
|
|
src: '/customize/images/github.svg',
|
|
|
|
src: '/customize/images/twiitter.svg',
|
|
|
|
alt: '',
|
|
|
|
alt: '',
|
|
|
|
'aria-hidden': 'true'}),
|
|
|
|
'aria-hidden': 'true'}),
|
|
|
|
Msg.contact_bug || 'Bug report'
|
|
|
|
'Twitter'
|
|
|
|
])
|
|
|
|
])
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
),
|
|
|
|
),
|
|
|
|
h('div.col-12.col-sm-6.col-md-3.col-lg-3',
|
|
|
|
h('div',
|
|
|
|
h('a.card', {href : "https://matrix.to/#/#cryptpad:matrix.xwiki.com"},
|
|
|
|
h('a.card-small', {href : "https://github.com/xwiki-labs/cryptpad/issues/"},
|
|
|
|
h('div.card-body',
|
|
|
|
h('div.card-body',
|
|
|
|
h('p', [
|
|
|
|
h('p', [
|
|
|
|
h('img', {
|
|
|
|
h('img', {
|
|
|
|
src: '/customize/images/sayhi.svg',
|
|
|
|
src: '/customize/images/github.svg',
|
|
|
|
alt: '',
|
|
|
|
alt: '',
|
|
|
|
'aria-hidden': 'true'
|
|
|
|
'aria-hidden': 'true'}),
|
|
|
|
}),
|
|
|
|
Msg.contact_bug || 'Bug report'
|
|
|
|
Msg.contact_chat || 'Chat'
|
|
|
|
|
|
|
|
])
|
|
|
|
])
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
),
|
|
|
|
),
|
|
|
|
h('div.col-12.col-sm-6.col-md-3.col-lg-3',
|
|
|
|
h('div',
|
|
|
|
h('a.card', {href : "mailto:" + developerEmail},
|
|
|
|
h('a.card-small', {href : "mailto:" + developerEmail},
|
|
|
|
h('div.card-body',
|
|
|
|
h('div.card-body',
|
|
|
|
h('p', [
|
|
|
|
h('p', [
|
|
|
|
h('img', {
|
|
|
|
h('img', {
|
|
|
|