Custom themes (#131)

* Adding preliminary custom themes

* Fixing Windows compatibility

https://github.com/pallets/jinja/issues/411

* Fixing template reloading and adding UI to change themes

* Explicitly closing db connections

* Themes now have custom static folders

* Closes #128
This commit is contained in:
Kevin Chung
2016-07-22 02:46:14 -04:00
committed by GitHub
parent e31b502729
commit b05f6152d3
107 changed files with 195 additions and 103 deletions

View File

@@ -50,7 +50,7 @@ def setup():
## Index page
page = Pages('index', """<div class="container main-container">
<img class="logo" src="{0}/static/img/logo.png" />
<img class="logo" src="{0}/static/original/img/logo.png" />
<h3 class="text-center">
Welcome to a cool CTF framework written by <a href="https://github.com/ColdHeat">Kevin Chung</a> of <a href="https://github.com/isislab">@isislab</a>
</h3>
@@ -88,6 +88,7 @@ def setup():
db.session.add(page)
db.session.add(admin)
db.session.commit()
db.session.close()
app.setup = False
return redirect(url_for('views.static_html'))
return render_template('setup.html', nonce=session.get('nonce'))