Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixes #274 css image path is now coherent with ADMIN_MEDIA_PREFIX

  • Loading branch information...
commit 1f6953cf4156ea71edeb3faa52fe84a90e6610fa 1 parent 6a928bd
@digi604 digi604 authored
View
1  cms/admin/pageadmin.py
@@ -508,6 +508,7 @@ def change_view(self, request, object_id, extra_context=None):
'page': obj,
'CMS_PERMISSION': settings.CMS_PERMISSION,
'CMS_MODERATOR': settings.CMS_MODERATOR,
+ 'ADMIN_MEDIA_URL': settings.ADMIN_MEDIA_PREFIX,
'has_change_permissions_permission': obj.has_change_permissions_permission(request),
'has_moderate_permission': obj.has_moderate_permission(request),
'moderation_level': moderation_level,
View
19 cms/media/cms/css/change_form.css
@@ -44,30 +44,11 @@ ul#page_form_lang_tabs a:hover {
}
-.language_button {
- font-weight:bold;
- margin-bottom:-1px;
- border-color:#DDDDDD #AAAAAA #CCCCCC #DDDDDD !important;
- border:1px;
- background:white url(/media/admin/img/admin/nav-bg.gif) repeat-x scroll center bottom !important;
- }
-
.language_button.selected {
margin-bottom:-2px;
border-bottom:0px !important;
color:#fff;
background:#bcd2e9 !important;
- }
-
-
-#lang_tab_content h2.header {
- margin: 0;
- padding: 2px 5px 3px 5px;
- font-size: 11px;
- text-align: left;
- font-weight: bold;
- background: #7CA0C7 url(/media/admin/img/admin/default-bg.gif) top left repeat-x;
- color: white;
}
.deletetranslation { margin-left: 30px; }
View
22 cms/templates/admin/cms/page/change_form.html
@@ -24,6 +24,28 @@
</script>
{% endif %}
+<style type="text/css">
+
+.language_button {
+ font-weight:bold;
+ margin-bottom:-1px;
+ border-color:#DDDDDD #AAAAAA #CCCCCC #DDDDDD !important;
+ border:1px;
+ background:white url({{ ADMIN_MEDIA_URL }}img/admin/nav-bg.gif) repeat-x scroll center bottom !important;
+ }
+
+#lang_tab_content h2.header {
+ margin: 0;
+ padding: 2px 5px 3px 5px;
+ font-size: 11px;
+ text-align: left;
+ font-weight: bold;
+ background: #7CA0C7 url({{ ADMIN_MEDIA_URL }}img/admin/default-bg.gif) top left repeat-x;
+ color: white;
+}
+
+</style>
+
{% endblock %}
Please sign in to comment.
Something went wrong with that request. Please try again.