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
 
@@ -65,25 +65,25 @@
 
        <li class="dropdown">
 
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">Servers <b class="caret"></b></a>
 
          <ul class="dropdown-menu">
 
            <li><a href="{{ url_for('status.index') }}">All nodes</a></li>
 
            <li><a href="{{ url_for('status.exit') }}">Exit nodes</a></li>
 
            <li><a href="{{ url_for('status.relay') }}">Relay nodes</a></li>
 
            <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">
 
  {% block content %}
 
  {% endblock %}
 
  </div>
 
  <footer>
 
    <hr style="margin-bottom: 0.5%;">
 
    <div class="col-md-12">
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>
 
        <p><em>In a time of universal deceit - telling the truth is a revolutionary act.</em></p>
 
        <small>George Orwell <cite title="Source Title">1984</cite></small>
 
      </blockquote>
 

	
 
      <p><em>Frënn vun der Ënn</em> is a non-profit organization, based in Luxembourg (EU) with the purposes of keeping anonymity, privacy and freedom of speech alive. We've been funded in January 2013 and our Statutes can be looked up <a href="http://enn.lu/files/Statuten.pdf">here</a>.</p>
 

	
 
@@ -20,14 +19,13 @@
 
      <h3>Anonymity</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>
 

	
 
      <h3>Freedom of Expression</h3>
 
      <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
 
@@ -16,25 +16,25 @@
 

	
 
{% macro create_fingerprint(fingerprint) %}
 
  <a href="http://torstatus.enn.lu/#details/{{ fingerprint }}">{{ fingerprint|upper}}</a>
 
{% endmacro %}
 

	
 
{% macro create_server_table(server_type, servers) %}
 
  {% 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>
 
    </thead>
 
    <tbody>
 
      {% for server in servers %}
 
        <tr>
 
          <td>{{ loop.index }}</td>
 
          <td>{{ server['server_name'] }}</td>
setup.py
Show inline comments
 
@@ -8,27 +8,28 @@ setup(name='Ennstatus',
 
      url='https://bitbucket.org/fvde/ennstatus',
 
      license="GPLv3+",
 
      packages=find_packages(),
 
      package_data={'ennstatus': ['static/css/*.css',
 
                                  'static/css/flags/img/png/*.png',
 
                                  'static/css/flags/img/gif/*.gif',
 
                                  '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",
 
                   "Programming Language :: Python",
 
                   "Programming Language :: Python :: 2",
 
                   "Programming Language :: Python :: 2.7",
 
                   "Topic :: Internet",
 
                   "Topic :: Internet :: WWW/HTTP",
 
                   "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
0 comments (0 inline, 0 general)