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/search.html

36 lines
1.2 KiB
HTML
Raw Normal View History

2020-07-13 05:40:51 +05:30
{% extends "base.html" %}
{% block content %}
2020-08-27 13:37:48 +05:30
<div class="ui text container">
<form class="center aligned ui form" action="" method="post" novalidate>
2020-07-13 05:40:51 +05:30
{{ form.hidden_tag() }}
<p>
{{ form.username.label }}<br>
{{ form.username(size=32) }}<br>
{% for error in form.username.errors %}
<span style="color: red;">[{{ error }}]</span>
{% endfor %}
</p>
<p>{{ form.submit() }}</p>
</form>
2020-07-13 20:06:45 +05:30
{% if results %}
2020-08-27 13:37:48 +05:30
<div class="ui relaxed divided list">
2020-07-13 20:06:45 +05:30
{% for res in results %}
<div class="item">
2020-08-27 13:37:48 +05:30
<img class="ui avatar image" src="{{ res.avatar }}">
2020-07-13 20:06:45 +05:30
<div class="content">
2020-08-27 13:37:48 +05:30
{% if res.fullName|length > 20%}
2020-08-27 15:37:59 +05:30
<a class="header" href="/u/{{res.username}}">{{res.fullName[0:23]}}...</a>
2020-08-27 13:37:48 +05:30
{% else %}
2020-08-27 15:37:59 +05:30
<a class="header" href="/u/{{res.username}}">{{res.fullName}}</a>
2020-08-27 13:37:48 +05:30
{% endif %}
<div class="description">{{res.username}}</div>
2020-07-13 20:06:45 +05:30
</div>
</div>
{% endfor %}
</div>
2020-08-27 13:37:48 +05:30
{% endif %}
2020-07-13 05:40:51 +05:30
</div>
{% endblock %}