Author: michael.thornhill
Date: Thu Jun  4 06:07:04 2009
New Revision: 544

Modified:
    trunk/pages/templates/admin/pages/page/menu.html
    trunk/pages/templatetags/pages_tags.py

Log:
remove hardcoded media url in menu.html

Modified: trunk/pages/templates/admin/pages/page/menu.html
==============================================================================
--- trunk/pages/templates/admin/pages/page/menu.html    (original)
+++ trunk/pages/templates/admin/pages/page/menu.html    Thu Jun  4 06:07:04  
2009
@@ -8,7 +8,7 @@
                      <a href="#" class="expand-collapse {% if  
expanded %}expanded{% endif %}" id="c{{ page.id }}">
                          <span class="expand">+</span>
                          <span class="collapse">-</span>
-                        <img class="expand-loading"  
src="/media/pages/images/loading.gif" alt="loading" />
+                        <img class="expand-loading" src="{{  
PAGES_MEDIA_URL }}images/loading.gif" alt="loading" />
                      </a>
                  {% endif %}
                  <a href="{{ url }}{{ page.id }}/" class="title  
changelink">{% show_content page "slug" %}</a>
@@ -45,11 +45,11 @@
          </td>
          <td class="publish-cell">
              {% ifequal page.status page.DRAFT %}
-                <img src="/media/pages/images/icons/draft.gif" alt="draft"  
/>
+                <img src="{{ PAGES_MEDIA_URL }}images/icons/draft.gif"  
alt="draft" />
              {% else %}{% ifequal page.status page.PUBLISHED %}
-                <img src="/media/pages/images/icons/published.gif"  
alt="published" />
+                <img src="{{ PAGES_MEDIA_URL }}images/icons/published.gif"  
alt="published" />
              {% else %}
-                <img src="/media/pages/images/icons/hidden.gif"  
alt="hidden"/>
+                <img src="{{ PAGES_MEDIA_URL }}icons/hidden.gif"  
alt="hidden"/>
              {% endifequal %}{% endifequal %}
              &nbsp;
              <select class="publish-select" name="select-status-{{ page.id  
}}">

Modified: trunk/pages/templatetags/pages_tags.py
==============================================================================
--- trunk/pages/templatetags/pages_tags.py      (original)
+++ trunk/pages/templatetags/pages_tags.py      Thu Jun  4 06:07:04 2009
@@ -86,6 +86,7 @@

      page_languages = settings.PAGE_LANGUAGES
      has_permission = page.has_page_permission(request)
+    PAGES_MEDIA_URL = settings.PAGES_MEDIA_URL

      return locals()
  pages_admin_menu = register.inclusion_tag('admin/pages/page/menu.html',

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to