Add documentation to user menu

pull/1/head
David Benqué 4 years ago
parent a548826402
commit 7b7433750d

@ -1677,6 +1677,16 @@ define([
}, },
}); });
} }
options.push({
tag: 'a',
attributes: {
'target': '_blank',
'rel': 'noopener',
'href': 'https://docs.cryptpad.fr',
'class': 'fa fa-book'
},
content: h('span', Messages.docs_link) // XXX
});
if (padType !== 'support' && accountName && Config.supportMailbox) { if (padType !== 'support' && accountName && Config.supportMailbox) {
options.push({ options.push({
tag: 'a', tag: 'a',
@ -1691,21 +1701,22 @@ define([
}, },
}); });
} }
if (AppConfig.surveyURL) { // XXX Trade the survey for documentation
options.push({ // if (AppConfig.surveyURL) {
tag: 'a', // options.push({
attributes: { // tag: 'a',
'target': '_blank', // attributes: {
'rel': 'noopener', // 'target': '_blank',
'href': AppConfig.surveyURL, // 'rel': 'noopener',
'class': 'cp-toolbar-survey fa fa-graduation-cap' // 'href': AppConfig.surveyURL,
}, // 'class': 'cp-toolbar-survey fa fa-graduation-cap'
content: h('span', Messages.survey), // },
action: function () { // content: h('span', Messages.survey),
Feedback.send('SURVEY_CLICKED'); // action: function () {
}, // Feedback.send('SURVEY_CLICKED');
}); // },
} // });
// }
options.push({ options.push({
tag: 'a', tag: 'a',
attributes: { attributes: {

Loading…
Cancel
Save