mirror of https://github.com/JohnHammond/CTFd.git
Custom CTF Name
parent
c26d0924bf
commit
0179fa7115
|
@ -23,6 +23,12 @@ def init_utils(app):
|
|||
app.jinja_env.globals.update(pages=pages)
|
||||
app.jinja_env.globals.update(can_register=can_register)
|
||||
app.jinja_env.globals.update(mailserver=mailserver)
|
||||
app.jinja_env.globals.update(ctf_name=ctf_name())
|
||||
|
||||
|
||||
def ctf_name():
|
||||
name = get_config('ctf_name')
|
||||
return name if name else 'CTF'
|
||||
|
||||
|
||||
def pages():
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<title>{{ ctf_name }} - </title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="shortcut icon" href="/static/img/favicon.ico" type="image/x-icon">
|
||||
|
@ -17,7 +17,7 @@
|
|||
<nav class="top-bar" data-topbar>
|
||||
<ul class="title-area">
|
||||
<li class="name">
|
||||
<h1><a href="/">CTF</a></h1>
|
||||
<h1><a href="/">{{ ctf_name|upper }}</a></h1>
|
||||
</li>
|
||||
<li class="toggle-topbar menu-icon"><a href="#">Menu</a></li>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue