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/_post_saved.html
2020-09-01 21:03:51 +02:00

39 lines
1.9 KiB
HTML

<div class="column"> <!--Start tweet-->
<div class="ui centered card">
<div class="content">
<div class="extra content">
<div class="left floated author">
<img alt="Avatar random" class="ui avatar image" src="{{ url_for('static',filename='img/avatars/')}}{{range(1, 12) | random}}.png">
</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.username}}">@{{ post.username }}</a></div>
<div class="meta">
<span class="category" id="time"><i class="clock icon"></i> {{post.timestamp.replace("\xc2\xb7", "")}} </span>
</div>
<div class="description">
<p>{{post.body}}</p>
</div>
<div class="extra center aligned content">
<p>
<form class="ui form" action="{{ url_for('deleteSaved', id=post.id) }}" method="post">
<a href="{{ post.url }}"><button type="button" class="ui blue left aligned icon button">
<i class="share icon"></i>
</button></a>
<button type="submit" class="ui red right aligned icon button">
<i class="trash icon"></i>
</button>
</form>
</p>
</div>
</div>
<!--newPost.url = savedUrl
newPost.body = html.body.find_all('div', attrs={'class':'main-tweet'})[0].find_all('div', attrs={'class':'tweet-content'})[0].text
newPost.username = html.body.find('a','username').text.replace("@","")
newPost.timestamp = html.body.find_all('p', attrs={'class':'tweet-published'})[0].text
newPost.user_id = current_user.id-->
</div>
</div> <!--End tweet-->