mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-24 01:04:20 +01:00
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:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user