Added environment options - Fixed #56
This commit is contained in:
@@ -64,5 +64,5 @@ https://github.com/fabiocaccamo/django-admin-interface
|
||||
|
||||
{% block welcome-msg %}
|
||||
{% get_admin_interface_theme as theme %}
|
||||
{% if theme.env_visible %}<span class="enviroment-label {{ theme.env }}"></span> - {% endif %}{{ block.super }}<br>
|
||||
{% if theme.env_visible_in_header %}<span class="enviroment-label {{ theme.env_name }}"></span> - {% endif %}{{ block.super }}<br>
|
||||
{% endblock %}
|
||||
@@ -11,7 +11,7 @@
|
||||
display: inline-block;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
background-color: #CCCCCC;
|
||||
background-color: {{ theme.env_color }};
|
||||
border-radius: 100%;
|
||||
margin-right: 6px;
|
||||
box-sizing: border-box;
|
||||
@@ -19,44 +19,12 @@
|
||||
-webkit-box-sizing: border-box;
|
||||
}
|
||||
|
||||
.admin-interface .enviroment-label.development::before {
|
||||
background-color: {{ theme.env_colors.development }};
|
||||
}
|
||||
|
||||
.admin-interface .enviroment-label.testing::before {
|
||||
background-color: {{ theme.env_colors.testing }};
|
||||
}
|
||||
|
||||
.admin-interface .enviroment-label.staging::before {
|
||||
background-color: {{ theme.env_colors.staging }};
|
||||
}
|
||||
|
||||
.admin-interface .enviroment-label.production::before {
|
||||
background-color: {{ theme.env_colors.production }};
|
||||
}
|
||||
|
||||
.admin-interface .enviroment-label::after {
|
||||
content: "";
|
||||
}
|
||||
|
||||
.admin-interface .enviroment-label.development::after {
|
||||
content: "development";
|
||||
}
|
||||
|
||||
.admin-interface .enviroment-label.testing::after {
|
||||
content: "testing";
|
||||
}
|
||||
|
||||
.admin-interface .enviroment-label.staging::after {
|
||||
content: "staging";
|
||||
}
|
||||
|
||||
.admin-interface .enviroment-label.production::after {
|
||||
content: "production";
|
||||
content: "{{ theme.env_name }}";
|
||||
}
|
||||
|
||||
.admin-interface #branding h1 {
|
||||
color:{{ theme.title_color }};
|
||||
color: {{ theme.title_color }};
|
||||
}
|
||||
|
||||
.admin-interface #branding h1 .logo.default {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
{% if theme.favicon %}
|
||||
<link rel="icon" type="image/x-icon" href="{{ theme.favicon.url }}?v={{ version }}" />
|
||||
{% if theme.env_visible %}
|
||||
{% if theme.env_visible_in_favicon %}
|
||||
<script type="text/javascript" src="{% static 'admin_interface/favico/favico-0.3.10-patched.min.js' %}?v={{ version }}"></script>
|
||||
<script type="text/javascript">
|
||||
var favicon = new Favico({
|
||||
|
||||
Reference in New Issue
Block a user