Merge RT and no-RT posts into one file
This commit is contained in:
parent
3b98c71396
commit
4c0406cb24
@ -1,30 +0,0 @@
|
||||
<div class="ui centered card"><!--Start tweet-->
|
||||
<div class="content">
|
||||
<div class="extra content">
|
||||
<div class="left floated author">
|
||||
<img 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="user/{{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%}
|
||||
</div>
|
||||
<div class="description break-word">
|
||||
<p>{{post.content}}</p>
|
||||
</div>
|
||||
<div class="extra content">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!--End tweet-->
|
@ -2,7 +2,12 @@
|
||||
<div class="content">
|
||||
<div class="extra content">
|
||||
<div class="left floated author">
|
||||
<img class="ui avatar image" src="{{ url_for('static',filename='img/avatars/')}}{{range(1, 12) | random}}.png">
|
||||
{% if post.isRT %}
|
||||
<img class="ui avatar image" src="{{ url_for('static',filename='img/avatars/')}}{{range(1, 12) | random}}.png">
|
||||
{%else%}
|
||||
<img class="ui avatar image" src="{{ post.profilePic }}">
|
||||
{%endif%}
|
||||
|
||||
</div>
|
||||
|
||||
<a href="{{post.url}}"><span class="right floated star">
|
||||
@ -12,7 +17,12 @@
|
||||
<div class="header" id="author"><a href="user/{{post.op.replace('@','')}}">{{ post.op }}</a></div>
|
||||
<div class="meta">
|
||||
<span class="category" id="time"><i class="clock icon"></i> {{post.date}} </span>
|
||||
<span class="category"><i class="retweet icon"></i> {{post.username}} retwitted</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}} retwitted</span>
|
||||
{%endif%}
|
||||
</div>
|
||||
<div class="description break-word">
|
||||
<p>{{post.content}}</p>
|
@ -14,11 +14,7 @@
|
||||
<div class="text container" id="card-container">
|
||||
{% if posts %}
|
||||
{% for post in posts %}
|
||||
{% if post.isRT %}
|
||||
{% include '_post.html' %}
|
||||
{% else %}
|
||||
{% include '_post_nort.html' %}
|
||||
{% endif %}
|
||||
{% include '_twitter_post.html' %}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<div>No posts</div>
|
||||
|
Reference in New Issue
Block a user