Changeset View
Changeset View
Standalone View
Standalone View
swh/web/templates/api/endpoints.html
Show All 40 Lines | <table class="table table-striped search-res swh-table" width="100%"> | ||||
<col width="200"> | <col width="200"> | ||||
<thead class="thead-default"> | <thead class="thead-default"> | ||||
<th>Endpoint</th> | <th>Endpoint</th> | ||||
<th class="d-none d-sm-table-cell">Description</th> | <th class="d-none d-sm-table-cell">Description</th> | ||||
</thead> | </thead> | ||||
<tbody> | <tbody> | ||||
{% for route, doc in doc_routes %} | {% for route, doc in doc_routes %} | ||||
<tr class="swh-api-1-doc-route swh-tr-hover-highlight {% for tag in doc.tags %} swh-api-1-doc-route-{{ tag }} {% endfor %}"> | <tr class="swh-api-1-doc-route swh-tr-hover-highlight {% for tag in doc.tags %} swh-api-1-doc-route-{{ tag }} {% endfor %}"> | ||||
{% if doc.tags|length > 0 %} | {% if "upcoming" in doc.tags %} | ||||
<td id="{{ route }}"> | <td id="{{ route }}"> | ||||
{% url doc.route_view_name %} | {% url doc.route_view_name %} | ||||
</td> | </td> | ||||
{% else %} | {% else %} | ||||
<td id="{{ route }}"> | <td id="{{ route }}"> | ||||
<a href="{% url doc.route_view_name %}"> | <a href="{% url doc.route_view_name %}"> | ||||
{{ doc.route }} | {{ doc.route }} | ||||
</a> | </a> | ||||
{% if "deprecated" in doc.tags %}(deprecated){% endif %} | |||||
</td> | </td> | ||||
{% endif %} | {% endif %} | ||||
<td class="d-none d-sm-table-cell"> | <td class="d-none d-sm-table-cell"> | ||||
<a href="{% url doc.route_view_name %}"> | <a href="{% url doc.route_view_name %}"> | ||||
{{ doc.doc_intro | docstring_display | safe }} | {{ doc.doc_intro | docstring_display | safe }} | ||||
</a> | </a> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
Show All 17 Lines |