-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a basic search to finished tests and rename URL parameters
- Loading branch information
Showing
9 changed files
with
71 additions
and
50 deletions.
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
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 |
---|---|---|
@@ -1,32 +1,44 @@ | ||
<%inherit file="base.mak"/> | ||
<% | ||
title = "" | ||
if "ltc_only" in request.url: | ||
title += " - LTC" | ||
if "success_only" in request.url: | ||
title += " - Greens" | ||
if "yellow_only" in request.url: | ||
title += " - Yellows" | ||
%> | ||
|
||
<script> | ||
document.title = 'Finishes Test${title} | Stockfish Testing'; | ||
document.title = 'Finished Tests | Stockfish Testing'; | ||
</script> | ||
|
||
<h2> | ||
Finished Tests | ||
% if 'success_only' in request.url: | ||
- Greens | ||
% elif 'yellow_only' in request.url: | ||
- Yellows | ||
% elif 'ltc_only' in request.url: | ||
- LTC | ||
% endif | ||
</h2> | ||
|
||
<form class="row mb-3"> | ||
<div class="col-12 col-md-auto mb-3"> | ||
<label for="tc" class="form-label">Time control</label> | ||
<select id="tc" class="form-select" name="tc"> | ||
<option value="">All</option> | ||
<option value="stc" ${"selected" if request.GET.get('tc') == "stc" else ''}>STC</option> | ||
<option value="ltc" ${"selected" if request.GET.get('tc') == "ltc" else ''}>LTC</option> | ||
</select> | ||
</div> | ||
|
||
<div class="col-12 col-md-auto mb-3"> | ||
<label for="status" class="form-label">Status</label> | ||
<select id="status" class="form-select" name="status"> | ||
<option value="">All</option> | ||
<option value="yellow" ${"selected" if request.GET.get('status') == "yellow" else ''}>Yellow</option> | ||
<option value="green" ${"selected" if request.GET.get('status') == "green" else ''}>Green</option> | ||
</select> | ||
</div> | ||
|
||
<div class="col-12 col-md-auto mb-3"> | ||
<label for="info" class="form-label">Info</label> | ||
<input id="info" type="text" name="info" class="form-control" placeholder="Run info" value="${request.GET.get('info') if request.GET.get('info') is not None else ''}"> | ||
</div> | ||
|
||
<div class="col-12 col-md-auto mb-3 d-flex align-items-end"> | ||
<button type="submit" class="btn btn-success w-100">Search</button> | ||
</div> | ||
</form> | ||
|
||
<%include file="run_table.mak" args="runs=finished_runs, | ||
header='Finished', | ||
count=num_finished_runs, | ||
pages=finished_runs_pages, | ||
title=title" | ||
pages=finished_runs_pages" | ||
/> |
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