mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-17 05:28:03 +00:00
Merge branch 'devel' into 'master'
Merge in latest devel changes (clime theme and proxy example) See merge request oliver/ivatar!139
This commit is contained in:
File diff suppressed because one or more lines are too long
10
ivatar/static/css/clime.less
Normal file
10
ivatar/static/css/clime.less
Normal file
@@ -0,0 +1,10 @@
|
||||
@import 'tortin.less';
|
||||
@bg-hero:#ff4400;
|
||||
|
||||
.btn {
|
||||
border-radius: 0px !important;
|
||||
}
|
||||
|
||||
section.content h1, section.content h2, section.content h3, section.content h4, section.content h5, section.content h6 {
|
||||
color: #ff4400;
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
@import 'tortin.less';
|
||||
@bg-hero:#ff8800;
|
||||
|
||||
.btn {
|
||||
border-radius: 0px !important;
|
||||
}
|
||||
22
libravatarproxy.py
Executable file
22
libravatarproxy.py
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import urllib.request
|
||||
import sys
|
||||
import os
|
||||
|
||||
sys.stderr.buffer.write(b'%s' % bytes(os.environ.get("QUERY_STRING", "No Query String in url"), 'utf-8'))
|
||||
|
||||
link = 'https://www.libravatar.org/avatar/%s' % os.environ.get("QUERY_STRING", 'x'*32)
|
||||
sys.stderr.buffer.write(b'%s' % bytes(link, 'utf-8'))
|
||||
|
||||
data = None
|
||||
with urllib.request.urlopen(link) as f:
|
||||
data = f.read()
|
||||
|
||||
for header in f.headers._headers:
|
||||
if header[0] == 'Content-Type':
|
||||
sys.stdout.buffer.write(b"%s: %s\n\n" % (bytes(header[0], 'utf-8'), bytes(header[1], 'utf-8')))
|
||||
sys.stdout.flush()
|
||||
break
|
||||
|
||||
sys.stdout.buffer.write(data)
|
||||
@@ -37,7 +37,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
<a href="/tools/check/" class="btn btn-lg btn-primary">{% trans 'Check email' %}</a>
|
||||
<a href="/tools/check/" class="btn btn-lg btn-primary">{% trans 'Check' %}</a>
|
||||
</header>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user