From 7b7433750ddaeb4e48f17c89cb40cd206c9cd200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Benqu=C3=A9?= Date: Thu, 29 Oct 2020 16:31:22 +0000 Subject: [PATCH] Add documentation to user menu --- www/common/common-ui-elements.js | 41 ++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 15 deletions(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index a9d2cbce4..ad8e1ca6e 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -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) { options.push({ tag: 'a', @@ -1691,21 +1701,22 @@ define([ }, }); } - if (AppConfig.surveyURL) { - options.push({ - tag: 'a', - attributes: { - 'target': '_blank', - 'rel': 'noopener', - 'href': AppConfig.surveyURL, - 'class': 'cp-toolbar-survey fa fa-graduation-cap' - }, - content: h('span', Messages.survey), - action: function () { - Feedback.send('SURVEY_CLICKED'); - }, - }); - } + // XXX Trade the survey for documentation + // if (AppConfig.surveyURL) { + // options.push({ + // tag: 'a', + // attributes: { + // 'target': '_blank', + // 'rel': 'noopener', + // 'href': AppConfig.surveyURL, + // 'class': 'cp-toolbar-survey fa fa-graduation-cap' + // }, + // content: h('span', Messages.survey), + // action: function () { + // Feedback.send('SURVEY_CLICKED'); + // }, + // }); + // } options.push({ tag: 'a', attributes: {