Skip to content

Commit

Permalink
fixes django-cms#274 css image path is now coherent with ADMIN_MEDIA_…
Browse files Browse the repository at this point in the history
…PREFIX
  • Loading branch information
Patrick Lauber committed Dec 1, 2009
1 parent 6a928bd commit 1f6953c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 19 deletions.
1 change: 1 addition & 0 deletions cms/admin/pageadmin.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ def change_view(self, request, object_id, extra_context=None):
'page': obj, 'page': obj,
'CMS_PERMISSION': settings.CMS_PERMISSION, 'CMS_PERMISSION': settings.CMS_PERMISSION,
'CMS_MODERATOR': settings.CMS_MODERATOR, 'CMS_MODERATOR': settings.CMS_MODERATOR,
'ADMIN_MEDIA_URL': settings.ADMIN_MEDIA_PREFIX,
'has_change_permissions_permission': obj.has_change_permissions_permission(request), 'has_change_permissions_permission': obj.has_change_permissions_permission(request),
'has_moderate_permission': obj.has_moderate_permission(request), 'has_moderate_permission': obj.has_moderate_permission(request),
'moderation_level': moderation_level, 'moderation_level': moderation_level,
Expand Down
19 changes: 0 additions & 19 deletions cms/media/cms/css/change_form.css
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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 { .language_button.selected {
margin-bottom:-2px; margin-bottom:-2px;
border-bottom:0px !important; border-bottom:0px !important;
color:#fff; color:#fff;
background:#bcd2e9 !important; 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; } .deletetranslation { margin-left: 30px; }
22 changes: 22 additions & 0 deletions cms/templates/admin/cms/page/change_form.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -24,6 +24,28 @@
</script> </script>
{% endif %} {% 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 %} {% endblock %}


Expand Down

0 comments on commit 1f6953c

Please sign in to comment.