mirror of https://github.com/PurpleI2P/regi2p.git
Domain registry project
http://reg.i2p/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
2.2 KiB
54 lines
2.2 KiB
3 years ago
|
{% extends "_page.twig" %}
|
||
|
|
||
|
{% block title %}Search host{% endblock %}
|
||
|
{% block content %}
|
||
|
<div class="container">
|
||
|
{% if result|length > 0 %}
|
||
|
<h3 class="title">Query result for "{{ query }}"</h3>
|
||
|
<div class="disclaimer">
|
||
|
<span>
|
||
|
Note: only first {{ limit }} record(s) are shown
|
||
|
</span>
|
||
|
</div>
|
||
|
{% if result.error|length > 0 %}
|
||
|
<div class="disclaimer">
|
||
|
<span>
|
||
|
<b>{{ result.error }}</b>
|
||
|
</span>
|
||
|
</div>
|
||
|
{% else %}
|
||
|
<table class="table">
|
||
|
<thead class="table__head">
|
||
|
<tr class="table__row">
|
||
|
<td class="table__cell">Domain</td>
|
||
|
<td class="table__cell">Base32</td>
|
||
|
<td class="table__cell">Last seen</td>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody class="table__body">
|
||
|
{% for host in result %}
|
||
|
<tr class="table__row">
|
||
|
<td class="table__cell"><a href="http://{{ host.host }}/?i2paddresshelper={{ host.base64 }}">{{ host.host }}</a></td>
|
||
|
<td class="table__cell table__cell_long-ass"><a href="http://{{ host.base32 }}.b32.i2p/">{{ host.base32 }}.b32.i2p</a></td>
|
||
|
<td class="table__cell">{{ host.last_seen != '0000-00-00 00:00:00' ? host.last_seen : 'Never' }}</td>
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
{% endif %}
|
||
|
{% endif %}
|
||
|
|
||
|
<p class="important title">
|
||
|
Search domain
|
||
|
</p>
|
||
|
<form action="/search" method="post">
|
||
|
<div class="form__field">
|
||
|
<label for="q">Query:</label>
|
||
|
<input class="text-input search-page__text-input" type="text" id="q" name="q" maxlength="67" placeholder="domain.i2p" required>
|
||
|
</div>
|
||
|
<input type="submit" value="Submit" class="btn search-page__btn">
|
||
|
</form>
|
||
|
</div>
|
||
|
{% endblock %}
|
||
|
|