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.
 
 
 
 

122 lines
5.7 KiB

{% extends "_page.twig" %}
{% block title %}Jump to site{% endblock %}
{% block head %}
{{ parent() }}
{% if autojump %}
{% if not result %}
<meta http-equiv="refresh" content="2; URL=/jump/" />
{% elseif result.error|length > 0 or result.blacklisted == 1 %}
{# Skipping redirect #}
{% elseif result.uri|length > 0 %}
<meta http-equiv="refresh" content="4; URL=http://{{ result.host }}/{{ result.uri }}{% if '?' in result.uri %}&{% else %}?{% endif %}i2paddresshelper={{ result.base64 }}" />
{% else %}
<meta http-equiv="refresh" content="4; URL=http://{{ result.host }}/?i2paddresshelper={{ result.base64 }}" />
{% endif %}
{% endif %}
{% endblock %}
{% block content %}
<div class="container">
<div class="jumper">
{% if result|length > 0 %}
{% if result.error|length > 0 %}
<div class="jumper__err">
<h3 class="jumper__title title">Error</h3>
<b style="color: red;">{{ result.error }}</b>
</div>
{% else %}
<div class="jumper__succ">
<h3 class="jumper__title title">Query result for "{{ result.host }}"</h3>
{% if autojump %}
{% if result.blacklisted == 1 %}
<div class="jumper__line line">
Site is found, but autoredirect is disabled because <font color="red">site marked as offensive</font>. Press link below to continue anyway.
</div>
<br>
{% else %}
<div class="jumper__line line">
Site is found. You will be redirected soon...
</div>
<br>
{% endif %}
{% endif %}
{% if not autojump and result.blacklisted == 1 %}
<div class="jumper__line line">
Note: <font color="red">site marked as offensive</font>. Press link below to continue anyway.
</div>
<br>
{% endif %}
<div class="jumper__line line">
<span>
Addresshelper:
</span>
{% if result.uri|length > 0 %}
<a href="http://{{ result.host }}/{{ result.uri }}{% if '?' in result.uri %}&{% else %}?{% endif %}i2paddresshelper={{ result.base64 }}" rel="external nofollow noopener noreferrer" target="_blank">Go to site</a>
{% else %}
<a href="http://{{ result.host }}/?i2paddresshelper={{ result.base64 }}" rel="external nofollow noopener noreferrer" target="_blank">Go to site</a>
{% endif %}
</div>
<div class="jumper__line line">
<span>
Base32:
</span>
<span class="crazy-base64-span">
{{ result.base32 }}.b32.i2p
</span>
</div>
<div class="jumper__line line">
<span>
Base64:
</span>
<span class="crazy-base64-span">
{{ result.base64 }}
</span>
</div>
<div class="jumper__line line">
<span>
Added at:
</span>
<span class="crazy-base64-span">
{{ result.add_date }}
</span>
</div>
<div class="jumper__line line">
<span>
Last seen:
</span>
<span class="crazy-base64-span">
{{ result.last_seen != '0000-00-00 00:00:00' ? result.last_seen : 'Never' }}
</span>
</div>
</div>
{% endif %}
{% elseif (autojump and not result) %}
<div class="jumper__err">
<h3 class="jumper__title title">Error</h3>
<b style="color: red;">Empty request, redirecting to jump page</b>
</div>
{% endif %}
{% if not autojump %}
<div class="jumper__itself">
<p class="important jumper__title title">
Query domain
</p>
<form action="/jump" method="post" class="jumper__form">
{% if all %}
<input type="hidden" name="all" value="true">
{% endif %}
<div class="form__field">
<label for="q">Domain:</label>
<input class="text-input jumper__text-input" type="text" id="q" name="q" maxlength="67" placeholder="domain.i2p" required>
</div>
<input type="submit" value="Submit" class="btn jumper__btn">
</form>
</div>
{% endif %}
</div>
</div>
{% endblock %}