Changeset View
Changeset View
Standalone View
Standalone View
swh/web/templates/api/endpoints.html
Show All 39 Lines | <ul> | ||||
{% for route, doc in doc_routes %} | {% for route, doc in doc_routes %} | ||||
<li><a href="#{{ route }}">{{ route }}</a></li> | <li><a href="#{{ route }}">{{ route }}</a></li> | ||||
{% endfor %} | {% endfor %} | ||||
</ul> | </ul> | ||||
</noscript> | </noscript> | ||||
</div> | </div> | ||||
<div class="swh-api-doc table-responsive"> | <div class="swh-api-doc table-responsive"> | ||||
<table class="table table-striped search-res swh-table"> | <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>Status</th> | <th class="d-none d-sm-table-cell">Description</th> | ||||
anlambert: Can you remove the `Status` column here ? There is no more interest to keep it today. | |||||
<th>Description</th> | |||||
</thead> | </thead> | ||||
<tbody> | <tbody> | ||||
{% for route, doc in doc_routes %} | {% for route, doc in doc_routes %} | ||||
<tr class="swh-api-doc-route swh-tr-hover-highlight {% for tag in doc.tags %} swh-api-doc-route-{{ tag }} {% endfor %}"> | <tr class="swh-api-doc-route swh-tr-hover-highlight {% for tag in doc.tags %} swh-api-doc-route-{{ tag }} {% endfor %}"> | ||||
{% if doc.tags|length > 0 %} | {% if doc.tags|length > 0 %} | ||||
<td id="{{ route }}"> | <td id="{{ route }}"> | ||||
{% url doc.route_view_name %} | {% url doc.route_view_name %} | ||||
</td> | </td> | ||||
<td> | |||||
{{ doc.tags|join:', ' }} | |||||
</td> | |||||
{% else %} | {% else %} | ||||
<td id="{{ route }}"> | <td id="{{ route }}"> | ||||
<a href="{% url doc.route_view_name %}"> | <a href="{% url doc.route_view_name %}"> | ||||
{% url doc.route_view_name %} | {% url doc.route_view_name %} | ||||
</a> | </a> | ||||
</td> | </td> | ||||
<td> | |||||
<a href="{% url doc.route_view_name %}"> | |||||
available | |||||
</a> | |||||
</td> | |||||
{% endif %} | {% endif %} | ||||
<td> | <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 | safe_docstring_display | safe }} | {{ doc.doc_intro | safe_docstring_display | safe }} | ||||
</a> | </a> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
{% endfor %} | {% endfor %} | ||||
</tbody> | </tbody> | ||||
</table> | </table> | ||||
Show All 14 Lines |
Can you remove the Status column here ? There is no more interest to keep it today.