Start adding user profiles along searches

This commit is contained in:
Michał Gdula 2023-06-22 21:00:35 +00:00
parent e1d22d502d
commit 361d76f530
2 changed files with 19 additions and 5 deletions

View file

@ -22,7 +22,13 @@
<span class="text-input">
<label for="search">Username</label>
<input type="text" name="user" id="search" {% if user %}value="{{ user }}"{% endif %} autocomplete="off"/>
<input
type="text"
name="user"
id="search"
{% if user %}value="{{ user.username }}"{% endif %}
autocomplete="off"
/>
</span>
<button class="button"><i class="ph ph-magnifying-glass"></i></button>
@ -30,6 +36,12 @@
</nav>
{% endblock %}
{% block content %}
{% if user %}
<div class="block">
<h2 style="margin-bottom: 0;">{{ user.username }}</h2>
</div>
{% endif %}
{% if scores %}
<div class="table">
<table>