mirror of https://github.com/r4sas/py-i2phosts
Hidden Z
9 years ago
40 changed files with 1121 additions and 1115 deletions
@ -1,5 +1,5 @@ |
|||||||
from django.conf.urls import * |
from django.conf.urls import * |
||||||
|
|
||||||
urlpatterns = patterns('pyi2phosts.api.views', |
urlpatterns = patterns('pyi2phosts.api.views', |
||||||
url(r'^all/$', 'all'), |
url(r'^all/$', 'all'), |
||||||
) |
) |
||||||
|
@ -1,7 +1,7 @@ |
|||||||
from django.conf.urls import * |
from django.conf.urls import * |
||||||
|
|
||||||
urlpatterns = patterns('pyi2phosts.jump.views', |
urlpatterns = patterns('pyi2phosts.jump.views', |
||||||
(r'^([^$/]+)', 'jumper'), |
(r'^([^$/]+)', 'jumper'), |
||||||
(r'', 'index'), |
(r'', 'index'), |
||||||
|
|
||||||
) |
) |
||||||
|
@ -1,7 +1,7 @@ |
|||||||
from django.conf.urls import * |
from django.conf.urls import * |
||||||
|
|
||||||
urlpatterns = patterns('pyi2phosts.postkey.views', |
urlpatterns = patterns('pyi2phosts.postkey.views', |
||||||
(r'^$', 'addkey'), |
(r'^$', 'addkey'), |
||||||
(r'^success/', 'success'), |
(r'^success/', 'success'), |
||||||
(r'^subdomain/', 'subdomain'), |
(r'^subdomain/', 'subdomain'), |
||||||
) |
) |
||||||
|
@ -1,133 +1,133 @@ |
|||||||
html, body { |
html, body { |
||||||
font-size: 12pt; |
font-size: 12pt; |
||||||
background: #E6E6D1; |
background: #E6E6D1; |
||||||
color: #000000; |
color: #000000; |
||||||
} |
} |
||||||
|
|
||||||
input, textarea { |
input, textarea { |
||||||
background-color: #AEB08D; |
background-color: #AEB08D; |
||||||
color: #000; |
color: #000; |
||||||
border: 1px solid #000; |
border: 1px solid #000; |
||||||
} |
} |
||||||
|
|
||||||
label { |
label { |
||||||
width: 8em; |
width: 8em; |
||||||
float: top; |
float: top; |
||||||
text-align: left; |
text-align: left; |
||||||
margin-right: 1em; |
margin-right: 1em; |
||||||
display: block; |
display: block; |
||||||
} |
} |
||||||
|
|
||||||
a { |
a { |
||||||
background: inherit; |
background: inherit; |
||||||
color: #6E735E; |
color: #6E735E; |
||||||
text-decoration: none; |
text-decoration: none; |
||||||
} |
} |
||||||
a:visited { |
a:visited { |
||||||
background: inherit; |
background: inherit; |
||||||
color: #6E735E; |
color: #6E735E; |
||||||
text-decoration: none; |
text-decoration: none; |
||||||
} |
} |
||||||
a:hover { |
a:hover { |
||||||
color: #000; |
color: #000; |
||||||
background: inherit; |
background: inherit; |
||||||
} |
} |
||||||
|
|
||||||
table { |
table { |
||||||
border-collapse: collapse; |
border-collapse: collapse; |
||||||
width: 90%; |
width: 90%; |
||||||
margin: 10px 0px 10px 0px; |
margin: 10px 0px 10px 0px; |
||||||
} |
} |
||||||
|
|
||||||
tr:first-child { |
tr:first-child { |
||||||
border: 1px solid #CCCCCC; |
border: 1px solid #CCCCCC; |
||||||
font-weight: bold; |
font-weight: bold; |
||||||
} |
} |
||||||
|
|
||||||
tr { |
tr { |
||||||
border: 1px dashed #CCCCCC; |
border: 1px dashed #CCCCCC; |
||||||
} |
} |
||||||
|
|
||||||
td { |
td { |
||||||
max-width: 220px; |
max-width: 220px; |
||||||
} |
} |
||||||
|
|
||||||
div.menu { |
div.menu { |
||||||
float: left; |
float: left; |
||||||
margin: 0px 20px 20px 0px; |
margin: 0px 20px 20px 0px; |
||||||
padding: 10px 20px 20px 0px; |
padding: 10px 20px 20px 0px; |
||||||
border-left: solid 1px #CCCCCC; |
border-left: solid 1px #CCCCCC; |
||||||
text-align: left; |
text-align: left; |
||||||
color: black; |
color: black; |
||||||
font-size: 8pt; |
font-size: 8pt; |
||||||
clear: left; /* fixes a bug in Opera */ |
clear: left; /* fixes a bug in Opera */ |
||||||
width: 160px; |
width: 160px; |
||||||
} |
} |
||||||
|
|
||||||
.menu li { |
.menu li { |
||||||
margin-left: .5em; |
margin-left: .5em; |
||||||
margin-top: .4em; |
margin-top: .4em; |
||||||
padding-left: .5em; |
padding-left: .5em; |
||||||
line-height: 1.2; |
line-height: 1.2; |
||||||
list-style-type: none; |
list-style-type: none; |
||||||
list-style-position: outside; |
list-style-position: outside; |
||||||
} |
} |
||||||
|
|
||||||
.menu ol, ul { |
.menu ol, ul { |
||||||
padding-left: 0em; |
padding-left: 0em; |
||||||
margin-top: 0em; |
margin-top: 0em; |
||||||
padding-top: 0em; |
padding-top: 0em; |
||||||
} |
} |
||||||
|
|
||||||
.errorlist { |
.errorlist { |
||||||
color: red; |
color: red; |
||||||
padding-left: 5em; |
padding-left: 5em; |
||||||
} |
} |
||||||
|
|
||||||
div.main { |
div.main { |
||||||
margin: 0px 0px 0px 0px; |
margin: 0px 0px 0px 0px; |
||||||
padding: 22px 60px 20px 220px; |
padding: 22px 60px 20px 220px; |
||||||
text-align: justify; |
text-align: justify; |
||||||
color: #000011; |
color: #000011; |
||||||
} |
} |
||||||
|
|
||||||
div.main li { |
div.main li { |
||||||
margin-left: 15px; |
margin-left: 15px; |
||||||
} |
} |
||||||
|
|
||||||
div.footer { |
div.footer { |
||||||
font-size: 8pt; |
font-size: 8pt; |
||||||
text-align: center; |
text-align: center; |
||||||
padding: 8px 0 0 0; |
padding: 8px 0 0 0; |
||||||
} |
} |
||||||
|
|
||||||
div.search_host { |
div.search_host { |
||||||
position:absolute; |
position:absolute; |
||||||
right: 15px; |
right: 15px; |
||||||
} |
} |
||||||
|
|
||||||
div.search_host .input input { |
div.search_host .input input { |
||||||
font-size: 10px; |
font-size: 10px; |
||||||
color: #6E735E; |
color: #6E735E; |
||||||
width: 200px; |
width: 200px; |
||||||
} |
} |
||||||
|
|
||||||
.pager { |
.pager { |
||||||
padding-top: 20px; |
padding-top: 20px; |
||||||
padding-left: 100px; |
padding-left: 100px; |
||||||
font-size: 8pt; |
font-size: 8pt; |
||||||
} |
} |
||||||
.pager .page a { |
.pager .page a { |
||||||
border: 1px solid #bbbbbb; |
border: 1px solid #bbbbbb; |
||||||
margin-left: 1px; |
margin-left: 1px; |
||||||
margin-right: 1px; |
margin-right: 1px; |
||||||
padding: 0px 5px 0px 5px; |
padding: 0px 5px 0px 5px; |
||||||
text-decoration: none; |
text-decoration: none; |
||||||
color: #000000; |
color: #000000; |
||||||
} |
} |
||||||
.pager .current { |
.pager .current { |
||||||
border: 2px solid #444444; |
border: 2px solid #444444; |
||||||
margin-left: 2px; |
margin-left: 2px; |
||||||
margin-right: 2px; |
margin-right: 2px; |
||||||
padding: 0px 5px 0px 5px; |
padding: 0px 5px 0px 5px; |
||||||
} |
} |
||||||
|
@ -1,13 +1,13 @@ |
|||||||
<html> |
<html> |
||||||
|
|
||||||
<head><title>FAIL</title></head> |
<head><title>FAIL</title></head> |
||||||
|
|
||||||
<body bgcolor="white"> |
<body bgcolor="white"> |
||||||
|
|
||||||
<center><h1>Non-I2P access denied</h1></center> |
<center><h1>Non-I2P access denied</h1></center> |
||||||
|
|
||||||
<hr><center>py-i2phosts instance</center> |
<hr><center>py-i2phosts instance</center> |
||||||
|
|
||||||
</body> |
</body> |
||||||
|
|
||||||
</html> |
</html> |
||||||
|
Before Width: | Height: | Size: 670 B After Width: | Height: | Size: 676 B |
@ -1,5 +1,5 @@ |
|||||||
{% extends "base.html" %} |
{% extends "base.html" %} |
||||||
|
|
||||||
{% block content %} |
{% block content %} |
||||||
<center><h1>404 Not Found</h1></center> |
<center><h1>404 Not Found</h1></center> |
||||||
{% endblock %} |
{% endblock %} |
||||||
|
@ -1,5 +1,5 @@ |
|||||||
{% extends "base.html" %} |
{% extends "base.html" %} |
||||||
|
|
||||||
{% block content %} |
{% block content %} |
||||||
<center><h1>500 Internal server error</h1></center> |
<center><h1>500 Internal server error</h1></center> |
||||||
{% endblock %} |
{% endblock %} |
||||||
|
@ -1,65 +1,65 @@ |
|||||||
{% load i18n %} |
{% load i18n %} |
||||||
|
|
||||||
<html> |
<html> |
||||||
<head> |
<head> |
||||||
<title> |
<title> |
||||||
{% block title %} |
{% block title %} |
||||||
{{ title }} |
{{ title }} |
||||||
{% endblock %} |
{% endblock %} |
||||||
</title> |
</title> |
||||||
{% block head %} |
{% block head %} |
||||||
{% endblock %} |
{% endblock %} |
||||||
<link rel="stylesheet" type="text/css" href="/static/base.css" /> |
<link rel="stylesheet" type="text/css" href="/static/base.css" /> |
||||||
</head> |
</head> |
||||||
<body> |
<body> |
||||||
<div class="search_host"> |
<div class="search_host"> |
||||||
<form action="/search/"> |
<form action="/search/"> |
||||||
<input class="input" name="q" maxlength="67" type="text" value="{% trans "Search host" %}" |
<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" %}') |
onblur="if (value == '') {value = '{% trans "Search host" %}'}" onfocus="if (value == '{% trans "Search host" %}') |
||||||
{value =''}" /> |
{value =''}" /> |
||||||
<input type="submit" value="{% trans "Search" %}" /> |
<input type="submit" value="{% trans "Search" %}" /> |
||||||
</form> |
</form> |
||||||
</div> |
</div> |
||||||
|
|
||||||
{% block navigation %} |
{% block navigation %} |
||||||
<div class="menu"> |
<div class="menu"> |
||||||
<ul> |
<ul> |
||||||
<li><a href=/>{% trans "Home" %}</a></li> |
<li><a href=/>{% trans "Home" %}</a></li> |
||||||
<li><a href={% url 'faq' %}>FAQ</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 'latest' %}>{% trans "Browse latest hosts" %}</a></li> |
||||||
<li><a href={% url 'browse' %}>{% trans "Browse alive 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 'pyi2phosts.postkey.views.addkey' %}>{% trans "Register a domain" %}</a></li> |
||||||
<li><a href={% url 'contacts' %}>{% trans "Contacts" %}</a></li> |
<li><a href={% url 'contacts' %}>{% trans "Contacts" %}</a></li> |
||||||
</ul> |
</ul> |
||||||
</div> |
</div> |
||||||
|
|
||||||
<form action="/i18n/setlang/" method="post"> |
<form action="/i18n/setlang/" method="post"> |
||||||
{% csrf_token %} |
{% csrf_token %} |
||||||
{% for lang in LANGUAGES %} |
{% for lang in LANGUAGES %} |
||||||
<input type="radio" value="{{ lang.0 }}" name="language" /> |
<input type="radio" value="{{ lang.0 }}" name="language" /> |
||||||
<img src="/static/{{ lang.0 }}.png" width="16" height="11" alt="{{ lang.0 }}"/> |
<img src="/static/{{ lang.0 }}.png" width="16" height="11" alt="{{ lang.0 }}"/> |
||||||
{% endfor %} |
{% endfor %} |
||||||
<input type="submit" value="Set" /> |
<input type="submit" value="Set" /> |
||||||
</form> |
</form> |
||||||
|
|
||||||
{% endblock %} |
{% endblock %} |
||||||
|
|
||||||
<div class="main"> |
<div class="main"> |
||||||
{% block header %} |
{% block header %} |
||||||
{% endblock %} |
{% endblock %} |
||||||
|
|
||||||
{% block content %} |
{% block content %} |
||||||
{% endblock %} |
{% endblock %} |
||||||
</div> |
</div> |
||||||
|
|
||||||
{% block footer %} |
{% block footer %} |
||||||
<hr> |
<hr> |
||||||
<div class="footer"> |
<div class="footer"> |
||||||
{% block footer-addon %} |
{% block footer-addon %} |
||||||
{% endblock %} |
{% endblock %} |
||||||
{% trans "powered-by" %}: <a href=http://py-i2phosts.i2p/>py-i2phosts</a> |
{% trans "powered-by" %}: <a href=http://py-i2phosts.i2p/>py-i2phosts</a> |
||||||
</div> |
</div> |
||||||
{% endblock %} |
{% endblock %} |
||||||
</body> |
</body> |
||||||
</html> |
</html> |
||||||
|
|
||||||
|
Loading…
Reference in new issue