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

Unified Diff: masters/master.client.dart.fyi/templates/root.html

Issue 10053007: Initial dart FYI buildbot setup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: masters/master.client.dart.fyi/templates/root.html
===================================================================
--- masters/master.client.dart.fyi/templates/root.html (revision 0)
+++ masters/master.client.dart.fyi/templates/root.html (revision 0)
@@ -0,0 +1,32 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+<head>
+<title>BuildBot Index page</title>
+<script>
+ var redirect_to = "/console";
+
+ function create_redirect_url(url) {
+ var url_no_index = url.replace(/\/index.html$/, "");
+ var args = "";
+ var index_of_arg = url_no_index.indexOf("?");
+ if (index_of_arg != -1) {
+ args = url_no_index.slice(index_of_arg);
+ url_no_index = url_no_index.slice(0, index_of_arg);
+ }
+ var url_no_slash = url_no_index.replace(/\/+$/, "");
+ var possible = url_no_slash.slice(url_no_slash.length - redirect_to.length);
+ if (possible == redirect_to) {
+ alert("There was an error redirecting you. Please try again later.");
+ return;
+ }
+
+ new_url = url_no_slash.replace(/$/, redirect_to) + args;
+ document.write("<meta http-equiv='REFRESH' content='0;url=" + new_url +
+ "'>");
+ }
+ create_redirect_url(location.href);
+</script>
+</HEAD>
+<BODY>
+</BODY>
+</HTML>
Property changes on: masters/master.client.dart.fyi/templates/root.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:eol-style
+ LF
« no previous file with comments | « masters/master.client.dart.fyi/templates/layout.html ('k') | masters/master.client.dart.fyi/templates/stats.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698