From b9ab39991cbe8b5a7e7f4c12b8b3fe61ccad6df8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Mart=C3=ADn?= Date: Wed, 29 May 2013 14:33:33 +0200 Subject: [PATCH] Improved blocks and items listing layout a lot. Added details URL only viewable by admins --- minecraftcodex/database/templates/blocks.html | 30 +++++++++++++++++++ minecraftcodex/database/templates/items.html | 30 +++++++++++++++++++ minecraftcodex/database/views.py | 12 ++++++-- minecraftcodex/herobrine/urls.py | 2 ++ 4 files changed, 72 insertions(+), 2 deletions(-) diff --git a/minecraftcodex/database/templates/blocks.html b/minecraftcodex/database/templates/blocks.html index 5b98d7a..3a9a55e 100644 --- a/minecraftcodex/database/templates/blocks.html +++ b/minecraftcodex/database/templates/blocks.html @@ -3,6 +3,35 @@ {% block content %}

Blocks


+
+ {% for item in page.object_list %} + + {% if loop.index % 4 == 0 %} +
+
+ {% endif %} + {% endfor %} +
+ {# @@ -31,6 +60,7 @@ {% endfor %}
+ #}