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:
Oliver Falk
2019-03-14 10:19:25 +01:00
5 changed files with 34 additions and 8 deletions

File diff suppressed because one or more lines are too long

View 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;
}

View File

@@ -1,6 +0,0 @@
@import 'tortin.less';
@bg-hero:#ff8800;
.btn {
border-radius: 0px !important;
}

22
libravatarproxy.py Executable file
View 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)

View File

@@ -37,7 +37,7 @@
</ul> </ul>
</div> </div>
{% endif %} {% endif %}
<a href="/tools/check/" class="btn btn-lg btn-primary">{% trans 'Check email' %}</a>&nbsp; &nbsp;<a href="/tools/check/" class="btn btn-lg btn-primary">{% trans 'Check' %}</a>&nbsp;
</header> </header>
</div> </div>
</div> </div>