mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 01:26:53 +03:00
Remove a bit of inline CSS. Add CSP nonce where it might be required and is available. (#8783)
Co-authored-by: Craig Anderson <craiga@craiga.id.au>
This commit is contained in:
parent
a02bb79d87
commit
cc3c89a11c
|
@ -231,3 +231,7 @@ body a:hover {
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pagination {
|
||||||
|
margin: 5px 0 10px 0;
|
||||||
|
}
|
||||||
|
|
|
@ -158,19 +158,19 @@
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1>{{ name }}</h1>
|
<h1>{{ name }}</h1>
|
||||||
</div>
|
</div>
|
||||||
<div style="float:left">
|
<div class="pull-left">
|
||||||
{% block description %}
|
{% block description %}
|
||||||
{{ description }}
|
{{ description }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if paginator %}
|
{% if paginator %}
|
||||||
<nav style="float: right">
|
<nav class="pull-right">
|
||||||
{% get_pagination_html paginator %}
|
{% get_pagination_html paginator %}
|
||||||
</nav>
|
</nav>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="request-info" style="clear: both" aria-label="{% trans "request info" %}">
|
<div class="request-info" aria-label="{% trans "request info" %}">
|
||||||
<pre class="prettyprint"><b>{{ request.method }}</b> {{ request.get_full_path }}</pre>
|
<pre class="prettyprint"><b>{{ request.method }}</b> {{ request.get_full_path }}</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<ul class="pagination" style="margin: 5px 0 10px 0">
|
<ul class="pagination">
|
||||||
{% if previous_url %}
|
{% if previous_url %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ previous_url }}" aria-label="Previous">
|
<a href="{{ previous_url }}" aria-label="Previous">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user