From 6c711f696f73bc59813f6834ec241aef3b626cbd Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 29 Aug 2015 20:00:53 -0400 Subject: Include documentation in the application --- app/Controller/Doc.php | 51 ++++++++++++++++++++++ app/Helper/Url.php | 13 ++++++ app/Locale/cs_CZ/translations.php | 7 +++ app/Locale/da_DK/translations.php | 7 +++ app/Locale/de_DE/translations.php | 7 +++ app/Locale/es_ES/translations.php | 7 +++ app/Locale/fi_FI/translations.php | 7 +++ app/Locale/fr_FR/translations.php | 7 +++ app/Locale/hu_HU/translations.php | 7 +++ app/Locale/it_IT/translations.php | 7 +++ app/Locale/ja_JP/translations.php | 7 +++ app/Locale/nb_NO/translations.php | 7 +++ app/Locale/nl_NL/translations.php | 7 +++ app/Locale/pl_PL/translations.php | 7 +++ app/Locale/pt_BR/translations.php | 7 +++ app/Locale/pt_PT/translations.php | 7 +++ app/Locale/ru_RU/translations.php | 7 +++ app/Locale/sr_Latn_RS/translations.php | 7 +++ app/Locale/sv_SE/translations.php | 7 +++ app/Locale/th_TH/translations.php | 7 +++ app/Locale/tr_TR/translations.php | 7 +++ app/Locale/zh_CN/translations.php | 7 +++ app/Template/app/filters_helper.php | 3 +- app/Template/category/edit.php | 2 +- app/Template/column/edit.php | 2 +- app/Template/column/index.php | 2 +- app/Template/comment/create.php | 2 +- app/Template/comment/edit.php | 2 +- app/Template/config/integrations.php | 18 ++++---- app/Template/config/sidebar.php | 3 ++ app/Template/doc/show.php | 13 ++++++ app/Template/project/edit.php | 2 +- app/Template/project/integrations.php | 12 ++--- app/Template/project/users.php | 1 + app/Template/search/index.php | 2 +- app/Template/task_creation/form.php | 2 +- .../task_modification/edit_description.php | 2 +- 37 files changed, 246 insertions(+), 26 deletions(-) create mode 100644 app/Controller/Doc.php create mode 100644 app/Template/doc/show.php (limited to 'app') diff --git a/app/Controller/Doc.php b/app/Controller/Doc.php new file mode 100644 index 00000000..19644b84 --- /dev/null +++ b/app/Controller/Doc.php @@ -0,0 +1,51 @@ +helper->url; + $data = file_get_contents($filename); + list($title,, $content) = explode("\n", $data, 3); + + $replaceUrl = function (array $matches) use ($url) { + return '('.$url->to('doc', 'show', array('file' => str_replace('.markdown', '', $matches[1]))).')'; + }; + + $content = preg_replace_callback('/\((.*.markdown)\)/', $replaceUrl, $data); + + return array( + 'content' => Parsedown::instance()->text($content), + 'title' => $title !== 'Documentation' ? t('Documentation: %s', $title) : $title, + ); + } + + public function show() + { + $filename = $this->request->getStringParam('file', 'index'); + + if (! preg_match('/^[a-z0-9\-]+/', $filename)) { + $filename = 'index'; + } + + $filename = __DIR__.'/../../doc/'.$filename.'.markdown'; + + if (! file_exists($filename)) { + $filename = __DIR__.'/../../doc/index.markdown'; + } + + $this->response->html($this->template->layout('doc/show', $this->readFile($filename) + array( + 'board_selector' => $this->projectPermission->getAllowedProjects($this->userSession->getId()), + ))); + } +} diff --git a/app/Helper/Url.php b/app/Helper/Url.php index 964e0762..22e9035e 100644 --- a/app/Helper/Url.php +++ b/app/Helper/Url.php @@ -16,6 +16,19 @@ class Url extends \Core\Base private $base = ''; private $directory = ''; + /** + * Helper to generate a link to the documentation + * + * @access public + * @param string $label + * @param string $file + * @return string + */ + public function doc($label, $file) + { + return $this->link($label, 'doc', 'show', array('file' => $file), false, '', '', true); + } + /** * HTML Link tag * diff --git a/app/Locale/cs_CZ/translations.php b/app/Locale/cs_CZ/translations.php index 6eefa33f..557a62cc 100644 --- a/app/Locale/cs_CZ/translations.php +++ b/app/Locale/cs_CZ/translations.php @@ -1060,4 +1060,11 @@ return array( // 'Gitlab Account' => '', // 'Link my Gitlab Account' => '', // 'Unlink my Gitlab Account' => '', + // 'Documentation: %s' => '', + // 'Switch to the Gantt chart view' => '', + // 'Reset the search/filter box' => '', + // 'Documentation' => '', + // 'Table of contents' => '', + // 'Gantt' => '', + // 'Help with project permissions' => '', ); diff --git a/app/Locale/da_DK/translations.php b/app/Locale/da_DK/translations.php index 35634be8..6a41f065 100644 --- a/app/Locale/da_DK/translations.php +++ b/app/Locale/da_DK/translations.php @@ -1060,4 +1060,11 @@ return array( // 'Gitlab Account' => '', // 'Link my Gitlab Account' => '', // 'Unlink my Gitlab Account' => '', + // 'Documentation: %s' => '', + // 'Switch to the Gantt chart view' => '', + // 'Reset the search/filter box' => '', + // 'Documentation' => '', + // 'Table of contents' => '', + // 'Gantt' => '', + // 'Help with project permissions' => '', ); diff --git a/app/Locale/de_DE/translations.php b/app/Locale/de_DE/translations.php index 9e3097fd..7b38e9fc 100644 --- a/app/Locale/de_DE/translations.php +++ b/app/Locale/de_DE/translations.php @@ -1060,4 +1060,11 @@ return array( // 'Gitlab Account' => '', // 'Link my Gitlab Account' => '', // 'Unlink my Gitlab Account' => '', + // 'Documentation: %s' => '', + // 'Switch to the Gantt chart view' => '', + // 'Reset the search/filter box' => '', + // 'Documentation' => '', + // 'Table of contents' => '', + // 'Gantt' => '', + // 'Help with project permissions' => '', ); diff --git a/app/Locale/es_ES/translations.php b/app/Locale/es_ES/translations.php index 43122ea3..ac7c0e4b 100644 --- a/app/Locale/es_ES/translations.php +++ b/app/Locale/es_ES/translations.php @@ -1060,4 +1060,11 @@ return array( // 'Gitlab Account' => '', // 'Link my Gitlab Account' => '', // 'Unlink my Gitlab Account' => '', + // 'Documentation: %s' => '', + // 'Switch to the Gantt chart view' => '', + // 'Reset the search/filter box' => '', + // 'Documentation' => '', + // 'Table of contents' => '', + // 'Gantt' => '', + // 'Help with project permissions' => '', ); diff --git a/app/Locale/fi_FI/translations.php b/app/Locale/fi_FI/translations.php index fc517b0b..d8c749a3 100644 --- a/app/Locale/fi_FI/translations.php +++ b/app/Locale/fi_FI/translations.php @@ -1060,4 +1060,11 @@ return array( // 'Gitlab Account' => '', // 'Link my Gitlab Account' => '', // 'Unlink my Gitlab Account' => '', + // 'Documentation: %s' => '', + // 'Switch to the Gantt chart view' => '', + // 'Reset the search/filter box' => '', + // 'Documentation' => '', + // 'Table of contents' => '', + // 'Gantt' => '', + // 'Help with project permissions' => '', ); diff --git a/app/Locale/fr_FR/translations.php b/app/Locale/fr_FR/translations.php index c63fb60b..0c95c7eb 100644 --- a/app/Locale/fr_FR/translations.php +++ b/app/Locale/fr_FR/translations.php @@ -1062,4 +1062,11 @@ return array( 'Gitlab Account' => 'Compte Gitlab', 'Link my Gitlab Account' => 'Lier mon compte Gitlab', 'Unlink my Gitlab Account' => 'Ne plus utiliser mon compte Gitlab', + 'Documentation: %s' => 'Documentation : %s', + 'Switch to the Gantt chart view' => 'Passer à la vue en diagramme de Gantt', + 'Reset the search/filter box' => 'Réinitialiser le champ de recherche', + 'Documentation' => 'Documentation', + 'Table of contents' => 'Table des matières', + 'Gantt' => 'Gantt', + 'Help with project permissions' => 'Aide avec les permissions des projets', ); diff --git a/app/Locale/hu_HU/translations.php b/app/Locale/hu_HU/translations.php index 9218c6d3..b346f1e3 100644 --- a/app/Locale/hu_HU/translations.php +++ b/app/Locale/hu_HU/translations.php @@ -1060,4 +1060,11 @@ return array( // 'Gitlab Account' => '', // 'Link my Gitlab Account' => '', // 'Unlink my Gitlab Account' => '', + // 'Documentation: %s' => '', + // 'Switch to the Gantt chart view' => '', + // 'Reset the search/filter box' => '', + // 'Documentation' => '', + // 'Table of contents' => '', + // 'Gantt' => '', + // 'Help with project permissions' => '', ); diff --git a/app/Locale/it_IT/translations.php b/app/Locale/it_IT/translations.php index a8b33e8b..06e2c5ca 100644 --- a/app/Locale/it_IT/translations.php +++ b/app/Locale/it_IT/translations.php @@ -1060,4 +1060,11 @@ return array( // 'Gitlab Account' => '', // 'Link my Gitlab Account' => '', // 'Unlink my Gitlab Account' => '', + // 'Documentation: %s' => '', + // 'Switch to the Gantt chart view' => '', + // 'Reset the search/filter box' => '', + // 'Documentation' => '', + // 'Table of contents' => '', + // 'Gantt' => '', + // 'Help with project permissions' => '', ); diff --git a/app/Locale/ja_JP/translations.php b/app/Locale/ja_JP/translations.php index 1ab82170..cb8c550b 100644 --- a/app/Locale/ja_JP/translations.php +++ b/app/Locale/ja_JP/translations.php @@ -1060,4 +1060,11 @@ return array( // 'Gitlab Account' => '', // 'Link my Gitlab Account' => '', // 'Unlink my Gitlab Account' => '', + // 'Documentation: %s' => '', + // 'Switch to the Gantt chart view' => '', + // 'Reset the search/filter box' => '', + // 'Documentation' => '', + // 'Table of contents' => '', + // 'Gantt' => '', + // 'Help with project permissions' => '', ); diff --git a/app/Locale/nb_NO/translations.php b/app/Locale/nb_NO/translations.php index dae6507a..155d49b4 100644 --- a/app/Locale/nb_NO/translations.php +++ b/app/Locale/nb_NO/translations.php @@ -1060,4 +1060,11 @@ return array( // 'Gitlab Account' => '', // 'Link my Gitlab Account' => '', // 'Unlink my Gitlab Account' => '', + // 'Documentation: %s' => '', + // 'Switch to the Gantt chart view' => '', + // 'Reset the search/filter box' => '', + // 'Documentation' => '', + // 'Table of contents' => '', + // 'Gantt' => '', + // 'Help with project permissions' => '', ); diff --git a/app/Locale/nl_NL/translations.php b/app/Locale/nl_NL/translations.php index 1f52faae..23d64163 100644 --- a/app/Locale/nl_NL/translations.php +++ b/app/Locale/nl_NL/translations.php @@ -1060,4 +1060,11 @@ return array( // 'Gitlab Account' => '', // 'Link my Gitlab Account' => '', // 'Unlink my Gitlab Account' => '', + // 'Documentation: %s' => '', + // 'Switch to the Gantt chart view' => '', + // 'Reset the search/filter box' => '', + // 'Documentation' => '', + // 'Table of contents' => '', + // 'Gantt' => '', + // 'Help with project permissions' => '', ); diff --git a/app/Locale/pl_PL/translations.php b/app/Locale/pl_PL/translations.php index 900cf8d9..9947cf31 100644 --- a/app/Locale/pl_PL/translations.php +++ b/app/Locale/pl_PL/translations.php @@ -1060,4 +1060,11 @@ return array( // 'Gitlab Account' => '', // 'Link my Gitlab Account' => '', // 'Unlink my Gitlab Account' => '', + // 'Documentation: %s' => '', + // 'Switch to the Gantt chart view' => '', + // 'Reset the search/filter box' => '', + // 'Documentation' => '', + // 'Table of contents' => '', + // 'Gantt' => '', + // 'Help with project permissions' => '', ); diff --git a/app/Locale/pt_BR/translations.php b/app/Locale/pt_BR/translations.php index 1de6cb9a..6aa2f4dd 100644 --- a/app/Locale/pt_BR/translations.php +++ b/app/Locale/pt_BR/translations.php @@ -1060,4 +1060,11 @@ return array( 'Gitlab Account' => 'Conta Gitlab', 'Link my Gitlab Account' => 'Vincular minha conta Gitlab', 'Unlink my Gitlab Account' => 'Desvincular minha conta Gitlab', + // 'Documentation: %s' => '', + // 'Switch to the Gantt chart view' => '', + // 'Reset the search/filter box' => '', + // 'Documentation' => '', + // 'Table of contents' => '', + // 'Gantt' => '', + // 'Help with project permissions' => '', ); diff --git a/app/Locale/pt_PT/translations.php b/app/Locale/pt_PT/translations.php index 1701bb11..d19a31ec 100644 --- a/app/Locale/pt_PT/translations.php +++ b/app/Locale/pt_PT/translations.php @@ -1060,4 +1060,11 @@ return array( 'Gitlab Account' => 'Conta Gitlab', 'Link my Gitlab Account' => 'Connectar a minha Conta Gitlab', 'Unlink my Gitlab Account' => 'Desconectar a minha Conta Gitlab', + // 'Documentation: %s' => '', + // 'Switch to the Gantt chart view' => '', + // 'Reset the search/filter box' => '', + // 'Documentation' => '', + // 'Table of contents' => '', + // 'Gantt' => '', + // 'Help with project permissions' => '', ); diff --git a/app/Locale/ru_RU/translations.php b/app/Locale/ru_RU/translations.php index bd2d7c6b..feb1b684 100644 --- a/app/Locale/ru_RU/translations.php +++ b/app/Locale/ru_RU/translations.php @@ -1060,4 +1060,11 @@ return array( // 'Gitlab Account' => '', // 'Link my Gitlab Account' => '', // 'Unlink my Gitlab Account' => '', + // 'Documentation: %s' => '', + // 'Switch to the Gantt chart view' => '', + // 'Reset the search/filter box' => '', + // 'Documentation' => '', + // 'Table of contents' => '', + // 'Gantt' => '', + // 'Help with project permissions' => '', ); diff --git a/app/Locale/sr_Latn_RS/translations.php b/app/Locale/sr_Latn_RS/translations.php index 2decbd68..0bc5c248 100644 --- a/app/Locale/sr_Latn_RS/translations.php +++ b/app/Locale/sr_Latn_RS/translations.php @@ -1060,4 +1060,11 @@ return array( // 'Gitlab Account' => '', // 'Link my Gitlab Account' => '', // 'Unlink my Gitlab Account' => '', + // 'Documentation: %s' => '', + // 'Switch to the Gantt chart view' => '', + // 'Reset the search/filter box' => '', + // 'Documentation' => '', + // 'Table of contents' => '', + // 'Gantt' => '', + // 'Help with project permissions' => '', ); diff --git a/app/Locale/sv_SE/translations.php b/app/Locale/sv_SE/translations.php index 79d5ec17..9c769724 100644 --- a/app/Locale/sv_SE/translations.php +++ b/app/Locale/sv_SE/translations.php @@ -1060,4 +1060,11 @@ return array( // 'Gitlab Account' => '', // 'Link my Gitlab Account' => '', // 'Unlink my Gitlab Account' => '', + // 'Documentation: %s' => '', + // 'Switch to the Gantt chart view' => '', + // 'Reset the search/filter box' => '', + // 'Documentation' => '', + // 'Table of contents' => '', + // 'Gantt' => '', + // 'Help with project permissions' => '', ); diff --git a/app/Locale/th_TH/translations.php b/app/Locale/th_TH/translations.php index 959b5f38..a5ed2474 100644 --- a/app/Locale/th_TH/translations.php +++ b/app/Locale/th_TH/translations.php @@ -1060,4 +1060,11 @@ return array( // 'Gitlab Account' => '', // 'Link my Gitlab Account' => '', // 'Unlink my Gitlab Account' => '', + // 'Documentation: %s' => '', + // 'Switch to the Gantt chart view' => '', + // 'Reset the search/filter box' => '', + // 'Documentation' => '', + // 'Table of contents' => '', + // 'Gantt' => '', + // 'Help with project permissions' => '', ); diff --git a/app/Locale/tr_TR/translations.php b/app/Locale/tr_TR/translations.php index 45ba9d27..9eb5c41e 100644 --- a/app/Locale/tr_TR/translations.php +++ b/app/Locale/tr_TR/translations.php @@ -1060,4 +1060,11 @@ return array( // 'Gitlab Account' => '', // 'Link my Gitlab Account' => '', // 'Unlink my Gitlab Account' => '', + // 'Documentation: %s' => '', + // 'Switch to the Gantt chart view' => '', + // 'Reset the search/filter box' => '', + // 'Documentation' => '', + // 'Table of contents' => '', + // 'Gantt' => '', + // 'Help with project permissions' => '', ); diff --git a/app/Locale/zh_CN/translations.php b/app/Locale/zh_CN/translations.php index eddb261a..910bc0b4 100644 --- a/app/Locale/zh_CN/translations.php +++ b/app/Locale/zh_CN/translations.php @@ -1060,4 +1060,11 @@ return array( // 'Gitlab Account' => '', // 'Link my Gitlab Account' => '', // 'Unlink my Gitlab Account' => '', + // 'Documentation: %s' => '', + // 'Switch to the Gantt chart view' => '', + // 'Reset the search/filter box' => '', + // 'Documentation' => '', + // 'Table of contents' => '', + // 'Gantt' => '', + // 'Help with project permissions' => '', ); diff --git a/app/Template/app/filters_helper.php b/app/Template/app/filters_helper.php index b7a0bba6..529aa6a5 100644 --- a/app/Template/app/filters_helper.php +++ b/app/Template/app/filters_helper.php @@ -12,8 +12,7 @@
  • - - + url->doc(t('View advanced search syntax'), 'search') ?>
  • \ No newline at end of file diff --git a/app/Template/category/edit.php b/app/Template/category/edit.php index f844eea4..1aae2f2a 100644 --- a/app/Template/category/edit.php +++ b/app/Template/category/edit.php @@ -30,7 +30,7 @@ -
    +
    url->doc(t('Write your text in Markdown'), 'syntax-guide') ?>
    diff --git a/app/Template/column/edit.php b/app/Template/column/edit.php index 691cff00..a17affd8 100644 --- a/app/Template/column/edit.php +++ b/app/Template/column/edit.php @@ -34,7 +34,7 @@
    -
    +
    url->doc(t('Write your text in Markdown'), 'syntax-guide') ?>
    diff --git a/app/Template/column/index.php b/app/Template/column/index.php index a394ee67..689cbbf5 100644 --- a/app/Template/column/index.php +++ b/app/Template/column/index.php @@ -81,7 +81,7 @@
    -
    +
    url->doc(t('Write your text in Markdown'), 'syntax-guide') ?>
    diff --git a/app/Template/comment/create.php b/app/Template/comment/create.php index 8c66d9a4..8bcbe0f7 100644 --- a/app/Template/comment/create.php +++ b/app/Template/comment/create.php @@ -24,7 +24,7 @@
    -
    +
    url->doc(t('Write your text in Markdown'), 'syntax-guide') ?>
    diff --git a/app/Template/comment/edit.php b/app/Template/comment/edit.php index d67aa387..e01f3da4 100644 --- a/app/Template/comment/edit.php +++ b/app/Template/comment/edit.php @@ -26,7 +26,7 @@
    -
    +
    url->doc(t('Write your text in Markdown'), 'syntax-guide') ?>
    diff --git a/app/Template/config/integrations.php b/app/Template/config/integrations.php index ddbd73dd..4e24a270 100644 --- a/app/Template/config/integrations.php +++ b/app/Template/config/integrations.php @@ -9,37 +9,37 @@


    -

    +

    url->doc(t('Help on Google authentication'), 'google-authentication') ?>


    -

    +

    url->doc(t('Help on Github authentication'), 'github-authentication') ?>

     


    -

    +

    url->doc(t('Help on Gitlab authentication'), 'gitlab-authentication') ?>

     


    -

    +

    url->doc(t('Help on Mailgun integration'), 'mailgun') ?>

     


    -

    +

    url->doc(t('Help on Sendgrid integration'), 'sendgrid') ?>

     


    -

    +

    url->doc(t('Help on Postmark integration'), 'postmark') ?>

     

    @@ -70,7 +70,7 @@ form->label(t('Multi-user chat room'), 'integration_jabber_room') ?> form->text('integration_jabber_room', $values, $errors, array('placeholder="myroom@conference.example.com"')) ?> -

    +

    url->doc(t('Help on Jabber integration'), 'jabber') ?>

    @@ -86,7 +86,7 @@ form->label(t('Room notification token'), 'integration_hipchat_room_token') ?> form->text('integration_hipchat_room_token', $values, $errors) ?> -

    +

    url->doc(t('Help on Hipchat integration'), 'hipchat') ?>

     

    @@ -98,7 +98,7 @@ form->label(t('Channel/Group/User (Optional)'), 'integration_slack_webhook_channel') ?> form->text('integration_slack_webhook_channel', $values, $errors) ?> -

    +

    url->doc(t('Help on Slack integration'), 'slack') ?>

    diff --git a/app/Template/config/sidebar.php b/app/Template/config/sidebar.php index b2c73292..3617979a 100644 --- a/app/Template/config/sidebar.php +++ b/app/Template/config/sidebar.php @@ -31,6 +31,9 @@
  • app->getRouterAction() === 'api' ? 'class="active"' : '' ?>> url->link(t('API'), 'config', 'api') ?>
  • +
  • + url->link(t('Documentation'), 'doc', 'show') ?> +
  • diff --git a/app/Template/doc/show.php b/app/Template/doc/show.php new file mode 100644 index 00000000..8fbadc93 --- /dev/null +++ b/app/Template/doc/show.php @@ -0,0 +1,13 @@ +
    + +
    + +
    +
    \ No newline at end of file diff --git a/app/Template/project/edit.php b/app/Template/project/edit.php index 3c64a399..8dcbb88f 100644 --- a/app/Template/project/edit.php +++ b/app/Template/project/edit.php @@ -42,7 +42,7 @@
    -
    +
    url->doc(t('Write your text in Markdown'), 'syntax-guide') ?>
    diff --git a/app/Template/project/integrations.php b/app/Template/project/integrations.php index 12a7ee4e..eb5faddf 100644 --- a/app/Template/project/integrations.php +++ b/app/Template/project/integrations.php @@ -9,21 +9,21 @@

     


    -

    +

    url->doc(t('Help on Github webhooks'), 'github-webhooks') ?>

     


    -

    +

    url->doc(t('Help on Gitlab webhooks'), 'gitlab-webhooks') ?>

     


    -

    +

    url->doc(t('Help on Bitbucket webhooks'), 'bitbucket-webhooks') ?>

    @@ -50,7 +50,7 @@ form->label(t('Multi-user chat room'), 'jabber_room') ?> form->text('jabber_room', $values, $errors, array('placeholder="myroom@conference.example.com"')) ?> -

    +

    url->doc(t('Help on Jabber integration'), 'jabber') ?>

    @@ -71,7 +71,7 @@ form->label(t('Room notification token'), 'hipchat_room_token') ?> form->text('hipchat_room_token', $values, $errors) ?> -

    +

    url->doc(t('Help on Hipchat integration'), 'hipchat') ?>

    @@ -88,7 +88,7 @@ form->label(t('Channel/Group/User (Optional)'), 'slack_webhook_channel') ?> form->text('slack_webhook_channel', $values, $errors) ?> -

    +

    url->doc(t('Help on Slack integration'), 'slack') ?>

    diff --git a/app/Template/project/users.php b/app/Template/project/users.php index d725a9e8..8863a1e4 100644 --- a/app/Template/project/users.php +++ b/app/Template/project/users.php @@ -77,5 +77,6 @@
    • +
    • url->doc(t('Help with project permissions'), 'project-permissions') ?>
    diff --git a/app/Template/search/index.php b/app/Template/search/index.php index 8940a24e..329c072a 100644 --- a/app/Template/search/index.php +++ b/app/Template/search/index.php @@ -31,7 +31,7 @@
  • description:"Something to find"
  • due:2015-07-01
  • -

    +

    url->doc(t('View advanced search syntax'), 'search') ?>

    isEmpty()): ?>

    diff --git a/app/Template/task_creation/form.php b/app/Template/task_creation/form.php index 84f28a1e..8a29896e 100644 --- a/app/Template/task_creation/form.php +++ b/app/Template/task_creation/form.php @@ -38,7 +38,7 @@
    -
    +
    url->doc(t('Write your text in Markdown'), 'syntax-guide') ?>
    form->checkbox('another_task', t('Create another task'), 1, isset($values['another_task']) && $values['another_task'] == 1) ?> diff --git a/app/Template/task_modification/edit_description.php b/app/Template/task_modification/edit_description.php index 3168f7a3..4cae939c 100644 --- a/app/Template/task_modification/edit_description.php +++ b/app/Template/task_modification/edit_description.php @@ -24,7 +24,7 @@
    -
    +
    url->doc(t('Write your text in Markdown'), 'syntax-guide') ?>
    -- cgit v1.2.3