Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odevzdávací Systém MO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Odevzdávací Systém MO
Commits
3a736e69
Commit
3a736e69
authored
3 years ago
by
Jan Prachař
Browse files
Options
Downloads
Patches
Plain Diff
user: Lepší UX
parent
8c2b62fe
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
mo/web/templates/user_contest.html
+3
-3
3 additions, 3 deletions
mo/web/templates/user_contest.html
mo/web/templates/user_index.html
+15
-8
15 additions, 8 deletions
mo/web/templates/user_index.html
mo/web/templates/user_join_list.html
+2
-3
2 additions, 3 deletions
mo/web/templates/user_join_list.html
with
20 additions
and
14 deletions
mo/web/templates/user_contest.html
+
3
−
3
View file @
3a736e69
...
@@ -18,13 +18,13 @@
...
@@ -18,13 +18,13 @@
{% if round.ct_tasks_start is not none %}
{% if round.ct_tasks_start is not none %}
{% if round.ct_submit_end is not none %}
{% if round.ct_submit_end is not none %}
<p
class=
"small"
>
Od {{ round.ct_tasks_start|timeformat }} do {{ round.ct_submit_end|timeformat }}.
</i></p>
<p
class=
"small"
>
<span
class=
"glyphicon glyphicon-time"
></span>
Od {{ round.ct_tasks_start|timeformat }} do {{ round.ct_submit_end|timeformat }}.
</i></p>
{% else %}
{% else %}
<p
class=
"small"
>
Od {{ round.ct_tasks_start|timeformat }}.
</i></p>
<p
class=
"small"
>
<span
class=
"glyphicon glyphicon-time"
></span>
Od {{ round.ct_tasks_start|timeformat }}.
</i></p>
{% endif %}
{% endif %}
{% else %}
{% else %}
{% if round.ct_submit_end is not none %}
{% if round.ct_submit_end is not none %}
<p
class=
"small"
>
Do {{ round.ct_submit_end|timeformat }}.
</i></p>
<p
class=
"small"
>
<span
class=
"glyphicon glyphicon-time"
></span>
Do {{ round.ct_submit_end|timeformat }}.
</i></p>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
...
...
This diff is collapsed.
Click to expand it.
mo/web/templates/user_index.html
+
15
−
8
View file @
3a736e69
...
@@ -35,22 +35,26 @@
...
@@ -35,22 +35,26 @@
<p>
{{round.name}} {{ contest.ct_long_state()|replace("opravuje se", "se opravuje")|replace("připravuje se", "se připravuje") }}.
<p>
{{round.name}} {{ contest.ct_long_state()|replace("opravuje se", "se opravuje")|replace("připravuje se", "se připravuje") }}.
<p>
<p>
{% if contest.ct_task_statement_available() %}
{% if contest.ct_task_statement_available() %}
<a
class=
'btn btn-
success
'
href=
'{{ url_for('
user_task_statement
',
id=
contest.contest_id)
}}'
>
<a
class=
'btn btn-
default
'
href=
'{{ url_for('
user_task_statement
',
id=
contest.contest_id)
}}'
>
<span
class=
"glyphicon glyphicon-file"
></span>
<span
class=
"glyphicon glyphicon-file"
></span>
Zadání
Zadání
</a>
</a>
{% endif %}
{% endif %}
<a
class=
'btn btn-primary'
href=
'{{ url_for('
user_contest
',
id=
contest.contest_id)
}}'
>
<a
href=
'{{ url_for('
user_contest
',
id=
contest.contest_id)
}}'
{%
if
state =
=
RoundState.running
%}
{%
if
state =
=
RoundState.running
%}
class=
"btn btn-success"
>
<span
class=
"glyphicon glyphicon-send"
></span>
<span
class=
"glyphicon glyphicon-send"
></span>
Odevzdat řešení
Odevzdat řešení
{% elif state == RoundState.grading %}
{% elif state == RoundState.grading %}
class="btn btn-info">
<span
class=
"glyphicon glyphicon-duplicate"
></span>
<span
class=
"glyphicon glyphicon-duplicate"
></span>
Odevzdaná řešení
Odevzdaná řešení
{% elif state == RoundState.closed %}
{% elif state == RoundState.closed %}
class="btn btn-primary">
<span
class=
"glyphicon glyphicon-eye-open"
></span>
<span
class=
"glyphicon glyphicon-eye-open"
></span>
Prohlédnout opravy
Prohlédnout opravy
{% else %}
{% else %}
class="btn btn-default">
<span
class=
"glyphicon glyphicon-search"
></span>
<span
class=
"glyphicon glyphicon-search"
></span>
Detail kola
Detail kola
{% endif %}
{% endif %}
...
@@ -68,13 +72,16 @@
...
@@ -68,13 +72,16 @@
<p>
Momentálně se neúčastníte žádného kola FO.
<p>
Momentálně se neúčastníte žádného kola FO.
{% endif %}
{% endif %}
<p>
<a
class=
"btn btn-primary"
href=
"{{ url_for('user_join') }}"
>
<p>
{% if pions %}
{% if pions %}
<a
class=
"btn btn-default"
href=
"{{ url_for('user_join') }}"
>
Přihlásit se do dalšího kola
Přihlásit se do dalšího kola
</a>
{% else %}
{% else %}
<a
class=
"btn btn-primary"
href=
"{{ url_for('user_join') }}"
>
Přihlásit se do {{current_year}}. ročníku FO
Přihlásit se do {{current_year}}. ročníku FO
{% endif %}
</a>
</a>
{% endif %}
<h3>
Jak bude probíhat odevzdávání?
</h3>
<h3>
Jak bude probíhat odevzdávání?
</h3>
...
...
This diff is collapsed.
Click to expand it.
mo/web/templates/user_join_list.html
+
2
−
3
View file @
3a736e69
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
{% block body %}
{% block body %}
{% if available_rounds %}
{% if available_rounds %}
<p>
Zde si můžete vybrat, do kterých k
ol
Fyzikální olympiády se přihlásíte.
<p>
Zde si můžete vybrat, do kterých k
ategorií
Fyzikální olympiády se přihlásíte.
<table
class=
"table table-striped"
>
<table
class=
"table table-striped"
>
<thead>
<thead>
...
@@ -30,8 +30,7 @@
...
@@ -30,8 +30,7 @@
{% endfor %}
{% endfor %}
</table>
</table>
{% else %}
{% else %}
<p>
V tomto školním roce zatím nejsou otevřené žádné kategorie olympiády.
<p>
V tuto chvíli nejsou otevřené žádné kategorie Fyzikální olympiády k přihlašování.
Zkuste to prosím později.
{% endif %}
{% endif %}
{% if pcrs_by_round_id %}
{% if pcrs_by_round_id %}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment