Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(476)

Side by Side Diff: templates/main.html

Issue 13892003: Added buildbot appengine frontend for chromium-build app (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/chromium-build
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 {% extends "base.html" %}
2
3 {% block title %}
4 Log File for {{name}}
5 {% endblock title %}
6
7 {% block head %}
8 <style>
9 .code {
10 font-family:monospace;
11 }
12 body {
13 white-space: nowrap;
14 }
15 {% if output %}
16 .container-fluid {
17 padding: 0;
18 }
19 .row {
20 padding-left: 20px;
21 padding-right: 20px;
22 }
23 {% endif %}
24 .alert {
25 margin-left: 20px;
26 }
27 .section-header {
28 background-color: #E8E8E8;
29 }
30 .center {
31 float: none;
32 margin-left: auto;
33 margin-right: auto;
34 width: 500px;
35 }
36 </style>
37 {% endblock head %}
38
39 {% block body %}
40 {% if output %}
41 <div class="row">
42 {% if status == 'RUNNING' %}
43 <div class="alert alert-info">
44 This step is still running...
45 </div>
46 {% elif status == 'OK' %}
47 <div class="alert alert-success">
48 This step passed with status {{ret_code}}
49 </div>
50 {% elif status == 'ERROR' %}
51 <div class="alert alert-error">
52 This step failed with status {{ret_code}}
53 </div>
54 {% endif %}
55 <div class="span12">
56 <h2>Output from <a href='{{url}}'>{{name}}</a></h2>
57 </div>
58 </div>
59 {% autoescape False %}
60 {% for section_title, lines in output %}
61 <div class="row section-{{section_title}}">
62 <div class="span12">
63 {% for line_abbr, line, attrs in lines %}
64 {% if line_abbr %}
65 <span class="code {% for attr in attrs %}{{attr}} {% endfor %}">{{line _abbr}}...</span><br>
66 {% else %}
67 <span class="code {% for attr in attrs %}{{attr}} {% endfor %}">{{line }}</span><br>
68 {% endif %}
69 {% endfor %}
70 </div>
71 </div>
72 {% endfor %}
73 {% endautoescape %}
74 {% else %}
75 <div class="row">
76 <div class="center">
77 <div class="hero-unit">
78 <h1>Welcome</h1>
79 <p>Paste in a stdio url from a build log</p>
80 </div>
81 <form method='GET' action='/buildbot/' class="form-inline">
82 <input type='text' class="input-block-level" name='url' placeholder='htt p://build.chromium.org/p/....'></input>
83 <button type="submit" class="btn btn-primary">Go</button>
84 </form>
85 </div>
86 </div>
87 {% endif %}
88 {% endblock body %}
89
90 {% block sub_footer %}
91 {% if output and debug %}
92 Fetch time: {{'%02f' % log_fetch_time}}s<br>
93 Parse time: {{'%02f' % parse_time}}s<br>
94 Size: {{size}} bytes<br>
95 Compressed Size: {{compressed_size}} bytes<br>
96 Compressed Report: {{compressed_report}} bytes
97 {% endif %}
98 {% endblock sub_footer %}
OLDNEW
« templates/base.html ('K') | « templates/base.html ('k') | templates/step.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698