-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Merge pull request #37 from denvilk-bsuir/feature/TS-80-added-contest…
…s-list TS-80: Added view for contest list
Showing
10 changed files
with
220 additions
and
17 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{% extends "wrapper.html" %} | ||
{% load i18n %} | ||
|
||
{% block title %} | ||
{% trans "ContestsList" %} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div class="container"> | ||
<div class="row"> | ||
<table class="table table-striped"> | ||
<thead> | ||
<tr> | ||
<th>#</th> | ||
<th>{% trans "ItemName" %}</th> | ||
<th>{% trans "ItemType" %}</th> | ||
<th>{% trans "Status" %}</th> | ||
<th>{% trans "Link" %}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% if contests %} | ||
{% for contest in contests %} | ||
<tr> | ||
<td>{{contest.pk}}</td> | ||
<td>{{contest.name}}</td> | ||
<td>{{contest.type.name}}</td> | ||
<td>{{contest.status.value.1}}</td> | ||
<td><a href="{% url 'contest_detail' contest.pk %}">{% trans 'Link' %}</a></td> | ||
</tr> | ||
{% endfor %} | ||
{% else %} | ||
{% trans "Empty" %} | ||
{% endif %} | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters