mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 22:14:25 +01:00
Remove usage of get_config in core theme
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{ get_ctf_name() }}</title>
|
||||
<title>{{ Configs.ctf_name }}</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="shortcut icon" href="{{ url_for('views.themes', path='img/favicon.ico') }}" type="image/x-icon">
|
||||
@@ -16,10 +16,10 @@
|
||||
var init = {
|
||||
'urlRoot': "{{ request.script_root }}",
|
||||
'csrfNonce': "{{ nonce }}",
|
||||
'userMode': "{{ get_config('user_mode') }}",
|
||||
'userMode': "{{ Configs.user_mode }}",
|
||||
'userId': {{ id if (id is defined) else 0 }},
|
||||
'start': {{ get_config("start") | tojson }},
|
||||
'end': {{ get_config("end") | tojson }},
|
||||
'start': {{ Configs.start | tojson }},
|
||||
'end': {{ Configs.end | tojson }},
|
||||
}
|
||||
</script>
|
||||
{{ Configs.theme_header }}
|
||||
|
||||
@@ -34,11 +34,11 @@
|
||||
{{ standing.name | truncate(50) }}
|
||||
|
||||
{% if standing.oauth_id %}
|
||||
{% if get_config('user_mode') == 'teams' %}
|
||||
{% if Configs.user_mode == 'teams' %}
|
||||
<a href="https://majorleaguecyber.org/t/{{ standing.name }}">
|
||||
<span class="badge badge-primary">Official</span>
|
||||
</a>
|
||||
{% elif get_config('user_mode') == 'users' %}
|
||||
{% elif Configs.user_mode == 'users' %}
|
||||
<a href="https://majorleaguecyber.org/u/{{ standing.name }}">
|
||||
<span class="badge badge-primary">Official</span>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user