Fix image links and new tabs

This commit is contained in:
pluja 2020-10-04 08:10:16 +02:00
parent 917a09101d
commit 8143ea3a23
2 changed files with 5 additions and 5 deletions

View File

@ -24,17 +24,17 @@
</div>
<div class="extra content">
{% if post.attachedImg %}
<a href="{{post.attachedImg}}"><img alt="Image attachment" class="ui centered fluid rounded medium image" src="{{post.attachedImg}}"></a>
<a href="{{post.attachedImg}}"><img alt="Image attachment" class="ui centered fluid rounded medium image" src="{{post.attachedImg}}">
{% endif %}
{% if post.isReply %}
<div class="ui card">
<div class="content">
<div class="header"><a href="/{{post.replyingUser}}">{{post.replyingUser}}</a></div>
<!--<div class="meta">{{post.replyingUser}}</div>-->
<div class="header"><a href="/post.replyingUser">{{post.replyingUser}}</a></div>
<div class="meta">{{post.replyingUser}}</div>
<div class="description break-word">
{{post.replyingTweetContent | safe}}
{% if post.replyAttachedImg %}
<a href="{{post.attachedImg}}"><img alt="Image attachment" class="ui centered fluid rounded medium image" src="{{post.replyAttachedImg}}"></a>
<a target="_blank" href="{{post.replyAttachedImg}}"><img alt="Image attachment" class="ui centered fluid rounded medium image" src="{{post.replyAttachedImg}}"></a>
{% endif %}
</div>
</div>

View File

@ -37,7 +37,7 @@
</div>
<div class="ui horizontal segments">
<div class="center aligned ui segment">
<a target="_blank" href="{{ url_for('channel', id=video.channelId)}}">
<a href="{{ url_for('channel', id=video.channelId)}}">
{%if video.author.__len__() > 8%}
<i class="user icon"></i> {{video.author[0:10]+'...'}}
{%else%}