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

Side by Side Diff: third_party/buildbot_7_12/buildbot/status/web/console_html.py

Issue 12207158: Bye bye buildbot 0.7.12. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 10 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 try:
2 from string import Template
3 except ImportError:
4 from buildbot.stringTemplate import Template
5
6
7 top_header = Template('''
8 <div align="center">
9 <table width=95% class="Grid" border="0" cellspacing="0">''')
10
11 top_info_name = Template('''
12 <tr>
13 <td width=33% align=left class=left_align><a href="$projectUrl">$projectName</a> ''')
14
15 top_info_categories = Template('''
16 <br><b>Categories:</b> $categories''')
17
18 top_info_branch = Template('''
19 <br /><b>Branch:</b> $branch''')
20
21 top_info_name_end = Template('''
22 </td>''')
23
24 top_legend = Template('''
25 <td width=33% align=center class=center_align>
26 <div align="center">
27 <table>
28 <tr>
29 <td>Legend:&nbsp;&nbsp;</td>
30 <td><div class='legend success' title='All tests passed'>Passed</div></td>
31 <td><div class='legend failure' title='There is a new failure. Take a look!'>Fai led</div></td>
32 <td><div class='legend warnings' title='It was failing before, and it is still f ailing. Make sure you did not introduce new regressions'>Failed Again</div></td>
33 <td><div class='legend running' title='The tests are still running'>Running</div ></td>
34 <td><div class='legend exception' title='Something went wrong with the test, the re is no result'>Exception</div></td>
35 <td><div class='legend notstarted' title='No result yet.'>No data</div></td>
36 </tr>
37 </table>
38 </div>
39 </td>''')
40
41 top_personalize = Template('''
42 <td width=33% align=right class=right_align>
43 <script>
44 function reload_page() {
45 name_value = document.getElementById('namebox').value
46 if (document.location.href.lastIndexOf('?') == -1)
47 document.location.href = document.location.href+ '?name=' + name_value;
48 else
49 document.location.href = document.location.href+ '&name=' + name_value;
50 }
51 </script>
52 <form onsubmit='reload_page()'>
53 <input id='namebox' name='name' type='text' style='color:#999;'
54 onblur='this.value = this.value || this.defaultValue; this.style.color = "#999 ";'
55 onfocus='this.value=""; this.style.color = "#000";'
56 value='Personalized for...'>
57
58 <input type=submit value='Go'>
59 </form>
60 </td>''')
61
62 top_footer = Template('''
63 </tr></table></div>''')
64
65 main_header = Template('''
66 <br>
67 <div align="center">
68 <table width=96%>''')
69
70 main_line_category_header = Template('''
71 <tr><td width="1%"></td>
72 <td width="1%"></td>''')
73
74 main_line_category_name = Template('''
75 <td class='DevStatus $alt $first $last' width=$size%>$category</td>''')
76
77 main_line_category_footer = Template('''
78 </tr>
79 <tr class='DevStatusSpacing'></tr>''')
80
81 main_line_info = Template('''
82 <tr><td class='DevRev $alt' width="1%">
83 $revision_link
84 </td>
85 <td class='DevName $alt' width="1%">$who</td>''')
86
87 main_line_slave_header = Template('''
88 <tr><td width="1%"></td>
89 <td width="1%"></td>
90 <td class='DevSlave $alt'><table width="100%"><tr>''')
91
92 main_line_slave_section = Template('''
93 </tr></table></td>
94 <td class='DevSlave $alt'><table width="100%"><tr>''')
95
96 main_line_slave_status = Template('''
97 <td class='DevSlaveBox'><a href='$url' title='$title' class='DevSlaveBox $color' target=_blank></a></td>''')
98
99 main_line_slave_footer = Template('''
100 </tr></table></td></tr>''')
101
102 main_line_status_header = Template('''
103 <td class='DevStatus $alt $last'><table width="100%"><tr>
104 <script>''')
105
106 main_line_status_section = Template('''
107 </script>
108 </tr></table></td>
109 <td class='DevStatus $alt $last'><table width="100%">
110 <tr>
111 <script>''')
112
113 main_line_status_box = Template('''
114 addBox("$url", "$title", "$color", "$tag");''')
115
116 main_line_status_footer = Template('''
117 </script>
118 </tr></table></td></tr>''')
119
120 main_line_details = Template('''
121 <tr><td colspan=$span class='DevDetails $alt'><ul style='margin: 0px; padding: 1 em;'>$details</ul></td></tr>''')
122
123 main_line_comments = Template('''
124 <tr><td colspan=$span class='DevComment $alt'> $comments </td></tr>
125 <tr class='DevStatusSpacing'><td></td></tr>''')
126
127 main_footer = Template('''
128 </table>
129 </div>''')
130
131
132 bottom = Template('''
133 <hr />
134
135 <div class="footer">
136 [ <a href="$welcomeUrl">welcome</a> ] -
137 [ <a class='collapse' href="#" OnClick="collapse();return false;">collapse</a>
138 <a class='expand' href="#" style='display: none' OnClick="expand();return fal se;">expand</a> ] -
139 [ <a class='merge' href="#" OnClick="merge();return false;">merge</a>
140 <a class='unmerge' style='display: none' href="#" OnClick="unmerge();return f alse;">un-merge</a> ]
141 <br />
142 <a href="http://buildbot.sourceforge.net/">Buildbot - $version</a> working for the <a href="$projectUrl"> $projectName </a> project.
143 <br />
144 Page built: $time
145 <br />
146 Debug Info: $debugInfo
147 </div>
148
149 <div id="divBox" OnMouseOut="if (checkMouseLeave(this, event)) this.style.displa y = 'None'" class="BuildWaterfall">
150 </div>
151 <iframe id="frameBox" style="display: none;" onload="updateDiv(event);"></iframe >''')
OLDNEW
« no previous file with comments | « third_party/buildbot_7_12/buildbot/status/web/console.py ('k') | third_party/buildbot_7_12/buildbot/status/web/console_js.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698