| Index: templates/main.html
|
| diff --git a/templates/main.html b/templates/main.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b1cbb37adb9b091f1dfd24a1e685a14bde545498
|
| --- /dev/null
|
| +++ b/templates/main.html
|
| @@ -0,0 +1,98 @@
|
| +{% extends "base.html" %}
|
| +
|
| +{% block title %}
|
| +Log File for {{name}}
|
| +{% endblock title %}
|
| +
|
| +{% block head %}
|
| +<style>
|
| +.code {
|
| + font-family:monospace;
|
| +}
|
| +body {
|
| + white-space: nowrap;
|
| +}
|
| +{% if output %}
|
| + .container-fluid {
|
| + padding: 0;
|
| + }
|
| + .row {
|
| + padding-left: 20px;
|
| + padding-right: 20px;
|
| + }
|
| +{% endif %}
|
| +.alert {
|
| + margin-left: 20px;
|
| +}
|
| +.section-header {
|
| + background-color: #E8E8E8;
|
| +}
|
| +.center {
|
| + float: none;
|
| + margin-left: auto;
|
| + margin-right: auto;
|
| + width: 500px;
|
| +}
|
| +</style>
|
| +{% endblock head %}
|
| +
|
| +{% block body %}
|
| +{% if output %}
|
| + <div class="row">
|
| + {% if status == 'RUNNING' %}
|
| + <div class="alert alert-info">
|
| + This step is still running...
|
| + </div>
|
| + {% elif status == 'OK' %}
|
| + <div class="alert alert-success">
|
| + This step passed with status {{ret_code}}
|
| + </div>
|
| + {% elif status == 'ERROR' %}
|
| + <div class="alert alert-error">
|
| + This step failed with status {{ret_code}}
|
| + </div>
|
| + {% endif %}
|
| + <div class="span12">
|
| + <h2>Output from <a href='{{url}}'>{{name}}</a></h2>
|
| + </div>
|
| + </div>
|
| + {% autoescape False %}
|
| + {% for section_title, lines in output %}
|
| + <div class="row section-{{section_title}}">
|
| + <div class="span12">
|
| + {% for line_abbr, line, attrs in lines %}
|
| + {% if line_abbr %}
|
| + <span class="code {% for attr in attrs %}{{attr}} {% endfor %}">{{line_abbr}}...</span><br>
|
| + {% else %}
|
| + <span class="code {% for attr in attrs %}{{attr}} {% endfor %}">{{line}}</span><br>
|
| + {% endif %}
|
| + {% endfor %}
|
| + </div>
|
| + </div>
|
| + {% endfor %}
|
| + {% endautoescape %}
|
| +{% else %}
|
| + <div class="row">
|
| + <div class="center">
|
| + <div class="hero-unit">
|
| + <h1>Welcome</h1>
|
| + <p>Paste in a stdio url from a build log</p>
|
| + </div>
|
| + <form method='GET' action='/buildbot/' class="form-inline">
|
| + <input type='text' class="input-block-level" name='url' placeholder='http://build.chromium.org/p/....'></input>
|
| + <button type="submit" class="btn btn-primary">Go</button>
|
| + </form>
|
| + </div>
|
| + </div>
|
| +{% endif %}
|
| +{% endblock body %}
|
| +
|
| +{% block sub_footer %}
|
| +{% if output and debug %}
|
| + Fetch time: {{'%02f' % log_fetch_time}}s<br>
|
| + Parse time: {{'%02f' % parse_time}}s<br>
|
| + Size: {{size}} bytes<br>
|
| + Compressed Size: {{compressed_size}} bytes<br>
|
| + Compressed Report: {{compressed_report}} bytes
|
| +{% endif %}
|
| +{% endblock sub_footer %}
|
|
|