##// END OF EJS Templates
Use more mobile friendly design for random images (no tables, just blocks that...
neko259 -
r1248:be5f9d10 default
parent child Browse files
Show More
@@ -109,7 +109,7 b' textarea, input {'
109 width: 100%;
109 width: 100%;
110 }
110 }
111
111
112 .random-images-table > table {
112 .random-images-table > div {
113 margin-left: auto;
113 margin-left: auto;
114 margin-right: auto;
114 margin-right: auto;
115 }
115 }
@@ -10,10 +10,8 b''
10
10
11 {% if posts %}
11 {% if posts %}
12 <div class="random-images-table">
12 <div class="random-images-table">
13 <table>
13 <div>
14 <tr>
15 {% for post in posts %}
14 {% for post in posts %}
16 <td>
17 <div class="gallery_image">
15 <div class="gallery_image">
18 {% with post.get_first_image as image %}
16 {% with post.get_first_image as image %}
19 {% autoescape off %}
17 {% autoescape off %}
@@ -22,14 +20,12 b''
22 <a href="{{ post.get_absolute_url }}">>>{{ post.id }}</a>
20 <a href="{{ post.get_absolute_url }}">>>{{ post.id }}</a>
23 {% endwith %}
21 {% endwith %}
24 </div>
22 </div>
25 </td>
26 {% if forloop.counter|divisibleby:"3" %}
23 {% if forloop.counter|divisibleby:"3" %}
27 </tr>
24 </div>
28 <tr>
25 <div>
29 {% endif %}
26 {% endif %}
30 {% endfor %}
27 {% endfor %}
31 </tr>
28 </div>
32 </table>
33 </div>
29 </div>
34 {% endif %}
30 {% endif %}
35
31
General Comments 0
You need to be logged in to leave comments. Login now