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
4d8e68d4
Commit
4d8e68d4
authored
4 years ago
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
Zapomenutá šablona pro předchozí commit
parent
c9956d4e
No related branches found
No related tags found
1 merge request
!9
WIP: Zárodek uživatelské části webu a submitování
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mo/web/templates/org_submit_list.html
+81
-0
81 additions, 0 deletions
mo/web/templates/org_submit_list.html
with
81 additions
and
0 deletions
mo/web/templates/org_submit_list.html
0 → 100644
+
81
−
0
View file @
4d8e68d4
{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% block body %}
<h2>
<a
href=
'{{ url_for('
org_round
',
id=
sc.contest.round_id)
}}'
>
Kolo {{ sc.contest.round.round_code() }}
</a>
{% if for_site %}
{# FIXME: Odkaz na stránku místa #}
» místo
<a
href=
"{{ url_for('org_contest', id=sc.contest.contest_id) }}"
>
{{ pion.place.name }}
</a>
{% else %}
»
<a
href=
"{{ url_for('org_contest', id=sc.contest.contest_id) }}"
>
{{ sc.contest.place.name }}
</a>
{% endif %}
» {{ sc.user.full_name() }}
» {{ sc.task.code }}
</h2>
<h3>
Odevzdaná řešení
</h3>
{% if sol_papers %}
<table
class=
data
>
<thead>
<tr>
<th>
Čas odevzdání
<th>
Stránek
<th>
Bajtů
<th>
Odevzdal
<th>
Poznámka
<th>
Akce
<tbody>
{% if solution %}
{% set active_sol_id = solution.last_submit %}
{% else %}
{% set active_sol_id = None %}
{% endif %}
{% for p in sol_papers %}
<tr
{%
if
p.paper_id =
=
active_sol_id
%}
class=
'sol-active'
{%
endif
%}
>
{# FIXME: Zvýrazňovat pozdní #}
<td>
{{ p.uploaded_at|timeformat }}
<td>
{{ p.pages }}
<td>
{{ p.bytes }}
<td>
{{ p.uploaded_by_obj.full_name() }}
<td>
{{ p.note }}
<td><a
class=
'btn btn-xs btn-primary'
href=
'{{ url_for('
org_submit_paper
',
contest_id=
sc.contest.contest_id,
paper_id=
p.paper_id,
site_id=
(pion.place.place_id
if
for_site
else
None
))
}}'
>
Stáhnout
</a>
{% endfor %}
</table>
{% else %}
<p>
Žádná.
{% endif %}
<h3>
Opravená řešení
</h3>
{% if fb_papers %}
<table
class=
data
>
<thead>
<tr>
<th>
Čas odevzdání
<th>
Stránek
<th>
Bajtů
<th>
Odevzdal
<th>
Poznámka
<th>
Akce
<tbody>
{% if solution %}
{% set active_fb_id = solution.last_feedback %}
{% else %}
{% set active_fb_id = None %}
{% endif %}
{% for p in fb_papers %}
<tr
{%
if
p.paper_id =
=
active_fb_id
%}
class=
'sol-active'
{%
endif
%}
>
<td>
{{ p.uploaded_at|timeformat }}
<td>
{{ p.pages }}
<td>
{{ p.bytes }}
<td>
{{ p.uploaded_by_obj.full_name() }}
<td>
{{ p.note }}
<td><a
class=
'btn btn-xs btn-primary'
href=
'{{ url_for('
org_submit_paper
',
contest_id=
sc.contest.contest_id,
paper_id=
p.paper_id,
site_id=
(pion.place.place_id
if
for_site
else
None
))
}}'
>
Stáhnout
</a>
{% endfor %}
</table>
{% else %}
<p>
Žádná.
{% endif %}
{% endblock %}
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