Configure site title

This commit is contained in:
RunasSudo 2017-11-26 11:16:57 +11:00
parent 20abbdae78
commit 7ea360b5d4
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
5 changed files with 19 additions and 2 deletions

View File

@ -14,6 +14,8 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
ORG_NAME = 'FIXME'
BASE_URI = 'http://localhost:5000' BASE_URI = 'http://localhost:5000'
MONGO_URI = 'mongodb://localhost:27017/' MONGO_URI = 'mongodb://localhost:27017/'

View File

@ -25,7 +25,8 @@
{% block basecontent %} {% block basecontent %}
<div class="ui fixed inverted menu" style="margin-right: 1.5em;"> <div class="ui fixed inverted menu" style="margin-right: 1.5em;">
<div class="ui container"> <div class="ui container">
<a href="/" class="header item">Eos Voting</a> <a href="/" class="header item">Eos Voting for {{ eosweb.app.config['ORG_NAME'] }}</a>
<a href="https://github.com/RunasSudo/Eos" class="item">Source Code</a>
{% if session.user %} {% if session.user %}
<div class="ui simple dropdown item right"> <div class="ui simple dropdown item right">
{{ session.user.username }} <i class="dropdown icon"></i> {{ session.user.username }} <i class="dropdown icon"></i>

View File

@ -21,6 +21,8 @@
{% block title %}Home{% endblock %} {% block title %}Home{% endblock %}
{% block content %} {% block content %}
<h1>Eos Voting for {{ eosweb.app.config['ORG_NAME'] }}</h1>
<p>Please choose an election from the list below:</p> <p>Please choose an election from the list below:</p>
<ul> <ul>
{% for election in eos.base.election.Election.get_all() %} {% for election in eos.base.election.Election.get_all() %}

View File

@ -20,7 +20,7 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>{% block title %}{% endblock %} – Eos Voting</title> <title>{% block title %}{% endblock %} – Eos Voting for {{ eosweb.app.config['ORG_NAME'] }}</title>
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='bower_components/semantic/dist/semantic.min.css') }}"> <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='bower_components/semantic/dist/semantic.min.css') }}">

12
local_settings.example.py Normal file
View File

@ -0,0 +1,12 @@
ORG_NAME = 'Your Organisation Here'
REDDIT_OAUTH_CLIENT_ID = 'xxxxxxxxxxxxxx'
REDDIT_OAUTH_CLIENT_SECRET = 'xxxxxxxxxxxxxxxxxxxxxxxxxxx'
SECRET_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxx'
REDDIT_USER_AGENT = 'Application Title by /u/Your_Username'
AUTH_METHODS = [
('reddit', 'Reddit')
]