c60b3ade82
When a user quoted another, the quoted user profile link was broken
53 lines
2.5 KiB
HTML
53 lines
2.5 KiB
HTML
<div class="ui centered card"><!--Start tweet-->
|
|
<div class="content">
|
|
<div class="extra content">
|
|
<div class="left floated author">
|
|
<img alt="Avatar" class="ui avatar image" src="{{ post.profilePic }}">
|
|
</div>
|
|
|
|
<a target="_blank" href="{{post.url}}"><span class="right floated star">
|
|
<i class="share square outline icon"></i>
|
|
</span></a>
|
|
</div>
|
|
<div class="header" id="author"><a href="{{url_for('u', username=post.op.replace('@',''))}}">{{ post.op }}</a></div>
|
|
<div class="meta">
|
|
<span class="category" id="time"><i class="clock icon"></i> {{post.date}} </span>
|
|
{% if post.isPinned %}
|
|
<span class="category" id="time"><i class="map pin icon"></i> Pinned </span>
|
|
{%endif%}
|
|
{% if post.isRT %}
|
|
<span class="category"><i class="retweet icon"></i> {{post.username}}</span>
|
|
{%endif%}
|
|
</div>
|
|
<div class="description break-word">
|
|
<p>{{post.content | safe}}</p>
|
|
</div>
|
|
<div class="extra content">
|
|
{% if post.attachedImg %}
|
|
<a target="_blank" 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="description break-word">
|
|
{{post.replyingTweetContent | safe}}
|
|
{% if post.replyAttachedImg %}
|
|
<a target="_blank" href="{{post.replyAttachedImg}}"><img alt="Image attachment" class="ui centered fluid rounded medium image" src="{{post.replyAttachedImg}}"></a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<p>
|
|
<form class="ui form" action="{{ url_for('savePost', url=post.url.replace('/', '~')) }}" method="post">
|
|
<button type="submit" class="ui icon button">
|
|
<i class="bookmark outline icon"></i>
|
|
</button>
|
|
</form>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div> <!--End tweet--> |