librelist archives

« back to archive

Fwd: [PATCH 2 of 3] Rename Admin 'context' to 'admin_context' for better integration in sites

Fwd: [PATCH 2 of 3] Rename Admin 'context' to 'admin_context' for better integration in sites

From:
Михаил Кривушин
Date:
2010-08-09 @ 21:22
# HG changeset patch
# User Mikhail Krivushin <krivushinme@gmail.com>
# Date 1281388545 -14400
# Node ID 8455cf445cf4b5d2f7d3ac440bbd26e9c654325b
# Parent  72f22c914f8750a9a9d674ed10f8f97247c88d23
Rename Admin 'context' to 'admin_context' for better integration in sites.

diff -r 72f22c914f87 -r 8455cf445cf4
svarga/contrib/admin/templates/index.html
--- a/svarga/contrib/admin/templates/index.html Mon Jul 19 18:15:17 2010
+0300
+++ b/svarga/contrib/admin/templates/index.html Tue Aug 10 01:15:45 2010
+0400
@@ -1,3 +1,3 @@
 {% extends env.settings.ADMIN_TEMPLATE %}
-{% block content %}
+{% block admin_content %}
 {% endblock %}
diff -r 72f22c914f87 -r 8455cf445cf4
svarga/contrib/admin/templates/master.html
--- a/svarga/contrib/admin/templates/master.html        Mon Jul 19 18:15:17
2010 +0300
+++ b/svarga/contrib/admin/templates/master.html        Tue Aug 10 01:15:45
2010 +0400
@@ -1,7 +1,7 @@
 {% import 'contrib.admin/lib.html' as lib %}
 <html>
  <head>
-    {% block head %}{% endblock %}
+    {% block admin_head %}{% endblock %}
    <title>
      {% block title %}
      {% if env.admin_view.Meta.menu %}
@@ -16,12 +16,12 @@
  <body>
    <div class="svarga">
      <div class="admin_menu">
-        {% block menu %}
+        {% block admin_menu %}
        {{ lib.menu(env.admin_view.menu_node) }}
        {% endblock %}
      </div>
      <div class="admin_content">
-        {% block content %}{% endblock %}
+        {% block admin_content %}{% endblock %}
      </div>
    </div>
  </body>
diff -r 72f22c914f87 -r 8455cf445cf4
svarga/contrib/admin/templates/model/edit.html
--- a/svarga/contrib/admin/templates/model/edit.html    Mon Jul 19 18:15:17
2010 +0300
+++ b/svarga/contrib/admin/templates/model/edit.html    Tue Aug 10 01:15:45
2010 +0400
@@ -1,5 +1,5 @@
 {% extends env.settings.ADMIN_TEMPLATE %}
-{% block content %}
+{% block admin_content %}

 <form method="POST" action="">
  <table>
diff -r 72f22c914f87 -r 8455cf445cf4
svarga/contrib/admin/templates/model/index.html
--- a/svarga/contrib/admin/templates/model/index.html   Mon Jul 19 18:15:17
2010 +0300
+++ b/svarga/contrib/admin/templates/model/index.html   Tue Aug 10 01:15:45
2010 +0400
@@ -1,5 +1,5 @@
 {% extends env.settings.ADMIN_TEMPLATE %}
-{% block content %}
+{% block admin_content %}

 <div>
  <a href="{{ env.admin_view.reverse('new') }}">Add new</a>