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

Unified Diff: autoroll/res/imp/arb-status-sk.html

Issue 1411553004: Add autoroll server (Closed) Base URL: https://skia.googlesource.com/buildbot@arb_status
Patch Set: Add error-toast-sk to app-sk Created 5 years, 2 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
« no previous file with comments | « autoroll/package.json ('k') | autoroll/sys/autorolld.service » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: autoroll/res/imp/arb-status-sk.html
diff --git a/autoroll/res/imp/arb-status-sk.html b/autoroll/res/imp/arb-status-sk.html
index df60a820569d7fbb524a2e7ee96d2c8e3aa65d9b..8507df8e790cac7670ad20ff9a97091c61e9717d 100644
--- a/autoroll/res/imp/arb-status-sk.html
+++ b/autoroll/res/imp/arb-status-sk.html
@@ -114,7 +114,7 @@
</div>
<template is="dom-repeat" items="{{recent}}">
<div class="tr">
- <div class="td"><a href="">{{item.subject}}</a></div>
+ <div class="td"><a href="{{_issueURL(item)}}" target="_blank">{{item.subject}}</a></div>
<div class="td"><human-date-sk date="{{item.modified}}" diff></human-date-sk> ago</div>
<div class="td"><span class$="{{_rollClass(item)}}">{{_rollResult(item)}}</span></div>
</div>
@@ -215,8 +215,9 @@
if (mode == this.mode) {
return;
}
- var modeIdx = this.validModes.indexOf(mode);
- sk.post("/setMode", JSON.stringify({"mode": modeIdx})).then(JSON.parse).then(function (json) {
+ var url = "/json/mode";
+ var body = JSON.stringify({"mode": mode});
+ sk.post(url, body).then(JSON.parse).then(function (json) {
this._update(json);
}.bind(this), function(err) {
sk.errorMessage("Action failed: " + err);
« no previous file with comments | « autoroll/package.json ('k') | autoroll/sys/autorolld.service » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698