Archived
1
0

make images open in new tab

This commit is contained in:
Jeff Becker 2016-11-06 10:58:19 -05:00
parent 514064ce5a
commit 4c7dd44815
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
3 changed files with 5 additions and 5 deletions

View File

@ -24,7 +24,7 @@
<div class="attachments"> <div class="attachments">
{% for a in op.attachments.all %} {% for a in op.attachments.all %}
<a href="{{a.source}}"><img class="thumb" src="{{a.thumb}}"></img></a> <a target="_blank" href="{{a.source}}"><img class="thumb" src="{{a.thumb}}"></img></a>
{% endfor %} {% endfor %}
</div> </div>
<pre class="postbody">{{op.message|truncate|memepost}}</pre> <pre class="postbody">{{op.message|truncate|memepost}}</pre>
@ -38,7 +38,7 @@
</div> </div>
<div class="attachments"> <div class="attachments">
{% for a in reply.attachments.all %} {% for a in reply.attachments.all %}
<a href="{{a.source}}"><img class="thumb" src="{{a.thumb}}"></img></a> <a target="_blank" href="{{a.source}}"><img class="thumb" src="{{a.thumb}}"></img></a>
{% endfor %} {% endfor %}
</div> </div>
<pre class="postbody">{{reply.message|truncate|memepost}}</pre> <pre class="postbody">{{reply.message|truncate|memepost}}</pre>

View File

@ -14,7 +14,7 @@
</div> </div>
<div class="attachments"> <div class="attachments">
{% for a in post.attachments.all %} {% for a in post.attachments.all %}
<a href="{{a.source}}"><img class="thumb" src="{{a.thumb}}"></img></a> <a target="_blank" href="{{a.source}}"><img class="thumb" src="{{a.thumb}}"></img></a>
{% endfor %} {% endfor %}
</div> </div>
<pre class="postbody">{{post.message | truncate | memepost }}</pre> <pre class="postbody">{{post.message | truncate | memepost }}</pre>

View File

@ -16,7 +16,7 @@
<div class="attachments"> <div class="attachments">
{% for a in op.attachments.all %} {% for a in op.attachments.all %}
<a href="{{a.source}}"><img class="thumb" src="{{a.thumb}}"></img></a> <a target="_blank" href="{{a.source}}"><img class="thumb" src="{{a.thumb}}"></img></a>
{% endfor %} {% endfor %}
</div> </div>
<pre class="postbody">{{op.message|memepost}}</pre> <pre class="postbody">{{op.message|memepost}}</pre>
@ -31,7 +31,7 @@
</div> </div>
<div class="attachments"> <div class="attachments">
{% for a in reply.attachments.all %} {% for a in reply.attachments.all %}
<a href="{{a.source}}"><img class="thumb" src="{{a.thumb}}"></img></a> <a target="_blank" href="{{a.source}}"><img class="thumb" src="{{a.thumb}}"></img></a>
{% endfor %} {% endfor %}
</div> </div>
{% autoescape off %} {% autoescape off %}