# HG changeset patch # User Dennis Fink # Date 2015-10-23 00:30:15 # Node ID 447435fa7bff5547c7d77c3e708bf0d51053ef13 # Parent 0e2b4d4a1c8481d7ccb3cc15183cac240a1b6620 # Parent 9208bc39dd9ae3e2a22fa0dfbae1b8d26c768535 Merge dev diff --git a/.hgignore b/.hgignore --- a/.hgignore +++ b/.hgignore @@ -16,3 +16,7 @@ test/* run.py *.csv *.json +*.orig + +Ennstatus.egg-info/* +doc/* diff --git a/ennstatus/api/views.py b/ennstatus/api/views.py --- a/ennstatus/api/views.py +++ b/ennstatus/api/views.py @@ -12,6 +12,7 @@ import strict_rfc3339 import pygeoip import requests +from ennstatus import csrf from ennstatus.status.functions import (single_server, all_servers, all_servers_by_type) from .model import Server @@ -22,6 +23,7 @@ gi4 = pygeoip.GeoIP('/usr/share/GeoIP/Ge gi6 = pygeoip.GeoIP('/usr/share/GeoIP/GeoIPv6.dat', pygeoip.MEMORY_CACHE) +@csrf.exempt @api_page.route('/update', methods=('POST',)) @httpauth.login_required def update(): diff --git a/ennstatus/root/functions.py b/ennstatus/root/functions.py --- a/ennstatus/root/functions.py +++ b/ennstatus/root/functions.py @@ -44,7 +44,7 @@ def send_membership_mail(form): current_app.logger.debug(body) msg.body = encrypted_body if encrypted_body else body conn.send(msg) - flash('Application successfully sended!', 'success') + flash('Application successfully submitted!', 'success') except KeyError: flash( 'Internal server error! Please get in touch with us at info@enn.lu!', @@ -92,7 +92,7 @@ def send_bridgeprogram_mail(form): msg.body = encrypted_body if encrypted_body else body conn.send(msg) flash( - 'Application successfully sended! We will send you an email with further information!', + 'Application successfully submitted! We will send you an email with further information!', 'success' ) except KeyError: diff --git a/ennstatus/root/views.py b/ennstatus/root/views.py --- a/ennstatus/root/views.py +++ b/ennstatus/root/views.py @@ -19,11 +19,6 @@ def about(): return render_template('root/about.html') -@root_page.route('/services') -def services(): - return render_template('root/services.html') - - @root_page.route('/partners') def partners(): return render_template('root/partners.html') diff --git a/ennstatus/static/css/ennstatus.css b/ennstatus/static/css/ennstatus.css --- a/ennstatus/static/css/ennstatus.css +++ b/ennstatus/static/css/ennstatus.css @@ -62,7 +62,6 @@ a, a:hover, a:active, a:visited { } - /* Multi level dropdown menu http://bootsnipp.com/snippets/featured/multi-level-dropdown-menu-bs3 */ .dropdown-submenu { @@ -166,3 +165,37 @@ a, a:hover, a:active, a:visited { .checkbox label, .radio label { padding-left: 12px; } + +.btn { + margin-top: 5px; + margin-bottom: 5px; +} + +.highlighted-label { + font-size: 24px; + margin-bottom: 10px; + font-weight: 500; + line-height: 1.1; + box-sizing: border-box; + display: inline-block; +} + +.highlighted-label-big { + font-size: 30px; + margin-bottom: 10px; + font-weight: 500; + line-height: 1.1; + box-sizing: border-box; + display: inline-block; + +} + +.btn-enn { + color: #fff; + background-color: #00ae18; + border-color: #009414; +} + +footer { + margin-bottom: 20px; +} diff --git a/ennstatus/status/views.py b/ennstatus/status/views.py --- a/ennstatus/status/views.py +++ b/ennstatus/status/views.py @@ -40,8 +40,3 @@ def single(server_name): server = single_server(server_name.lower()) kwargs = {server['server_type'].lower(): [server]} return render_template('status/index.html', **kwargs) - - -@status_page.route('/about') -def about(): - return render_template('status/about.html') diff --git a/ennstatus/templates/base.html b/ennstatus/templates/base.html --- a/ennstatus/templates/base.html +++ b/ennstatus/templates/base.html @@ -117,12 +117,16 @@ {% block content %} {% endblock %} -