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

Unified Diff: appengine/swarming/elements/res/imp/botpage/bot-page.html

Issue 2283133002: Add bot-page stubs (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: Makefile should download demo json Created 4 years, 3 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: appengine/swarming/elements/res/imp/botpage/bot-page.html
diff --git a/appengine/swarming/elements/res/imp/botpage/bot-page.html b/appengine/swarming/elements/res/imp/botpage/bot-page.html
new file mode 100644
index 0000000000000000000000000000000000000000..8340a1addde18b06c5ebe875df1db41311392a87
--- /dev/null
+++ b/appengine/swarming/elements/res/imp/botpage/bot-page.html
@@ -0,0 +1,98 @@
+<!--
+ Copyright 2016 The LUCI Authors. All rights reserved.
+ Use of this source code is governed under the Apache License, Version 2.0
+ that can be found in the LICENSE file.
+
+ This in an HTML Import-able file that contains the definition
+ of the following elements:
+
+ <bot-page>
+
+ bot-page shows the tasks, events, and dimensions of a bot.
+
+ This is a top-level element.
+
+ Properties:
+ bot_id: String, Used in testing to specify a bot_id
+ client_id: String, Oauth 2.0 client id. It will be set by server-side
+ template evaluation.
+
+ Methods:
+ None.
+
+ Events:
+ None.
+-->
+
+<link rel="import" href="/res/imp/bower_components/polymer/polymer.html">
+
+<link rel="import" href="/res/imp/common/common-behavior.html">
+<link rel="import" href="/res/imp/common/swarming-app.html">
+<link rel="import" href="/res/imp/common/url-param.html">
+
+<link rel="import" href="bot-page-data.html">
+
+
+<dom-module id="bot-page">
+ <template>
+ <style include="iron-flex iron-flex-alignment iron-positioning swarming-app-style">
+
+ </style>
+
+ <url-param name="id"
+ value="{{bot_id}}">
+ </url-param>
+
+ <swarming-app
+ client_id="[[client_id]]"
+ auth_headers="{{_auth_headers}}"
+ signed_in="{{_signed_in}}"
+
+ busy="[[_busy]]"
+ name="Swarming Bot Page">
+
+ <h2 hidden$="[[_signed_in]]">You must sign in to see anything useful.</h2>
+
+ <div hidden$="[[_not(_signed_in)]]">
+
+ <bot-page-data
+ auth_headers="[[_auth_headers]]"
+ bot_id="[[bot_id]]"
+
+ bot="{{_bot}}"
+ busy="{{_busy}}"
+ events="{{_events}}"
+ tasks="{{_tasks}}">
+ </bot-page-data>
+
+ <h1> Bot Page Stub </h1>
+ </div>
+
+ </swarming-app>
+
+ </template>
+ <script>
+ (function(){
+
+
+ Polymer({
+ is: 'bot-page',
+
+ behaviors: [
+ SwarmingBehaviors.CommonBehavior,
+ ],
+
+ properties: {
+ bot_id: {
+ type: String,
+ },
+ client_id: {
+ type: String,
+ },
+
+ },
+
+ });
+ })();
+ </script>
+</dom-module>

Powered by Google App Engine
This is Rietveld 408576698