Files
runnerspace/templates/pages/browse.html
Xevion 5338797013 Improve browse page styling & data
ellipsis moment
2022-03-27 04:14:27 -05:00

33 lines
1.4 KiB
HTML

{% extends 'layouts/index.html' %}
{% block content %}
<div class="content-inner">
<div class="user-list">
{% for user in users %}
<div class="user-box">
<div class="user-box-top">
<span class="user-box-username">
<a href="{{ url_for('main.user', username=user.username) }}">{{ user.name }}</a>
</span>
{% with seen_text = user.get_last_seen() %}
{% if seen_text == 'Online now!' %}
<span class="user-box-timestamp online">{{ seen_text }}</span>
{% else %}
<span class="user-box-timestamp offline">{{ seen_text }}</span>
{% endif %}
{% endwith %}
</div>
<div class="user-box-bottom">
<div class="user-box-img">
<img src="{{ url_for('static', filename='default_photo.png') }}"
alt="{{ user.username }}'s Profile Picture">
</div>
<p class="user-box-minibio">{{ user.about_me }}</p>
</div>
</div>
{% endfor %}
</div>
</div>
{% endblock %}