2017-09-17 12:29:49 +02:00
|
|
|
{% if g.viewer %}
|
|
|
|
<p>Hello,
|
2017-09-19 02:44:08 +02:00
|
|
|
<img class='avatar {{g.viewer.account.service}}' id=avatar src="{{g.viewer.account.get_avatar()}}" alt=""/>
|
2017-09-17 12:29:49 +02:00
|
|
|
<span id='display-name' title='@{{g.viewer.account.screen_name}}'>{{g.viewer.account.display_name or g.viewer.account.screen_name}}</span>!
|
2017-09-17 13:35:26 +02:00
|
|
|
<span class='btn-group inline'>
|
|
|
|
{% if not request or not request.endpoint == 'index' %}
|
|
|
|
<a class='btn btn-small primary' href="{{url_for('index')}}">Open dashboard</a>
|
|
|
|
{% endif %}
|
|
|
|
<a class='btn btn-small secondary' href="{{url_for('logout')}}">Log out</a>
|
|
|
|
</span>
|
2017-09-17 12:29:49 +02:00
|
|
|
</p>
|
|
|
|
{% else %}
|
|
|
|
<p>Hello, stranger!</p>
|
|
|
|
{% endif %}
|