2
0
mirror of https://github.com/codl/forget synced 2025-01-07 12:52:34 +01:00
forget-cancellare-vecchi-toot/templates/index.html

19 lines
588 B
HTML

{% if g.viewer %}
<p>Hello,
<img src="{{g.viewer.account.remote_avatar_url}}" style='height:1.5em; border-radius:100%; transform:translateY(25%);'/>
{{g.viewer.account.remote_display_name}}!
<a href="{{url_for('settings')}}">Settings</a>
<a href="{{url_for('logout')}}">Log out</a>
</p>
<p>your posts ({{g.viewer.account.post_count()}}):</p>
{% for post in posts %}
<p>{{post.body}}</p>
{% else %}
<p>no posts :(</p>
{% endfor %}
{% else %}
<p>Hello, stranger! <a href="/login/twitter">Log in with Twitter</a></p>
{% endif %}