File tree Expand file tree Collapse file tree 5 files changed +33
-44
lines changed
simpleui/templates/simpleui
teachers/templates/teachers/simpleui Expand file tree Collapse file tree 5 files changed +33
-44
lines changed Original file line number Diff line number Diff line change 29
29
< div class ="contest ">
30
30
< header class ="contest__header ">
31
31
< h1 class ="inline-menu__name contest__name "> {{ contest }}</ h1 >
32
- < div class ="inline-menu ">
32
+ < nav class ="inline-menu nav d-inline-flex ">
33
33
{% block contest-top-menu %}
34
- < a href ="{% url 'default_ranking' %} "> {% trans "Ranking" %}</ a >
35
- |
36
- < a href ="{% url 'admin:contests_contest_change' contest.id %} "> {% trans "Settings" %}</ a >
34
+ < a class ="nav-link " href ="{% url 'problems_list' %} "> {% trans "Problems" %}</ a >
35
+ < a class ="nav-link " href ="{% url 'dashboard_message_edit' %} "> {% trans "Edit dashboard message" %}</ a >
36
+ < a class ="nav-link " href ="{% url 'default_ranking' %} "> {% trans "Ranking" %}</ a >
37
+ < a class ="nav-link " href ="{% url 'admin:contests_contest_change' contest.id %} "> {% trans "Settings" %}</ a >
37
38
{% endblock %}
38
- </ div >
39
+ </ nav >
39
40
</ header >
40
41
41
42
< section class ="contest__rounds ">
@@ -51,6 +52,8 @@ <h2 class="inline-menu__name">{% trans "Rounds" %}</h2>
51
52
< p > {% trans "There are no rounds in this contest." %}</ p >
52
53
{% endif %}
53
54
</ section >
55
+
56
+ < a href ="{% url 'admin:contests_probleminstance_changelist' %} "> {% trans "All problem settings" %}</ a >
54
57
</ section >
55
58
56
59
< section class ="contest__submissions ">
@@ -73,4 +76,4 @@ <h2 class="inline-menu__name">{% trans "Questions and news" %}</h2>
73
76
</ div >
74
77
</ section >
75
78
</ div >
76
- {% endblock %}
79
+ {% endblock %}
Original file line number Diff line number Diff line change 11
11
{% endfor %}
12
12
</ div >
13
13
</ div >
14
- < div class ="round__menu ">
15
- < a href ="{% url 'oioioiadmin:problems_problem_add' %} "> {% trans "Add a problem" %}</ a >
16
- |
17
- < a href ="{% url 'admin:contests_contest_change' contest.id %} "> {% trans "Settings" %}</ a >
18
- </ div >
14
+ < nav class ="nav round__menu d-inline-flex ">
15
+ < a class ="nav-link " href ="{% url 'oioioiadmin:problems_problem_add' %} "> {% trans "Add a problem" %}</ a >
16
+ < a class ="nav-link " href ="{% url 'admin:contests_contest_change' contest.id %} "> {% trans "Settings" %}</ a >
17
+ </ nav >
19
18
</ div >
20
19
21
20
< div class ="round__problems ">
34
33
Recent activity is activity from last {{ RECENT_ACTIVITY_DAYS }} days.
35
34
{% endblocktrans %}
36
35
</ small >
37
- </ p >
36
+ </ p >
Original file line number Diff line number Diff line change 17
17
< div class ="contest ">
18
18
< header class ="contest__header ">
19
19
< h1 class ="inline-menu__name contest__name "> {% block dashboard-name %}{% trans "User dashboard" %}{% endblock %}</ h1 >
20
- {% block dashboard-top-menu %}
21
- {% if can_create_contest %}
22
- < div class ="inline-menu ">
23
- < a href ="{% url 'oioioiadmin:contests_contest_add' %} "> {% trans "Create contest" %}</ a >
24
- |
25
- </ div >
26
- {% endif %}
27
- {% if has_portal %}
28
- < div class ="inline-menu ">
29
- < a href ="{% url 'global_portal' link_name='default' portal_path=portal_path %} ">
20
+ < nav class ="inline-menu nav d-inline-flex ">
21
+ {% block dashboard-top-menu %}
22
+ {% if can_create_contest %}
23
+ < a class ="nav-link " href ="{% url 'oioioiadmin:contests_contest_add' %} "> {% trans "Create contest" %}</ a >
24
+ {% endif %}
25
+ {% if has_portal %}
26
+ < a class ="nav-link " href ="{% url 'global_portal' link_name='default' portal_path=portal_path %} ">
30
27
{% trans "Homepage" %}
31
28
</ a >
32
- </ div >
33
- {% endif %}
34
- < div class ="inline-menu ">
35
- |
36
- < a href ="{% url 'problemset_main' %} ">
37
- {% trans "Problemset" %}
38
- </ a >
39
- </ div >
40
- {% endblock %}
29
+ {% endif %}
30
+ < a class ="nav-link " href ="{% url 'problemset_main' %} ">
31
+ {% trans "Problemset" %}
32
+ </ a >
33
+ {% endblock %}
34
+ </ nav >
41
35
</ header >
42
36
< script type ="text/javascript " src ="{% static 'js/highcharts.js' %} "> </ script >
43
37
{% if contests|length == 0 %}
Original file line number Diff line number Diff line change 2
2
{% load i18n %}
3
3
4
4
{% block contest-top-menu %}
5
- < div class ="inline-menu ">
6
- < a href ="{% url 'show_members' member_type='pupil' %} "> {% trans "Pupils" %}</ a >
7
- |
8
- < a href ="{% url 'show_members' member_type='teacher' %} "> {% trans "Teachers" %}</ a >
9
- |
10
- {{ block.super }}
11
- </ div >
5
+ {{ block.super }}
6
+ < a class ="nav-link " href ="{% url 'show_members' member_type='pupil' %} "> {% trans "Pupils" %}</ a >
7
+ < a class ="nav-link " href ="{% url 'show_members' member_type='teacher' %} "> {% trans "Teachers" %}</ a >
12
8
{% endblock %}
Original file line number Diff line number Diff line change 8
8
{% block dashboard-top-menu %}
9
9
{{ block.super }}
10
10
{% if usergroups_active %}
11
- < div class ="inline-menu ">
12
- |
13
- < a href ="{% url 'teacher_usergroups_list' %} ">
14
- {% trans "Your user groups" %}
15
- </ a >
16
- </ div >
11
+ < a class ="nav-link " href ="{% url 'teacher_usergroups_list' %} ">
12
+ {% trans "Your user groups" %}
13
+ </ a >
17
14
{% endif %}
18
15
{% endblock %}
You can’t perform that action at this time.
0 commit comments