From 1b6cdb92b7e9dd13805d001ebdbeacd8c34f13eb Mon Sep 17 00:00:00 2001 From: Tomasz Kolek Date: Wed, 5 Apr 2017 08:09:53 +0200 Subject: [PATCH] integrations doc: Move trello-plugin doc to separate file. --- templates/zerver/integrations/index.html | 32 ------------------- .../zerver/integrations/trello-plugin.html | 30 +++++++++++++++++ zerver/lib/integrations.py | 3 +- 3 files changed, 32 insertions(+), 33 deletions(-) create mode 100644 templates/zerver/integrations/trello-plugin.html diff --git a/templates/zerver/integrations/index.html b/templates/zerver/integrations/index.html index 0952ae35c1..1fb29820e2 100644 --- a/templates/zerver/integrations/index.html +++ b/templates/zerver/integrations/index.html @@ -117,38 +117,6 @@ {% endif %} -
-

- This legacy integration for Trello works by running a script - that communicates with the Trello API in a cron job. We - recommend the new Trello webhook - integration (which will eventually replace this entirely). - Please report - any issues which cause you to prefer this integration over - the webhook integration. -

- -

First, create the stream you'd like to use for Trello notifications, - and subscribe all interested parties to this stream. We recommend the - name trello.

- -

Next, download a copy - of trello-to-zulip - and follow the instructions in README.md. When you - make changes in Trello, they will be reflected in Zulip: -

- - -

Thanks to Nathan from FoundationDB for submitting this integration!

- -

- Logos are trademarks of their respective owners. - None of the integrations on this page are created by, - affiliated with, or supported by the companies - represented by the logos. -

-
-
diff --git a/templates/zerver/integrations/trello-plugin.html b/templates/zerver/integrations/trello-plugin.html new file mode 100644 index 0000000000..e4068cba37 --- /dev/null +++ b/templates/zerver/integrations/trello-plugin.html @@ -0,0 +1,30 @@ +

+ This legacy integration for Trello works by running a script + that communicates with the Trello API in a cron job. We + recommend the new Trello webhook + integration (which will eventually replace this entirely). + Please + + report any issues + + which cause you to prefer this integration over + the webhook integration. +

+ +

+ First, create the stream you'd like to use for Trello notifications, + and subscribe all interested parties to this stream. We recommend the + name trello. +

+ +

+ Next, download a copy + of trello-to-zulip + and follow the instructions in README.md. When you + make changes in Trello, they will be reflected in Zulip: +

+ + +

+ Thanks to Nathan from FoundationDB for submitting this integration! +

diff --git a/zerver/lib/integrations.py b/zerver/lib/integrations.py index 0f4551e260..b68174c4ca 100644 --- a/zerver/lib/integrations.py +++ b/zerver/lib/integrations.py @@ -234,7 +234,8 @@ INTEGRATIONS = { 'trello-plugin', logo='static/images/integrations/logos/trello.svg', secondary_line_text='(legacy)', - display_name='Trello' + display_name='Trello', + doc='zerver/integrations/trello-plugin.html' ), 'twitter': Integration('twitter', 'twitter'),