This repository has been archived on 2022-06-28. You can view files and clone it, but cannot push or open issues or pull requests.
Yotter/app/templates/_twitter_post.html
2020-09-01 21:03:51 +02:00

53 lines
2.3 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 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}}</p>
</div>
<div class="extra content">
{% if post.attachedImg != "" %}
<img alt="Image attachment" class="ui centered medium image" src="{{post.attachedImg}}">
{% endif %}
{% if post.isReply %}
<div class="ui card">
<div class="content">
<div class="header">{{post.replyingUser}}</div>
<div class="meta">{{post.replyingUser}}</div>
<div class="description break-word">
{{post.replyingTweetContent}}
{% if post.replyAttachedImg != "" %}
<img alt="Image attachment" class="ui centered medium image" src="{{post.replyAttachedImg}}">
{% 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-->