mirror of
https://git.wownero.com/wownero/YellWOWPages.git
synced 2024-08-15 01:03:25 +00:00
turn search into include, limit user results, minimum term search 2, show date of address addition
This commit is contained in:
parent
37208b102b
commit
b13f03855d
10 changed files with 50 additions and 48 deletions
|
@ -9,7 +9,7 @@
|
|||
<a href="{{ url_for('bp_routes.login') }}">Login</a>
|
||||
{% else %}
|
||||
<a href="{{ url_for('bp_routes.logout') }}">Logout</a>
|
||||
<a href="{{ url_for('bp_routes.dashboard') }}">Dashboard</a>
|
||||
<a href="{{ url_for('bp_routes.dashboard') }}">My Profile</a>
|
||||
{% endif %}
|
||||
<a href="{{ url_for('bp_routes.search') }}">Yell<span>WOW</span>Page search</a>
|
||||
<a href="{{ url_for('bp_routes.about') }}">About</a>
|
||||
|
|
3
yellow/templates/includes/search.html
Normal file
3
yellow/templates/includes/search.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<form action="{{ url_for('bp_routes.search') }}" method="GET">
|
||||
<input type="text" name="username" placeholder="Search for an username...">
|
||||
</form>
|
11
yellow/templates/includes/user_results.html
Normal file
11
yellow/templates/includes/user_results.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<div id="addresses">
|
||||
{% for user in users %}
|
||||
<article>
|
||||
<header>
|
||||
<em>{{user.username}}</em>
|
||||
<small style="float: right">Added: {{ user.created_dt }}</small>
|
||||
</header>
|
||||
<kbd>{{user.address}}</kbd>
|
||||
</article>
|
||||
{% endfor %}
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue