Skip to content

Commit

Permalink
Replaced a {{ ADMIN_MEDIA_URL }} reference by a {% admin_media_prefix…
Browse files Browse the repository at this point in the history
… %} to avoid image 404.

This was causing issues when viewing a page version since the images were loaded relatively to
the page since ADMIN_MEDIA_URL was an empty string.
  • Loading branch information
charettes committed Aug 31, 2011
1 parent 9214fea commit 785b31a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cms/templates/admin/cms/page/change_form.html
Expand Up @@ -36,7 +36,7 @@
margin-bottom:-1px;
border-color:#ddd #aaa #ccc #ddd !important;
border:1px;
background:#fff url('{{ ADMIN_MEDIA_URL }}img/admin/nav-bg.gif') repeat-x center bottom !important;
background:#fff url('{% admin_media_prefix %}img/admin/nav-bg.gif') repeat-x center bottom !important;
}

#lang_tab_content h2.header {
Expand All @@ -45,7 +45,7 @@
font-size:11px;
text-align:left;
font-weight:bold;
background:#7ca0c7 url('{{ ADMIN_MEDIA_URL }}img/admin/default-bg.gif') repeat-x left top;
background:#7ca0c7 url('{% admin_media_prefix %}img/admin/default-bg.gif') repeat-x left top;
color:#fff;
}

Expand Down

0 comments on commit 785b31a

Please sign in to comment.