mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-03-09 20:01:18 +00:00
fixed tabulation
This commit is contained in:
parent
68e3b47be1
commit
aa854f3bbc
@ -1,5 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<center><h1>404 Not Found</h1></center>
|
||||
<center><h1>404 Not Found</h1></center>
|
||||
{% endblock %}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<center><h1>500 Internal server error</h1></center>
|
||||
<center><h1>500 Internal server error</h1></center>
|
||||
{% endblock %}
|
||||
|
@ -1,65 +1,64 @@
|
||||
{% load i18n %}
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
{% block title %}
|
||||
{{ title }}
|
||||
{% endblock %}
|
||||
</title>
|
||||
{% block head %}
|
||||
{% endblock %}
|
||||
<link rel="stylesheet" type="text/css" href="/static/base.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="search_host">
|
||||
<form action="/search/">
|
||||
<input class="input" name="q" maxlength="67" type="text" value="{% trans "Search host" %}"
|
||||
onblur="if (value == '') {value = '{% trans "Search host" %}'}" onfocus="if (value == '{% trans "Search host" %}')
|
||||
{value =''}" />
|
||||
<input type="submit" value="{% trans "Search" %}" />
|
||||
</form>
|
||||
</div>
|
||||
<head>
|
||||
<title>
|
||||
{% block title %}
|
||||
{{ title }}
|
||||
{% endblock %}
|
||||
</title>
|
||||
{% block head %}
|
||||
{% endblock %}
|
||||
<link rel="stylesheet" type="text/css" href="/static/base.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="search_host">
|
||||
<form action="/search/">
|
||||
<input class="input" name="q" maxlength="67" type="text" value="{% trans "Search host" %}"
|
||||
onblur="if (value == '') {value = '{% trans "Search host" %}'}" onfocus="if (value == '{% trans "Search host" %}')
|
||||
{value =''}" />
|
||||
<input type="submit" value="{% trans "Search" %}" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{% block navigation %}
|
||||
<div class="menu">
|
||||
<ul>
|
||||
<li><a href=/>{% trans "Home" %}</a></li>
|
||||
<li><a href={% url 'faq' %}>FAQ</a></li>
|
||||
<li><a href={% url 'latest' %}>{% trans "Browse latest hosts" %}</a></li>
|
||||
<li><a href={% url 'browse' %}>{% trans "Browse alive hosts" %}</a></li>
|
||||
<li><a href={% url 'pyi2phosts.postkey.views.addkey' %}>{% trans "Register a domain" %}</a></li>
|
||||
<li><a href={% url 'contacts' %}>{% trans "Contacts" %}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
{% block navigation %}
|
||||
<div class="menu">
|
||||
<ul>
|
||||
<li><a href=/>{% trans "Home" %}</a></li>
|
||||
<li><a href={% url 'faq' %}>FAQ</a></li>
|
||||
<li><a href={% url 'latest' %}>{% trans "Browse latest hosts" %}</a></li>
|
||||
<li><a href={% url 'browse' %}>{% trans "Browse alive hosts" %}</a></li>
|
||||
<li><a href={% url 'pyi2phosts.postkey.views.addkey' %}>{% trans "Register a domain" %}</a></li>
|
||||
<li><a href={% url 'contacts' %}>{% trans "Contacts" %}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<form action="/i18n/setlang/" method="post">
|
||||
{% csrf_token %}
|
||||
{% for lang in LANGUAGES %}
|
||||
<input type="radio" value="{{ lang.0 }}" name="language" />
|
||||
<img src="/static/{{ lang.0 }}.png" width="16" height="11" alt="{{ lang.0 }}"/>
|
||||
{% endfor %}
|
||||
<input type="submit" value="Set" />
|
||||
</form>
|
||||
<form action="/i18n/setlang/" method="post">
|
||||
{% csrf_token %}
|
||||
{% for lang in LANGUAGES %}
|
||||
<input type="radio" value="{{ lang.0 }}" name="language" />
|
||||
<img src="/static/{{ lang.0 }}.png" width="16" height="11" alt="{{ lang.0 }}"/>
|
||||
{% endfor %}
|
||||
<input type="submit" value="Set" />
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
<div class="main">
|
||||
{% block header %}
|
||||
{% endblock %}
|
||||
<div class="main">
|
||||
{% block header %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
||||
{% block footer %}
|
||||
<hr>
|
||||
<div class="footer">
|
||||
{% block footer-addon %}
|
||||
{% endblock %}
|
||||
{% trans "powered-by" %}: <a href=http://py-i2phosts.i2p/>py-i2phosts</a>
|
||||
</div>
|
||||
{% endblock %}
|
||||
</body>
|
||||
{% block footer %}
|
||||
<hr>
|
||||
<div class="footer">
|
||||
{% block footer-addon %}
|
||||
{% endblock %}
|
||||
{% trans "powered-by" %}: <a href=http://py-i2phosts.i2p/>py-i2phosts</a>
|
||||
</div>
|
||||
{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
@ -9,28 +9,28 @@
|
||||
{% block content %}
|
||||
{% block table_header %}
|
||||
<table>
|
||||
<tr><td><a href="?order=name">{% trans "Host" %}</a></td><td><a href="?order=last_seen">{% trans "Last seen" %}</a></td><td><a href="?order=date_added">{% trans "Date added" %}</a></td><td>{% trans "Description" %}</td></tr>
|
||||
<tr><td><a href="?order=name">{% trans "Host" %}</a></td><td><a href="?order=last_seen">{% trans "Last seen" %}</a></td><td><a href="?order=date_added">{% trans "Date added" %}</a></td><td>{% trans "Description" %}</td></tr>
|
||||
{% endblock table_header %}
|
||||
{% for host in host_list %}
|
||||
<tr><td><a href="http://{{ host.name }}/?i2paddresshelper={{host.b64hash}}">{{ host.name }}</a></td><td>{{ host.last_seen }}</td>
|
||||
<td>{{ host.date_added }}</td><td>{{ host.description }}</td></tr>
|
||||
{% endfor %}
|
||||
{% for host in host_list %}
|
||||
<tr><td><a href="http://{{ host.name }}/?i2paddresshelper={{host.b64hash}}">{{ host.name }}</a></td><td>{{ host.last_seen }}</td>
|
||||
<td>{{ host.date_added }}</td><td>{{ host.description }}</td></tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
{% if is_paginated %}
|
||||
<div class="pager">
|
||||
{% if page_obj.has_previous %}
|
||||
<span class="page">
|
||||
<a href="?page={{ page_obj.previous_page_number }}&order={{ order }}">< Prev</a>
|
||||
</span>
|
||||
{% endif %}
|
||||
{% if page_obj.has_previous %}
|
||||
<span class="page">
|
||||
<a href="?page={{ page_obj.previous_page_number }}&order={{ order }}">< Prev</a>
|
||||
</span>
|
||||
{% endif %}
|
||||
|
||||
<span class="current">Page {{ page_obj.number }} of {{ paginator.num_pages }}</span>
|
||||
<span class="current">Page {{ page_obj.number }} of {{ paginator.num_pages }}</span>
|
||||
|
||||
{% if page_obj.has_next %}
|
||||
<span class="page"><a href="?page={{ page_obj.next_page_number }}&order={{ order }}">Next ></a></span>
|
||||
{% endif %}
|
||||
{{ paginator.count }} {% trans "hosts total" %}
|
||||
{% if page_obj.has_next %}
|
||||
<span class="page"><a href="?page={{ page_obj.next_page_number }}&order={{ order }}">Next ></a></span>
|
||||
{% endif %}
|
||||
{{ paginator.count }} {% trans "hosts total" %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
@ -5,17 +5,17 @@
|
||||
{% blocktrans %}
|
||||
<h3>Direct contact methods:</h3>
|
||||
<ul>
|
||||
<li>IRC: #i2p-dev, nick "slow". This is the fastest contact method and should be used first.</li>
|
||||
<li>Email: hiddenz@mail.i2p. You can send your message here, but don't expect a fast reply.</li>
|
||||
<li>IRC: #i2p-dev, nick "slow". This is the fastest contact method and should be used first.</li>
|
||||
<li>Email: hiddenz@mail.i2p. You can send your message here, but don't expect a fast reply.</li>
|
||||
</ul>
|
||||
{% endblocktrans %}
|
||||
|
||||
{% blocktrans %}
|
||||
<h3>Public discussions about service, feedback, proposals and feature requests</h3>
|
||||
<ul>
|
||||
<li><a href="http://hiddenchan.i2p/d/res/4222.html">Thread at hiddenchan.i2p</a>: the best place for discussion (russian and english are allowed)</li>
|
||||
<li><a href="http://forum.i2p/viewtopic.php?t=5083">Thread at forum.i2p</a>: very rarely readable (english)</li>
|
||||
<li><a href="http://zzz.i2p/topics/733">py-i2phosts thread at zzz.i2p</a>: thread about py-i2phosts development, rarely readable (english)</li>
|
||||
<li><a href="http://hiddenchan.i2p/d/res/4222.html">Thread at hiddenchan.i2p</a>: the best place for discussion (russian and english are allowed)</li>
|
||||
<li><a href="http://forum.i2p/viewtopic.php?t=5083">Thread at forum.i2p</a>: very rarely readable (english)</li>
|
||||
<li><a href="http://zzz.i2p/topics/733">py-i2phosts thread at zzz.i2p</a>: thread about py-i2phosts development, rarely readable (english)</li>
|
||||
</ul>
|
||||
{% endblocktrans %}
|
||||
{% endblock %}
|
||||
|
@ -4,24 +4,24 @@
|
||||
{% block content %}
|
||||
<h3>{% trans "How we are learning about new hosts" %}</h3>
|
||||
<ol>
|
||||
<li>{% trans "Pulling from external sources:" %}
|
||||
<ul>
|
||||
{% for source in sources_list %}
|
||||
<li>{{ source.url }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
<li>{% trans "Adding through our service." %}
|
||||
</li>
|
||||
<li>{% trans "Pulling from external sources:" %}
|
||||
<ul>
|
||||
{% for source in sources_list %}
|
||||
<li>{{ source.url }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
<li>{% trans "Adding through our service." %}
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
{% blocktrans %}
|
||||
<h3>Publishing requirements</h3>
|
||||
To get published a host must meet the following criteria:
|
||||
<ul>
|
||||
<li>Must have been added at least 3 days ago</li>
|
||||
<li>Must be up</li>
|
||||
<li>Must be approved by admin</li>
|
||||
<li>Must have been added at least 3 days ago</li>
|
||||
<li>Must be up</li>
|
||||
<li>Must be approved by admin</li>
|
||||
</ul>
|
||||
<p style="notice">Admin's approval isn't really necessary, it is only needed in
|
||||
order to eliminate possible hijacking and mass registration attempts.
|
||||
|
@ -2,55 +2,55 @@
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
{% url 'faq' as faq_url %}
|
||||
{% blocktrans %}
|
||||
<h2>About</h2>
|
||||
<p>{{ title }} is a domain name registration service for I2P. Hostnames in I2P aren't
|
||||
globally unique. {{ title }} doesn't act as "central authority", it only provides a
|
||||
way to publish hosts as an easy means of access to them. You can read more about how
|
||||
I2P naming works in the <a href=http://www.i2p2.i2p/naming.html>official
|
||||
docs</a>.
|
||||
</p>
|
||||
{% url 'faq' as faq_url %}
|
||||
{% blocktrans %}
|
||||
<h2>About</h2>
|
||||
<p>{{ title }} is a domain name registration service for I2P. Hostnames in I2P aren't
|
||||
globally unique. {{ title }} doesn't act as "central authority", it only provides a
|
||||
way to publish hosts as an easy means of access to them. You can read more about how
|
||||
I2P naming works in the <a href=http://www.i2p2.i2p/naming.html>official
|
||||
docs</a>.
|
||||
</p>
|
||||
|
||||
<p>To find out how we're registering and publishing hosts, look at
|
||||
<a href={{ faq_url }}>FAQ</a> page.
|
||||
</p>
|
||||
{% endblocktrans %}
|
||||
<p>To find out how we're registering and publishing hosts, look at
|
||||
<a href={{ faq_url }}>FAQ</a> page.
|
||||
</p>
|
||||
{% endblocktrans %}
|
||||
|
||||
{% blocktrans %}
|
||||
<h2>Addressbook service</h2>
|
||||
<p>
|
||||
To start getting new hostnames from {{ title }}, add this
|
||||
<a href=/export/alive-hosts.txt>subscription link</a> into your <a
|
||||
href=http://localhost:7657/susidns/subscriptions.jsp>router's
|
||||
addressbook</a>. Of course, you should <a
|
||||
href=http://localhost:7657/susidns/addressbook.jsp?book=private&hostname={{ domain }}&destination={{ b64 }}>add INR</a>'s destination before.
|
||||
</p>
|
||||
{% endblocktrans %}
|
||||
{% blocktrans %}
|
||||
<h2>Addressbook service</h2>
|
||||
<p>
|
||||
To start getting new hostnames from {{ title }}, add this
|
||||
<a href=/export/alive-hosts.txt>subscription link</a> into your <a
|
||||
href=http://localhost:7657/susidns/subscriptions.jsp>router's
|
||||
addressbook</a>. Of course, you should <a
|
||||
href=http://localhost:7657/susidns/addressbook.jsp?book=private&hostname={{ domain }}&destination={{ b64 }}>add INR</a>'s destination before.
|
||||
</p>
|
||||
{% endblocktrans %}
|
||||
|
||||
{% url 'pyi2phosts.jump.views.jumper' 'example.i2p' as jump_url %}
|
||||
{% url 'pyi2phosts.jump.views.index' as jump_index %}
|
||||
{% blocktrans %}
|
||||
<h2>Jump service</h2><p>
|
||||
{{ title }} also provides a jump service. For accessing hosts through it,
|
||||
use urls like
|
||||
<a href="{{ jump_url }}">
|
||||
http://{{ domain }}{{ jump_url }}</a>.
|
||||
I2P since 0.8.3 gives possibility to add a custom jump-servers. Go to the i2ptunnel
|
||||
<a href="http://localhost:7657/i2ptunnel/edit?tunnel=0">eeproxy configuration page
|
||||
</a> and add <em>http://{{ domain }}{{ jump_index }}</em> to "Jump URL List" section.
|
||||
</p>
|
||||
{% endblocktrans %}
|
||||
{% url 'pyi2phosts.jump.views.jumper' 'example.i2p' as jump_url %}
|
||||
{% url 'pyi2phosts.jump.views.index' as jump_index %}
|
||||
{% blocktrans %}
|
||||
<h2>Jump service</h2><p>
|
||||
{{ title }} also provides a jump service. For accessing hosts through it,
|
||||
use urls like
|
||||
<a href="{{ jump_url }}">
|
||||
http://{{ domain }}{{ jump_url }}</a>.
|
||||
I2P since 0.8.3 gives possibility to add a custom jump-servers. Go to the i2ptunnel
|
||||
<a href="http://localhost:7657/i2ptunnel/edit?tunnel=0">eeproxy configuration page
|
||||
</a> and add <em>http://{{ domain }}{{ jump_index }}</em> to "Jump URL List" section.
|
||||
</p>
|
||||
{% endblocktrans %}
|
||||
|
||||
{% url 'pyi2phosts.postkey.views.addkey' as addkey_url %}
|
||||
{% blocktrans %}
|
||||
<h2>Registration service</h2>
|
||||
<p>If you are running an eepsite or another service and want a human-readable domain name
|
||||
for them, consider <a href={{ addkey_url }}>registering it</a>.
|
||||
</p>
|
||||
{% endblocktrans %}
|
||||
{% url 'pyi2phosts.postkey.views.addkey' as addkey_url %}
|
||||
{% blocktrans %}
|
||||
<h2>Registration service</h2>
|
||||
<p>If you are running an eepsite or another service and want a human-readable domain name
|
||||
for them, consider <a href={{ addkey_url }}>registering it</a>.
|
||||
</p>
|
||||
{% endblocktrans %}
|
||||
{% endblock %}
|
||||
|
||||
{% block footer-addon %}
|
||||
<a href=http://{{ b32 }}>b32</a> | <a href=http://localhost:7657/susidns/addressbook.jsp?book=private&hostname={{ domain }}&destination={{ b64 }}>{% trans "add" %}</a> |
|
||||
<a href=http://{{ b32 }}>b32</a> | <a href=http://localhost:7657/susidns/addressbook.jsp?book=private&hostname={{ domain }}&destination={{ b64 }}>{% trans "add" %}</a> |
|
||||
{% endblock %}
|
||||
|
@ -9,5 +9,5 @@
|
||||
{% endblock %}
|
||||
{% block table_header %}
|
||||
<table>
|
||||
<tr><td>{% trans "Host" %}</td><td>{% trans "Last seen" %}</td><td>{% trans "Date added" %}</td><td>{% trans "Description" %}</td></tr>
|
||||
<tr><td>{% trans "Host" %}</td><td>{% trans "Last seen" %}</td><td>{% trans "Date added" %}</td><td>{% trans "Description" %}</td></tr>
|
||||
{% endblock table_header %}
|
||||
|
@ -1,28 +1,28 @@
|
||||
<div class="pager">
|
||||
{% if has_previous %}
|
||||
<span class="page">
|
||||
<a href="?page={{ previous }}">< Prev</a>
|
||||
</span>
|
||||
{% endif %}
|
||||
{% if has_previous %}
|
||||
<span class="page">
|
||||
<a href="?page={{ previous }}">< Prev</a>
|
||||
</span>
|
||||
{% endif %}
|
||||
|
||||
{% if show_first %}
|
||||
<span class="page"><a href="?page=1">1</a></span>
|
||||
<span class="ellipsis">...</span>
|
||||
{% endif %}
|
||||
{% for linkpage in page_numbers %}
|
||||
{% ifequal linkpage page %}
|
||||
<span class="current">{{ page }}</span>
|
||||
{% else %}
|
||||
<span class="page"><a href="?page={{ linkpage }}"
|
||||
>{{ linkpage }}</a></span>
|
||||
{% endifequal %}
|
||||
{% endfor %}
|
||||
{% if show_last %}
|
||||
<span class="ellipsis">...</span>
|
||||
<span class="page"><a href="?page=last">{{ pages }}</a></span>
|
||||
{% endif %}
|
||||
{% if has_next %}
|
||||
<span class="page"><a href="?page={{ next }}">Next ></a></span>
|
||||
{% endif %}
|
||||
{{ paginator.count }} total
|
||||
{% if show_first %}
|
||||
<span class="page"><a href="?page=1">1</a></span>
|
||||
<span class="ellipsis">...</span>
|
||||
{% endif %}
|
||||
{% for linkpage in page_numbers %}
|
||||
{% ifequal linkpage page %}
|
||||
<span class="current">{{ page }}</span>
|
||||
{% else %}
|
||||
<span class="page"><a href="?page={{ linkpage }}"
|
||||
>{{ linkpage }}</a></span>
|
||||
{% endifequal %}
|
||||
{% endfor %}
|
||||
{% if show_last %}
|
||||
<span class="ellipsis">...</span>
|
||||
<span class="page"><a href="?page=last">{{ pages }}</a></span>
|
||||
{% endif %}
|
||||
{% if has_next %}
|
||||
<span class="page"><a href="?page={{ next }}">Next ></a></span>
|
||||
{% endif %}
|
||||
{{ paginator.count }} total
|
||||
</div>
|
||||
|
@ -2,14 +2,14 @@
|
||||
|
||||
<h2>{% trans "Domain name registration policy" %}</h2>
|
||||
<ul>
|
||||
<li>{% trans "Domain name registration is free." %}</li>
|
||||
<li>{% trans "Anyone can register a domain name." %}</li>
|
||||
<li>{% trans "Domain names are available on a 'first come, first serve' basis." %}</li>
|
||||
<li>{% trans "A domain name's destination must be active." %}
|
||||
{% trans "Inactive destinations cannot be published." %}</li>
|
||||
<li>{% trans "Domain name hoarding through mass registration (cybersquatting) is not allowed." %}</li>
|
||||
<li>{% trans "Domain name registrations will not be rejected based on content." %}</li>
|
||||
<li>{% trans "Domain name registrations will stop propagating after some period of inactivity." %}</li>
|
||||
<li>{% trans "Temporary or test sites should not be registered. Use b32 address instead." %}</li>
|
||||
<li>{% trans "Changing key for existing domains is prohibited." %}</li>
|
||||
<li>{% trans "Domain name registration is free." %}</li>
|
||||
<li>{% trans "Anyone can register a domain name." %}</li>
|
||||
<li>{% trans "Domain names are available on a 'first come, first serve' basis." %}</li>
|
||||
<li>{% trans "A domain name's destination must be active." %}
|
||||
{% trans "Inactive destinations cannot be published." %}</li>
|
||||
<li>{% trans "Domain name hoarding through mass registration (cybersquatting) is not allowed." %}</li>
|
||||
<li>{% trans "Domain name registrations will not be rejected based on content." %}</li>
|
||||
<li>{% trans "Domain name registrations will stop propagating after some period of inactivity." %}</li>
|
||||
<li>{% trans "Temporary or test sites should not be registered. Use b32 address instead." %}</li>
|
||||
<li>{% trans "Changing key for existing domains is prohibited." %}</li>
|
||||
</ul>
|
||||
|
@ -3,10 +3,10 @@
|
||||
|
||||
{% block content %}
|
||||
{% include "policy.html" %}
|
||||
<form action="/postkey/" method="post">
|
||||
{% csrf_token %}
|
||||
<h3>{% trans "Enter your domain details" %}</h3>
|
||||
{{ form.as_p }}
|
||||
<input type="submit" value="{% trans "Submit" %}" />
|
||||
</form>
|
||||
<form action="/postkey/" method="post">
|
||||
{% csrf_token %}
|
||||
<h3>{% trans "Enter your domain details" %}</h3>
|
||||
{{ form.as_p }}
|
||||
<input type="submit" value="{% trans "Submit" %}" />
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
@ -15,10 +15,10 @@ This file should be accessible via http://{{ topdomain }}/«filename»
|
||||
</p>
|
||||
{% endblocktrans %}
|
||||
|
||||
<form action="/postkey/subdomain/" method="post">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<input type="submit" value="OK" />
|
||||
</form>
|
||||
<form action="/postkey/subdomain/" method="post">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<input type="submit" value="OK" />
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user