mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-01-22 12:34:17 +00:00
Fix templates compatibility with django 1.5
This commit is contained in:
parent
43bcfec7ed
commit
8e2ac32684
@ -25,10 +25,10 @@
|
||||
<div class="menu">
|
||||
<ul>
|
||||
<li><a href=/>{% trans "Home" %}</a></li>
|
||||
<li><a href={% url faq %}>FAQ</a></li>
|
||||
<li><a href={% url browse %}>{% trans "Browse alive hosts" %}</a></li>
|
||||
<li><a href={% url latest %}>{% trans "Browse latest hosts" %}</a></li>
|
||||
<li><a href={% url pyi2phosts.postkey.views.addkey %}>{% trans "Register a domain" %}</a></li>
|
||||
<li><a href={% url 'faq' %}>FAQ</a></li>
|
||||
<li><a href={% url 'browse' %}>{% trans "Browse alive hosts" %}</a></li>
|
||||
<li><a href={% url 'latest' %}>{% trans "Browse latest hosts" %}</a></li>
|
||||
<li><a href={% url 'pyi2phosts.postkey.views.addkey' %}>{% trans "Register a domain" %}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
{% block header %}
|
||||
<h3>{% trans "All active hosts in I2P" %}
|
||||
<a href={% url browse-rss %}><img src="/static/rss-grey-18.png" border="0" width="18" height="18" alt="rss"></a></h3>
|
||||
<a href={% url 'browse-rss' %}><img src="/static/rss-grey-18.png" border="0" width="18" height="18" alt="rss"></a></h3>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
@ -2,7 +2,7 @@
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
{% url faq as faq_url %}
|
||||
{% url 'faq' as faq_url %}
|
||||
{% blocktrans %}
|
||||
<h2>About</h2>
|
||||
<p>{{ title }} is a domain name registration service for I2P. Hostnames in I2P aren't
|
||||
@ -34,8 +34,8 @@
|
||||
</p>
|
||||
{% endblocktrans %}
|
||||
|
||||
{% url pyi2phosts.jump.views.jumper 'example.i2p' as jump_url %}
|
||||
{% url pyi2phosts.jump.views.index as jump_index %}
|
||||
{% 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,
|
||||
@ -48,7 +48,7 @@
|
||||
</p>
|
||||
{% endblocktrans %}
|
||||
|
||||
{% url pyi2phosts.postkey.views.addkey as addkey_url %}
|
||||
{% 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
|
||||
|
@ -5,5 +5,5 @@
|
||||
{% blocktrans %}
|
||||
<h3>Latest {{ hosts_count }} hosts added in {{ day_count }} days
|
||||
{% endblocktrans %}
|
||||
<a href={% url latest-rss %}><img src="/static/rss-grey-18.png" border="0" width="18" height="18" alt="rss"></a></h3>
|
||||
<a href={% url 'latest-rss' %}><img src="/static/rss-grey-18.png" border="0" width="18" height="18" alt="rss"></a></h3>
|
||||
{% endblock %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user