Browse Source

Fix templates compatibility with django 1.5

pull/1/head
Hidden Z 11 years ago
parent
commit
8e2ac32684
  1. 8
      pyi2phosts/templates/base.html
  2. 2
      pyi2phosts/templates/browse.html
  3. 8
      pyi2phosts/templates/index.html
  4. 2
      pyi2phosts/templates/latest.html

8
pyi2phosts/templates/base.html

@ -25,10 +25,10 @@ @@ -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>

2
pyi2phosts/templates/browse.html

@ -3,7 +3,7 @@ @@ -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 %}

8
pyi2phosts/templates/index.html

@ -2,7 +2,7 @@ @@ -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 @@ @@ -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 @@ @@ -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

2
pyi2phosts/templates/latest.html

@ -5,5 +5,5 @@ @@ -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…
Cancel
Save