mirror of
https://github.com/jackeilles/xygt.git
synced 2024-11-23 23:32:38 +01:00
bug fixes
This commit is contained in:
parent
ba083cc0cb
commit
4f8ea6f164
1 changed files with 9 additions and 9 deletions
|
@ -52,7 +52,7 @@ def index():
|
||||||
randomQuote = random.choice(list(quotes.items()))
|
randomQuote = random.choice(list(quotes.items()))
|
||||||
author = randomQuote[0]
|
author = randomQuote[0]
|
||||||
quote = randomQuote[1]
|
quote = randomQuote[1]
|
||||||
return render_template('index.html', author=author, quote=quote)
|
return render_template('index.html', author=author, quote=quote, title="Home")
|
||||||
|
|
||||||
elif request.method == "POST":
|
elif request.method == "POST":
|
||||||
|
|
||||||
|
@ -98,27 +98,27 @@ def index():
|
||||||
|
|
||||||
@app.route('/about')
|
@app.route('/about')
|
||||||
def about():
|
def about():
|
||||||
return render_template('about.html')
|
return render_template('about.html', title="About")
|
||||||
|
|
||||||
@app.route('/tos')
|
@app.route('/tos')
|
||||||
def tos():
|
def tos():
|
||||||
return render_template('tos.html')
|
return render_template('tos.html', title="Terms of Service")
|
||||||
|
|
||||||
@app.route('/privacy')
|
@app.route('/privacy')
|
||||||
def privacy():
|
def privacy():
|
||||||
return render_template('privacy.html')
|
return render_template('privacy.html', title="Privacy Policy")
|
||||||
|
|
||||||
@app.route('/faq')
|
@app.route('/faq')
|
||||||
def faq():
|
def faq():
|
||||||
return render_template('faq.html')
|
return render_template('faq.html', title="FAQ")
|
||||||
|
|
||||||
@app.route('/contact')
|
@app.route('/contact')
|
||||||
def contact():
|
def contact():
|
||||||
return render_template('contact.html')
|
return render_template('contact.html', title="Contact")
|
||||||
|
|
||||||
@app.route('/transparency')
|
@app.route('/transparency')
|
||||||
def transparency():
|
def transparency():
|
||||||
return render_template('transparency.html')
|
return render_template('transparency.html', title="Transparency Report")
|
||||||
|
|
||||||
@app.route('/transparency/public')
|
@app.route('/transparency/public')
|
||||||
def public():
|
def public():
|
||||||
|
@ -127,7 +127,7 @@ def public():
|
||||||
@app.route('/dashboard')
|
@app.route('/dashboard')
|
||||||
@login_required
|
@login_required
|
||||||
def dashboard():
|
def dashboard():
|
||||||
return render_template('dashboard.html', files=Config.files.find({"userid": current_user.userid}), urls=Config.url.find({"userid": current_user.userid}))
|
return render_template('dashboard.html', files=Config.files.find({"userid": current_user.userid}), urls=Config.url.find({"userid": current_user.userid}), title="Dashboard")
|
||||||
|
|
||||||
@app.route('/<id>')
|
@app.route('/<id>')
|
||||||
def getData(id):
|
def getData(id):
|
||||||
|
@ -162,7 +162,7 @@ def getInfo(id):
|
||||||
|
|
||||||
return worker.idInfo(id)
|
return worker.idInfo(id)
|
||||||
|
|
||||||
@app.route('/<id>/delete')
|
@app.route('/<id>/delete', methods=["POST"])
|
||||||
@login_required
|
@login_required
|
||||||
def delete(id):
|
def delete(id):
|
||||||
if Config.files.find_one({"id": id}) is not None:
|
if Config.files.find_one({"id": id}) is not None:
|
||||||
|
|
Loading…
Reference in a new issue