Prettified the website (#76)

This commit is contained in:
jtseng20 authored and GitHub committed 2020-09-04 00:23:24 -04:00
1 parent 9fa5c92fc9
commit 191b9a150d
5 files changed
+540 -378

No files matched your search

+72 -69
View File
@@ -1,69 +1,72 @@
<!DOCTYPE html>
<html lang="en">
{% load static %}
<head>
<link rel="stylesheet" href="{% static 'style.css' %}">
<title>OpenBench</title>
<script>
{% block scripts %}
{% endblock %}
</script>
</head>
<body>
<!-- Views may return an error message -->
{% if error %}
<div id="error">
<pre>{{error}}</pre>
</div>
{% endif %}
<div id="sidebar">
<ul>
<li class="header">ADMIN</li>
{% if user.is_authenticated %}
<li><a href="/logout/">Logout</a></li>
<li><a href="/profile/">Profile</a></li>
{% else %}
<li><a href="/login">Login </a></li>
<li><a href="/register">Register</a></li>
{% endif %}
</ul>
<ul>
<li class="header">TESTS</li>
<li><a href="/index">Index</a></li>
<li><a href="/greens">Greens</a></li>
<li><a href="/search">Search</a></li>
<li><a href="/newTest">New Test</a></li>
</ul>
<ul>
<li class="header">INFO</li>
<li><a href="/users">Users</a></li>
<li><a href="/events">Events</a></li>
<li><a href="/machines">Machines</a></li>
<li><a href="{{config.framework}}">OpenBench</a></li>
</ul>
<ul>
<li class="header">ENGINES</li>
{% for engine, data in config.engines.items|dictsort:"0.lower" %}
<li><a href="{{data.source}}">{{engine}}</a></li>
{% endfor %}
</ul>
</div>
<div id="content">
{% block content %}
{% endblock %}
</div>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
{% load static %}
<head>
<link rel="stylesheet" href="{% static 'style.css' %}">
<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&amp;display=swap" rel="stylesheet">
<title>OpenBench</title>
<script>
{% block scripts %}
{% endblock %}
</script>
</head>
<body>
<!-- Views may return an error message -->
{% if error %}
<div id="error">
<pre>{{error}}</pre>
</div>
{% endif %}
<div id="sidebar">
<ul>
<li class="header">ADMIN</li>
{% if user.is_authenticated %}
<li><a href="/logout/">Logout</a></li>
<li><a href="/profile/">Profile</a></li>
{% else %}
<li><a href="/login">Login </a></li>
<li><a href="/register">Register</a></li>
{% endif %}
</ul>
<ul>
<li class="header">TESTS</li>
<li><a href="/index">Index</a></li>
<li><a href="/greens">Greens</a></li>
<li><a href="/search">Search</a></li>
<li><a href="/newTest">New Test</a></li>
</ul>
<ul>
<li class="header">INFO</li>
<li><a href="/users">Users</a></li>
<li><a href="/events">Events</a></li>
<li><a href="/machines">Machines</a></li>
<li><a href="{{config.framework}}">OpenBench</a></li>
</ul>
<ul>
<li class="header">ENGINES</li>
{% for engine, data in config.engines.items|dictsort:"0.lower" %}
<li><a href="{{data.source}}">{{engine}}</a></li>
{% endfor %}
</ul>
</div>
<div id="content">
<h2> <a class = "TitleLink" href = "http://chess.grantnet.us/"> OpenBench Testing Framework </a> </h2>
{% block content %}
{% endblock %}
</div>
</body>
</html>
+40 -40
View File
@@ -1,40 +1,40 @@
{% extends "OpenBench/base.html" %}
{% block content %}
<table class="datatable">
<!-- Only show Pending tests for the front page of the Index -->
{% if paging.page == 1 %}
<!-- Currently Pending tests (Waiting to be approved) -->
{% if pending %}
<tr><th colspan='6'>Pending</th></tr>
{% for test in pending %}
{% include "OpenBench/Blocks/testsummary.html" %}
{% endfor %}
<tr class="table-spacer"><th></th></tr>
{% endif %}
<!-- Currently Running tests (Waiting to be completed) -->
{% if active %}
<tr><th colspan='6'>Active {{status}}</th></tr>
{% for test in active %}
{% include "OpenBench/Blocks/testsummary.html" %}
{% endfor %}
<tr class="table-spacer"><th></th></tr>
{% endif %}
{% endif %}
<!-- Tests which have already finished -->
<tr><th colspan='6'>Finished</th></tr>
{% for test in completed %}
{% include "OpenBench/Blocks/testsummary.html" %}
{% endfor %}
</table>
{% include "OpenBench/Blocks/pagebrowser.html" %}
{% endblock %}
{% extends "OpenBench/base.html" %}
{% block content %}
<table class="datatable">
<!-- Only show Pending tests for the front page of the Index -->
{% if paging.page == 1 %}
<!-- Currently Pending tests (Waiting to be approved) -->
{% if pending %}
<tr><th colspan='6'>Pending</th></tr>
{% for test in pending %}
{% include "OpenBench/Blocks/testsummary.html" %}
{% endfor %}
<tr class="table-spacer"><th></th></tr>
{% endif %}
<!-- Currently Running tests (Waiting to be completed) -->
{% if active %}
<tr><th colspan='6'>Active {{status}}</th></tr>
{% for test in active %}
{% include "OpenBench/Blocks/testsummary.html" %}
{% endfor %}
<tr class="table-spacer"><th></th></tr>
{% endif %}
{% endif %}
<!-- Tests which have already finished -->
<tr><th colspan='6'>Finished</th></tr>
{% for test in completed %}
{% include "OpenBench/Blocks/testsummary.html" %}
{% endfor %}
</table>
{% include "OpenBench/Blocks/pagebrowser.html" %}
{% endblock %}