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

85 lines
3.8 KiB
HTML
Raw Permalink Normal View History

2020-08-26 22:22:20 +05:30
<div class="ui centered card"><!--Start tweet-->
<div class="content">
<div class="extra content">
<div class="left floated author">
2020-09-02 00:33:51 +05:30
<img alt="Avatar" class="ui avatar image" src="{{ post.profilePic }}">
2020-07-13 20:06:45 +05:30
</div>
2020-08-26 22:22:20 +05:30
2020-09-09 20:09:58 +05:30
<a target="_blank" href="{{post.url}}"><span class="right floated star">
2020-08-26 22:22:20 +05:30
<i class="share square outline icon"></i>
</span></a>
</div>
2020-11-10 19:06:28 +05:30
<div class="header" id="author"><a href="{{url_for('u', username=post.op.replace('@',''))}}">{{ post.op }}</a></div>
2020-08-26 22:22:20 +05:30
<div class="meta">
<span class="category" id="time"><i class="clock icon"></i> {{post.date}} </span>
2020-08-27 00:19:45 +05:30
{% if post.isPinned %}
<span class="category" id="time"><i class="map pin icon"></i> Pinned </span>
{%endif%}
{% if post.isRT %}
2020-08-28 02:55:08 +05:30
<span class="category"><i class="retweet icon"></i> {{post.username}}</span>
2020-08-27 00:19:45 +05:30
{%endif%}
2020-08-26 22:22:20 +05:30
</div>
<div style="margin-bottom: 15px;" class="description break-word">
2020-10-01 15:32:26 +05:30
<p>{{post.content | safe}}</p>
2020-08-26 22:22:20 +05:30
</div>
<div class="content">
{% if post.attachedImages %}
{%for img in post.attachedImages %}
<a target="_blank" href="{{img}}">
<img alt="Image attachment" class="ui centered fluid rounded medium image" src="{{img}}">
</a>
{%endfor%}
2020-08-28 02:55:08 +05:30
{% endif %}
{% if post.attachedVideo %}
<div class="ui segment"><p><i class="file video icon"></i> <b>This tweet has an attached video.</b></p></div>
{%endif%}
2020-08-28 02:55:08 +05:30
{% if post.isReply %}
{%if post.unavailableReply%}
<div class="ui card">
<div class="content">
<p> This tweet is unavailable. </p>
2020-08-28 02:55:08 +05:30
</div>
</div>
{%else%}
<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%}
2020-08-28 02:55:08 +05:30
{% endif %}
2020-08-26 22:22:20 +05:30
<p>
<form class="ui form" action="{{ url_for('savePost', url=post.url.replace('/', '~')) }}" method="post">
<button type="submit" class="mini ui icon button">
2020-08-26 22:22:20 +05:30
<i class="bookmark outline icon"></i>
</button>
2020-08-26 22:22:20 +05:30
</form>
</p>
2020-07-13 03:13:36 +05:30
</div>
</div>
<div class="extra content">
<span class="left floated">
<i class="red heart like icon"></i>
{{post.likes}}
<span> </span>
<i class="grey comment icon"></i>
{{post.comments}}
</span>
<span class="right floated">
<i class="blue retweet icon"></i>
{{post.retweets}}
<i class="grey quote left icon"></i>
{{post.quotes}}
</span>
</div>
2020-07-13 03:13:36 +05:30
</div> <!--End tweet-->