version 2.0 finalized
Peter Molnar hello@petermolnar.eu
Sun, 17 Dec 2017 17:37:32 +0000
7 files changed,
160 insertions(+),
36 deletions(-)
M
archive.py
→
archive.py
@@ -1,3 +1,34 @@
+#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# vim: set fileencoding=utf-8 : + +__author__ = "Peter Molnar" +__copyright__ = "Copyright 2017, Peter Molnar" +__license__ = "GPLv3" +__version__ = "2.0" +__maintainer__ = "Peter Molnar" +__email__ = "hello@petermolnar.eu" +__status__ = "Production" + +""" + silo archiver module of NASG + Copyright (C) 2017 Peter Molnar + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +""" + import os import json import requests
M
nasg.py
→
nasg.py
@@ -1,4 +1,33 @@
#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# vim: set fileencoding=utf-8 : + +__author__ = "Peter Molnar" +__copyright__ = "Copyright 2017, Peter Molnar" +__license__ = "GPLv3" +__version__ = "2.0" +__maintainer__ = "Peter Molnar" +__email__ = "hello@petermolnar.eu" +__status__ = "Production" + +""" + silo archiver module of NASG + Copyright (C) 2017 Peter Molnar + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +""" import os import re
M
router.py
→
router.py
@@ -1,5 +1,33 @@
#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# vim: set fileencoding=utf-8 : +__author__ = "Peter Molnar" +__copyright__ = "Copyright 2017, Peter Molnar" +__license__ = "GPLv3" +__version__ = "2.0" +__maintainer__ = "Peter Molnar" +__email__ = "hello@petermolnar.eu" +__status__ = "Production" + +""" + silo archiver module of NASG + Copyright (C) 2017 Peter Molnar + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +""" from sanic import Sanic import sanic.response from sanic.log import log as logging
M
templates/Singular.html
→
templates/Singular.html
@@ -76,21 +76,28 @@ Did you like what you read?<br />Leave a tip!</a>
{% endif %} </p> <ul> - {% for value in [3] %} - {% for name, url in site.payment.items() %} - <li> - <a rel="payment" title="pay {{ site.author.name }} via {{ name }} {{ site.currency }}{{ value }}" href="{{ url }}{{value}}"> - {{ site.currency }}{{value}} - <span class="method"> - <svg class="icon"><use xlink:href="#icon-{{ name }}"></use></svg> - with {{ name }} - </span> - </a> - </li> - {% endfor %} + {% for name, url in site.payment.items() %} + <li> + <a rel="payment" title="pay {{ site.author.name }} via {{ name }} {{ site.donation.currency }}{{ site.donation.amount }}" href="{{ url }}{{ site.donation.amount }}"> + {{ site.donation.currency }}{{ site.donation.amount }} + <span class="method"> + <svg class="icon"><use xlink:href="#icon-{{ name }}"></use></svg> + with {{ name }} + </span> + </a> + </li> + {% endfor %} + {% for name, walletid in site.cryptocurrencies.items() %} + <!-- + <li> + <a rel="payment" title="pay {{ site.author.name }} with {{ name }}" href="#"> + <span class="wallet">{{ walletid }}</span> + <span class="method">{{ name }}</span> + </a> + </li> + --> {% endfor %} </ul> - </aside>
M
templates/style-dark.css
→
templates/style-dark.css
@@ -376,6 +376,18 @@ .content-footer dl dd:last-of-type:after {
content: ''; } +.content-footer dl.cryptocurrencies { + font-size: 0.7rem; + margin-top: 0.3rem; +} + +.content-footer dl.cryptocurrencies dt { + display: inline-block; + visibility: visible; + text-transform: uppercase; +} + + input { vertical-align:middle; border: none;