diff --git a/boards/static/css/base.css b/boards/static/css/base.css --- a/boards/static/css/base.css +++ b/boards/static/css/base.css @@ -103,3 +103,13 @@ textarea, input { #preview-text { display: none; } + +.random-images-table { + text-align: center; + width: 100%; +} + +.random-images-table > table { + margin-left: auto; + margin-right: auto; +} diff --git a/boards/templates/boards/random.html b/boards/templates/boards/random.html --- a/boards/templates/boards/random.html +++ b/boards/templates/boards/random.html @@ -9,16 +9,28 @@ {% block content %} {% if posts %} - {% for post in posts %} -
+
+ {% with post.get_first_image as image %}
+ {% autoescape off %}
+ {{ image.get_view }}
+ {% endautoescape %}
+ >>{{ post.id }}
+ {% endwith %}
+
+ |
+ {% if forloop.counter|divisibleby:"3" %}
+