Customized django admin styles for better coherence with bootstrap3

This commit is contained in:
agerbaud
2017-08-04 15:44:26 +02:00
parent a600504785
commit d258b6e869
4 changed files with 984 additions and 10 deletions

View File

@@ -3,7 +3,7 @@
{% get_current_language as LANGUAGE_CODE %}{% get_current_language_bidi as LANGUAGE_BIDI %}
{% block extrastyle %}
<link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% static "admin/css/base.css" %}{% endblock %}" />
<link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% static "css/base-admin.css" %}{% endblock %}" />
{% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% static "admin/css/rtl.css" %}{% endblock %}" />{% endif %}
{% endblock %}

View File

@@ -50,9 +50,10 @@
{% endblock %}
{% block sidebar %}
<div id="content-related">
<div class="module" id="recent-actions-module">
<h2>{% trans 'Recent actions' %}</h2>
<div class="panel panel-default" id="content-related">
<div class="panel-heading"><h2 class="panel-title">{% trans 'Recent actions' %}</h2></div>
<div class="module panel-body" id="recent-actions-module">
<h3>{% trans 'My actions' %}</h3>
{% load log %}
{% get_admin_log 10 as admin_log for_user user %}