-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #341 from aiarena/staging
Release v1.6.3
- Loading branch information
Showing
5 changed files
with
77 additions
and
1 deletion.
There are no files selected for viewing
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,55 @@ | ||
{% extends "base.html" %} | ||
{% load i18n %} | ||
|
||
{% block content %} | ||
|
||
<div class="divider"><span></span><span><h2>Bots</h2></span><span></span></div> | ||
<h3 style="float: right; margin-right: 75px;"> | ||
<a href="{% url 'bots'%}">Display all bots</a> | ||
</h3> | ||
<table summary="Table containing bots information" id="botsTable" class="row-hover-highlight"> | ||
<thead> | ||
<td><strong>Name</strong></td> | ||
<td><strong>Author</strong></td> | ||
<td><strong>Race</strong></td> | ||
<td><strong>Type</strong></td> | ||
</thead> | ||
<tbody> | ||
{% for bot in bot_list %} | ||
<tr> | ||
<td>{{ bot.as_html_link }}</td> | ||
<td>{{ bot.user.as_html_link }}</td> | ||
<td>{{ bot.get_plays_race_display }}</td> | ||
<td>{{ bot.type }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
<div class="pagination"> | ||
{% if is_paginated %} | ||
<ul class="pagination"> | ||
{% if page_obj.has_previous %} | ||
<li> | ||
<a href="?page={{ bot_list.page_obj }}">«</a> | ||
</li> | ||
{% else %} | ||
<li class="disabled"><span>«</span></li> | ||
{% endif %} | ||
{% for page_num in page_range %} | ||
{% if page_obj.number == page_num %} | ||
<li class="active"><span>{{ page_num }}</span></li> | ||
{% else %} | ||
<li><a href="?page={{ page_num }}">{{ page_num }}</a></li> | ||
{% endif %} | ||
{% endfor %} | ||
{% if page_obj.has_next %} | ||
<li><a href="?page={{ page_obj.next_page_number }}">»</a> | ||
</li> | ||
{% else %} | ||
<li class="disabled"><span>»</span></li> | ||
{% endif %} | ||
</ul> | ||
{% endif %} | ||
</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
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