From 2efe1963a5ec58bef310a7928753ad69fadfa429 Mon Sep 17 00:00:00 2001 From: sameerchoubey Date: Tue, 19 Mar 2019 01:23:36 +0530 Subject: [PATCH] portico: Add /api links to /integrations. This PR creates a custom section on the /integrations page and adds links to /api for common requests. Fixes #11803. --- static/styles/landing-page.scss | 3 +++ templates/zerver/integrations/index.html | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/static/styles/landing-page.scss b/static/styles/landing-page.scss index 4f0e7ba27c..deba0fbfe8 100644 --- a/static/styles/landing-page.scss +++ b/static/styles/landing-page.scss @@ -2653,6 +2653,9 @@ nav ul li.active::after { .portico-landing.integrations .integration-categories-dropdown { margin: 30px auto; display: none; + .heading { + font-weight: 600; + } } .portico-landing.integrations .integration-lozenges { diff --git a/templates/zerver/integrations/index.html b/templates/zerver/integrations/index.html index f08564276d..6eaa2b5d35 100644 --- a/templates/zerver/integrations/index.html +++ b/templates/zerver/integrations/index.html @@ -59,6 +59,16 @@ {% endfor %} +

{% trans %}Custom integrations{% endtrans %}

+ +

{% trans %}Incoming webhooks{% endtrans %}

+
+ +

{% trans %}Interactive bots{% endtrans %}

+
+ +

{% trans %}REST API{% endtrans %}

+
@@ -75,8 +85,20 @@ {% endfor %} +
+

{% trans %}Custom integrations{% endtrans %}

+ +

{% trans %}Incoming webhooks{% endtrans %}

+
+ +

{% trans %}Interactive bots{% endtrans %}

+
+ +

{% trans %}REST API{% endtrans %}

+
+
{% for integration in integrations_dict.values() %} {% if integration.is_enabled() %}