mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-29 04:09:07 -04:00
In research we found that developers orientate themselves around the API clients rather than the documentation. We should get them to the client documentation as quickly as possible. We currently link to the API documentation in three places: - API integration page - global footer - template ‘API info’ page For the first two this commit: - removes the link to the documentation - adds links to each of the 5 clients For the last one it just removes the link entirely.
41 lines
1.0 KiB
HTML
41 lines
1.0 KiB
HTML
{% extends "withnav_template.html" %}
|
||
{% from "components/email-message.html" import email_message %}
|
||
{% from "components/sms-message.html" import sms_message %}
|
||
{% from "components/api-key.html" import api_key %}
|
||
|
||
{% block page_title %}
|
||
API info – GOV.UK Notify
|
||
{% endblock %}
|
||
|
||
{% block maincolumn_content %}
|
||
|
||
<h1 class="heading-large">
|
||
API info
|
||
</h1>
|
||
|
||
{% if 'email' == template.template_type %}
|
||
{{ email_message(
|
||
template.formatted_subject_as_markup,
|
||
template.formatted_as_markup,
|
||
) }}
|
||
{% elif 'sms' == template.template_type %}
|
||
<div class="grid-row">
|
||
<div class="column-two-thirds">
|
||
{{ sms_message(
|
||
template.formatted_as_markup,
|
||
) }}
|
||
</div>
|
||
</div>
|
||
{% endif %}
|
||
|
||
<div class="bottom-gutter">
|
||
{{ api_key(template.id, name="Template ID", thing='template ID') }}
|
||
</div>
|
||
|
||
{% if personalisation %}
|
||
<h2 class="heading-small">Personalisation (all fields are required)</h2>
|
||
{{ personalisation|syntax_highlight_json }}
|
||
{% endif %}
|
||
|
||
{% endblock %}
|