diff options
Diffstat (limited to 'WebKitTools/TestResultServer/templates')
4 files changed, 144 insertions, 0 deletions
diff --git a/WebKitTools/TestResultServer/templates/dashboardfilelist.html b/WebKitTools/TestResultServer/templates/dashboardfilelist.html new file mode 100644 index 0000000..818cb91 --- /dev/null +++ b/WebKitTools/TestResultServer/templates/dashboardfilelist.html @@ -0,0 +1,38 @@ +<!DOCTYPE html> +<html> +<head> +<title>Dashboard Files</title> +<link type="text/css" rel="stylesheet" href="/stylesheets/dashboardfile.css" /> +</head> +<body> +<h1>Dashboard Files +</h1> +<div> + <table> + <tr> + <th>File</th> + <th>Date</th> + {% if admin %} + <th></th> + {% endif %} + {% for file in files %} + <tr>{% if file.name %} + <td><a href="/dashboards/{{ file.name }}" > + {{ file.name }} + </a> + </td> + <td>{{ file.date|date:"d-M-Y H:i:s" }} + </td> + {% if admin %} + <td><a href="/dashboards/delete?file={{ file.name }}" > + Delete + </a> + </td> + {% endif %} + {% endif %} + </tr> + {% endfor %} + </table> +</div> +</body> +</html> diff --git a/WebKitTools/TestResultServer/templates/menu.html b/WebKitTools/TestResultServer/templates/menu.html new file mode 100644 index 0000000..1ad9f4d --- /dev/null +++ b/WebKitTools/TestResultServer/templates/menu.html @@ -0,0 +1,27 @@ +<!DOCTYPE html> +<html> +<head> +<title>Test Result Server</title> +<table class=login> + <tr> + <td> + {% if user_email %} + <span>{{ user_email }}</span> + {% endif %} + <span><a href="{{ login_url }}">{{ login_text }}</a></span> + </td> + </tr> +</table> +<link type="text/css" rel="stylesheet" href="/stylesheets/menu.css" /> +</head> +<body> +<h1>Test Result Server</h1> +<div> + <ul>{% for title,link in menu %} + <li> + <a href="{{ link }}" >{{ title }}</a> + </li>{% endfor %} + </ul> +</div> +</body> +</html> diff --git a/WebKitTools/TestResultServer/templates/showfilelist.html b/WebKitTools/TestResultServer/templates/showfilelist.html new file mode 100644 index 0000000..fa72b7f --- /dev/null +++ b/WebKitTools/TestResultServer/templates/showfilelist.html @@ -0,0 +1,53 @@ +<!DOCTYPE html> +<html> +<head> +<title>Test Results</title> +<link type="text/css" rel="stylesheet" href="/stylesheets/testfile.css" /> +</head> +<body> +<h1>Test Results +{% if builder or test_type or name %} +- {{ builder }} {{test_type }} {{ name }} +{% endif %} +</h1> +<div> + <table> + <tr> + <th>Builder</th> + <th>Test Type</th> + <th>File</th> + <th>Date</th> + {% if admin %} + <th></th> + {% endif %} + {% for file in files %} + <tr>{% if file.builder and file.name %} + <td><a href="/testfile?builder={{ file.builder }}" > + {{ file.builder }} + </a> + </td> + <td>{% if file.test_type %} + <a href="/testfile?testtype={{ file.test_type }}" > + {{ file.test_type }} + </a> + {% endif %} + </td> + <td><a href="/testfile?builder={{ file.builder }}&name={{ file.name }}" > + {{ file.name }} + </a> + </td> + <td>{{ file.date|date:"d-M-Y H:i:s" }} + </td> + {% if admin %} + <td><a href="/testfile/delete?key={{ file.key }}&builder={{ builder }}&name={{ name }}" > + Delete + </a> + </td> + {% endif %} + {% endif %} + </tr> + {% endfor %} + </table> +</div> +</body> +</html> diff --git a/WebKitTools/TestResultServer/templates/uploadform.html b/WebKitTools/TestResultServer/templates/uploadform.html new file mode 100644 index 0000000..933f9f5 --- /dev/null +++ b/WebKitTools/TestResultServer/templates/uploadform.html @@ -0,0 +1,26 @@ +<!DOCTYPE html> +<html> +<head> +<title>Upload Test Result File</title> +<link type="text/css" rel="stylesheet" href="/stylesheets/form.css" /> +</head> +<body> +<h1>Upload Test Result File</h1> +<form id="uploadForm" name="test_result_upload" accept="text/html" action="{{ upload_url }}" enctype="multipart/form-data" method="post"> + <br> + <table> + <tr> + <td class=label><label>Builder:</label></td> + <td><input class=inputtext type="text" name="builder" value="Webkit"/></td> + </tr> + <tr> + <td class=label><label>Test Type:</label></td> + <td><input class=inputtext type="text" name="testtype" value=""/></td> + </tr> + </table> + <div><input class=button type="file" name="file" multiple></div> + <br> + <div><input class=button type="submit" value="Upload"></div> +</form> +</body> +</html> |