Remove usage of get_config in core theme

This commit is contained in:
Kevin Chung
2020-06-03 01:15:45 -04:00
parent 8313ccb443
commit 423cbf8dc0
2 changed files with 6 additions and 6 deletions

View File

@@ -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 }}

View File

@@ -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>