Add optional "weight" parameter to each module.
Add optional "weight" parameter to each module.
Add "Last comments" block (as module).
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 %}