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/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 +- app/Template/task_modification/edit_description.php | 2 +- 15 files changed, 42 insertions(+), 26 deletions(-) create mode 100644 app/Template/doc/show.php (limited to 'app/Template') 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