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
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 @@
{% if round.ct_tasks_start 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 %}
<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 %}
{% else %}
{% 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 %}
...
...
This diff is collapsed.
Click to expand it.
mo/web/templates/user_index.html
+
15
−
8
View file @
3a736e69
...
...
@@ -35,22 +35,26 @@
<p>
{{round.name}} {{ contest.ct_long_state()|replace("opravuje se", "se opravuje")|replace("připravuje se", "se připravuje") }}.
<p>
{% 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>
Zadání
</a>
{% 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
%}
class=
"btn btn-success"
>
<span
class=
"glyphicon glyphicon-send"
></span>
Odevzdat řešení
{% elif state == RoundState.grading %}
class="btn btn-info">
<span
class=
"glyphicon glyphicon-duplicate"
></span>
Odevzdaná řešení
{% elif state == RoundState.closed %}
class="btn btn-primary">
<span
class=
"glyphicon glyphicon-eye-open"
></span>
Prohlédnout opravy
{% else %}
class="btn btn-default">
<span
class=
"glyphicon glyphicon-search"
></span>
Detail kola
{% endif %}
...
...
@@ -68,13 +72,16 @@
<p>
Momentálně se neúčastníte žádného kola FO.
{% endif %}
<p>
<a
class=
"btn btn-primary"
href=
"{{ url_for('user_join') }}"
>
<p>
{% if pions %}
<a
class=
"btn btn-default"
href=
"{{ url_for('user_join') }}"
>
Přihlásit se do dalšího kola
</a>
{% else %}
<a
class=
"btn btn-primary"
href=
"{{ url_for('user_join') }}"
>
Přihlásit se do {{current_year}}. ročníku FO
{% endif %}
</a>
{% endif %}
<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 @@
{% block body %}
{% 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"
>
<thead>
...
...
@@ -30,8 +30,7 @@
{% endfor %}
</table>
{% else %}
<p>
V tomto školním roce zatím nejsou otevřené žádné kategorie olympiády.
Zkuste to prosím později.
<p>
V tuto chvíli nejsou otevřené žádné kategorie Fyzikální olympiády k přihlašování.
{% endif %}
{% 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