Skip to content

Commit

Permalink
Remove a bit of inline CSS. Add CSP nonce where it might be required …
Browse files Browse the repository at this point in the history
…and is available. (#8783)

Co-authored-by: Craig Anderson <[email protected]>
  • Loading branch information
juspence and craiga authored Dec 2, 2022
1 parent a02bb79 commit cc3c89a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions rest_framework/static/rest_framework/css/bootstrap-tweaks.css
Original file line number Diff line number Diff line change
Expand Up @@ -231,3 +231,7 @@ body a:hover {
margin-left: 5px;
margin-right: 5px;
}

.pagination {
margin: 5px 0 10px 0;
}
6 changes: 3 additions & 3 deletions rest_framework/templates/rest_framework/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,19 +158,19 @@ <h4 class="text-center">Are you sure you want to delete this {{ name }}?</h4>
<div class="page-header">
<h1>{{ name }}</h1>
</div>
<div style="float:left">
<div class="pull-left">
{% block description %}
{{ description }}
{% endblock %}
</div>

{% if paginator %}
<nav style="float: right">
<nav class="pull-right">
{% get_pagination_html paginator %}
</nav>
{% 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>
</div>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ul class="pagination" style="margin: 5px 0 10px 0">
<ul class="pagination">
{% if previous_url %}
<li>
<a href="{{ previous_url }}" aria-label="Previous">
Expand Down

0 comments on commit cc3c89a

Please sign in to comment.