Changeset - 3abda675c94a
[Not reviewed]
default
0 5 0
Dennis Fink - 11 years ago 2013-11-17 16:06:47
dennis.fink@c3l.lu
updated ennstatus
5 files changed with 10 insertions and 9 deletions:
0 comments (0 inline, 0 general)
ennstatus/__init__.py
Show inline comments
 
from flask import Flask
 
from flask_bootstrap import Bootstrap
 
from flask.ext.compress import Compress
 
from flask_sslify import SSLify
 
#from flask_sslify import SSLify
 

	
 
from ennstatus.log import init_logging
 

	
 
app = Flask(__name__)
 
app.config.from_object('config')
 
app.config.from_envvar('ENNSTATUS_SETTINGS')
 

	
 
Bootstrap(app)
 
Compress(app)
 
SSLify(app, permanent=True)
 
#SSLify(app, permanent=True)
 

	
 
from ennstatus.views import root_page
 
from ennstatus.api.views import api_page
 
from ennstatus.donate.views import donate_page
 
from ennstatus.status.views import status_page
 
from ennstatus.stats.views import stats_page
 

	
 
app.register_blueprint(root_page)
 
app.register_blueprint(api_page, url_prefix='/api')
 
app.register_blueprint(donate_page, url_prefix='/donate')
 
app.register_blueprint(status_page, url_prefix='/status')
 
app.register_blueprint(stats_page, url_prefix='/stats')
 

	
 
init_logging(app)
 

	
 
application = app
ennstatus/templates/base.html
Show inline comments
 
@@ -71,13 +71,13 @@
 
            <li><a href="{{ url_for('status.bridge') }}">Bridge nodes</a></li>
 
            <li class="divider"></li>
 
            <li><a href="{{ url_for('status.about') }}">Ënnstatus About</a></li>
 
          </ul>
 
        </li>
 
        <li>
 
          <a href="http://stats.enn.lu">Statistics</a>
 
          <a href="{{ url_for('stats.index') }}">Statistics</a>
 
        </li>
 
      </ul>
 
    </div>
 
  </div>
 
  {% endblock %}
 
  <div class="row" id="content">
ennstatus/templates/root/about.html
Show inline comments
 
{% extends "base.html" %}
 

	
 
{% set title = "About" %}
 

	
 
{% block content %}
 
  <div class="row">
 
    <div class="col-md-4 text-center">
 
      <img class="img-rounded" alt="WhoIs" src="{{ url_for('static', filename='images/WhoIs.png') }}" width="160" height="189"></img>
 
      <h3>About</h3>
 
    </div>
 
    <div class="col-md-8">
 
      <blockquote>
 
@@ -26,8 +25,7 @@
 
      <p>Protecting the right of Freedom of Expression is no task for journalists, (h)acktivists and others anymore, but it became a fight in which we all need to stand together. As our organization puts its accent on <strong>anonymity</strong>, this is one way to uphold this most important right.</p>
 

	
 

	
 
      <h3>Voice</h3>
 
      <p>Anonymity is one of our last best hopes and possibilities to protect our fundamental rights as citizens of this world. As the Internet is the most important entity these societies have ever seen, its very powerful as well. With a lot of power comes a lot of responsibility. Some governments, corporations and people try to undermine our rights by trying to prohibit us the right of anonymity under the pretending of the most social engineered sentence of our modern society: "If you have nothing to hide, surveillance won't disturb you."</p>
 
    </div>
 
  </div>
 
{% endblock %}
ennstatus/templates/status/macros.html
Show inline comments
 
@@ -22,13 +22,13 @@
 
  {% if server_type in ('Exit', 'Relay') %}
 
    {% set headers = ['#', 'Name', 'IP', 'Server Status', 'Tor Status', 'Country', 'Fingerprint', 'Last Updated (UTC)'] %}
 
  {% else %}
 
    {% set headers = ['#', 'Name', 'Server Status', 'Tor Status', 'Country', 'OBFS', 'Last Updated (UTC)'] %}
 
  {% endif %}
 
  <h2>{{ server_type }}</h2>
 
  <table class="table table-bordered table-striped table-condensed">
 
  <table class="table table-bordered table-striped">
 
    <thead>
 
      <tr>
 
        {% for name in headers %}
 
          <th>{{ name }}</th>
 
        {% endfor %}
 
      </tr>
setup.py
Show inline comments
 
@@ -14,15 +14,16 @@ setup(name='Ennstatus',
 
                                  'static/css/flags/*.css',
 
                                  'static/files/*',
 
                                  'static/images/*',
 
                                  'static/videos/*',
 
                                  'templates/*.html',
 
                                  'templates/api/extract/xml/*.xml',
 
                                  'templates/api/donate/*.html',
 
                                  'templates/donate/*.html',
 
                                  'templates/root/*.html',
 
                                  'templates/status/*.html'
 
                                  'templates/status/*.html',
 
                                  'templates/stats/*.html'
 
                                  ]},
 
      install_requires=['Flask', 'pygeoip', 'Flask-Bootstrap',
 
                        'Flask-Compress', 'Flask-SSLify'],
 
      classifiers=["Development Status :: 5 - Production/Stable",
 
                   "Environment :: Web Environment",
 
                   "Operating System :: POSIX",
0 comments (0 inline, 0 general)