Add optional "weight" parameter to each module.

portnov [2008-06-09 04:37:30]
Add optional "weight" parameter to each module.
Add "Last comments" block (as module).
Filename
mgmt/context.py
templates/base.html
diff --git a/mgmt/context.py b/mgmt/context.py
index 2e30d7b..6aa5bfc 100644
--- a/mgmt/context.py
+++ b/mgmt/context.py
@@ -10,7 +10,7 @@ from hms import hms
 import debug

 show_blocks = dict(
-    testblk = dict(),
+    last_comments = dict(),
     login   = dict(hide='/login/$',show_logged=False))

 def add_blocks(request):
diff --git a/templates/base.html b/templates/base.html
index 703e855..c5fa818 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -21,7 +21,7 @@
     {% if blocks %}
       <div id='blocks'>
       {{blocks.login|safe}}
-      {{blocks.testblk|safe}}
+      {{blocks.last_comments|safe}}
       </div>
     {% endif %}
ViewGit