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.
This commit is contained in:
sameerchoubey 2019-03-19 01:23:36 +05:30 committed by Tim Abbott
parent ab15cd13a6
commit 2efe1963a5
2 changed files with 25 additions and 0 deletions

View File

@ -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 {

View File

@ -59,6 +59,16 @@
</h4>
</a>
{% endfor %}
<h4 class="heading">{% trans %}Custom integrations{% endtrans %}</h4>
<a href="/api/incoming-webhooks-overview">
<h4>{% trans %}Incoming webhooks{% endtrans %}</h4>
</a>
<a href="/api/writing-bots">
<h4>{% trans %}Interactive bots{% endtrans %}</h4>
</a>
<a href="/api/rest">
<h4>{% trans %}REST API{% endtrans %}</h4>
</a>
</div>
</div>
@ -75,8 +85,20 @@
</h4>
</a>
{% endfor %}
<hr/>
<h3>{% trans %}Custom integrations{% endtrans %}</h3>
<a href="/api/incoming-webhooks-overview">
<h4>{% trans %}Incoming webhooks{% endtrans %}</h4>
</a>
<a href="/api/writing-bots">
<h4>{% trans %}Interactive bots{% endtrans %}</h4>
</a>
<a href="/api/rest">
<h4>{% trans %}REST API{% endtrans %}</h4>
</a>
</div>
<div class="integration-lozenges">
{% for integration in integrations_dict.values() %}
{% if integration.is_enabled() %}