Use relative paths and fix endlines (#82)
The "OpenBench Testing Framework" link is hardcoded to point to chess.grantnet.us. Modify so it points to the root of the current domain. Also fixes CRLF endlines of base.html and index.html
This commit is contained in:
1 parent
13b364206d
commit
4885a1c2d4
2 files changed
+113
-113
No files matched your search
@@ -1,73 +1,73 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<link rel="stylesheet" href="{% static 'style.css' %}">
|
<link rel="stylesheet" href="{% static 'style.css' %}">
|
||||||
<link rel="icon" type="image/svg+xml" href="{% static 'logo.svg' %}">
|
<link rel="icon" type="image/svg+xml" href="{% static 'logo.svg' %}">
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,400;1,100&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,400;1,100&display=swap" rel="stylesheet">
|
||||||
<title>OpenBench</title>
|
<title>OpenBench</title>
|
||||||
<script>
|
<script>
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<!-- Views may return an error message -->
|
<!-- Views may return an error message -->
|
||||||
{% if error %}
|
{% if error %}
|
||||||
<div id="error">
|
<div id="error">
|
||||||
<pre>{{error}}</pre>
|
<pre>{{error}}</pre>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div id="sidebar">
|
<div id="sidebar">
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li class="header">ADMIN</li>
|
<li class="header">ADMIN</li>
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
<li><a href="/logout/">Logout</a></li>
|
<li><a href="/logout/">Logout</a></li>
|
||||||
<li><a href="/profile/">Profile</a></li>
|
<li><a href="/profile/">Profile</a></li>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li><a href="/login">Login </a></li>
|
<li><a href="/login">Login </a></li>
|
||||||
<li><a href="/register">Register</a></li>
|
<li><a href="/register">Register</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li class="header">TESTS</li>
|
<li class="header">TESTS</li>
|
||||||
<li><a href="/index">Index</a></li>
|
<li><a href="/index">Index</a></li>
|
||||||
<li><a href="/greens">Greens</a></li>
|
<li><a href="/greens">Greens</a></li>
|
||||||
<li><a href="/search">Search</a></li>
|
<li><a href="/search">Search</a></li>
|
||||||
<li><a href="/newTest">New Test</a></li>
|
<li><a href="/newTest">New Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li class="header">INFO</li>
|
<li class="header">INFO</li>
|
||||||
<li><a href="/users">Users</a></li>
|
<li><a href="/users">Users</a></li>
|
||||||
<li><a href="/events">Events</a></li>
|
<li><a href="/events">Events</a></li>
|
||||||
<li><a href="/machines">Machines</a></li>
|
<li><a href="/machines">Machines</a></li>
|
||||||
<li><a href="{{config.framework}}">OpenBench</a></li>
|
<li><a href="{{config.framework}}">OpenBench</a></li>
|
||||||
<li><a href="https://discord.gg/HNXsgfS">Discord</a></li>
|
<li><a href="https://discord.gg/HNXsgfS">Discord</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li class="header">ENGINES</li>
|
<li class="header">ENGINES</li>
|
||||||
{% for engine, data in config.engines.items|dictsort:"0.lower" %}
|
{% for engine, data in config.engines.items|dictsort:"0.lower" %}
|
||||||
<li><a href="{{data.source}}">{{engine}}</a></li>
|
<li><a href="{{data.source}}">{{engine}}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<h2> <a class = "TitleLink" href = "http://chess.grantnet.us/"> OpenBench Testing Framework </a> </h2>
|
<h2> <a class = "TitleLink" href = "/"> OpenBench Testing Framework </a> </h2>
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -1,40 +1,40 @@
|
|||||||
{% extends "OpenBench/base.html" %}
|
{% extends "OpenBench/base.html" %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<table class="datatable">
|
<table class="datatable">
|
||||||
|
|
||||||
<!-- Only show Pending tests for the front page of the Index -->
|
<!-- Only show Pending tests for the front page of the Index -->
|
||||||
{% if paging.page == 1 %}
|
{% if paging.page == 1 %}
|
||||||
|
|
||||||
<!-- Currently Pending tests (Waiting to be approved) -->
|
<!-- Currently Pending tests (Waiting to be approved) -->
|
||||||
{% if pending %}
|
{% if pending %}
|
||||||
<tr><th colspan='6'>Pending</th></tr>
|
<tr><th colspan='6'>Pending</th></tr>
|
||||||
{% for test in pending %}
|
{% for test in pending %}
|
||||||
{% include "OpenBench/Blocks/testsummary.html" %}
|
{% include "OpenBench/Blocks/testsummary.html" %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<tr class="table-spacer"><th></th></tr>
|
<tr class="table-spacer"><th></th></tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<!-- Currently Running tests (Waiting to be completed) -->
|
<!-- Currently Running tests (Waiting to be completed) -->
|
||||||
{% if active %}
|
{% if active %}
|
||||||
<tr><th colspan='6'>Active {{status}}</th></tr>
|
<tr><th colspan='6'>Active {{status}}</th></tr>
|
||||||
{% for test in active %}
|
{% for test in active %}
|
||||||
{% include "OpenBench/Blocks/testsummary.html" %}
|
{% include "OpenBench/Blocks/testsummary.html" %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<tr class="table-spacer"><th></th></tr>
|
<tr class="table-spacer"><th></th></tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<!-- Tests which have already finished -->
|
<!-- Tests which have already finished -->
|
||||||
<tr><th colspan='6'>Finished</th></tr>
|
<tr><th colspan='6'>Finished</th></tr>
|
||||||
{% for test in completed %}
|
{% for test in completed %}
|
||||||
{% include "OpenBench/Blocks/testsummary.html" %}
|
{% include "OpenBench/Blocks/testsummary.html" %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
{% include "OpenBench/Blocks/pagebrowser.html" %}
|
{% include "OpenBench/Blocks/pagebrowser.html" %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
Reference in new issue
Block a user