| <!DOCTYPE html> |
| <!-- |
| Copyright 2016 The Chromium Authors. All rights reserved. |
| Use of this source code is governed by a BSD-style license that can be |
| found in the LICENSE file. |
| --> |
| <html> |
| <head> |
| <link type="text/css" rel="stylesheet" href="/dashboard/static/base.css"> |
| <title>Chrome Performance Test Owners</title> |
| <script> |
| 'use strict'; |
| var OWNER_INFO = {{owner_info | safe}}; |
| var IS_ADMIN = ('{{is_admin}}' == 'True') ? true : false; |
| var XSRF_TOKEN = '{{xsrf_token}}'; |
| </script> |
| |
| <link rel="import" href="/components/polymer/polymer.html"> |
| <link rel="import" href="/dashboard/elements/load-analytics.html"> |
| <link rel="import" href="/dashboard/elements/nav-bar.html"> |
| <link rel="import" href="/dashboard/elements/editable-list.html"> |
| |
| <style> |
| #content { |
| margin-left: 10px; |
| } |
| </style> |
| </head> |
| <body> |
| <nav-bar></nav-bar> |
| <h1>Chrome Performance Test Owners</h1> |
| <div id="content"> |
| <editable-list id="edit-owner-list" |
| xsrfToken="{{xsrf_token | safe}}"></editable-list> |
| </div> |
| |
| <script> |
| 'use strict'; |
| |
| /** |
| * Initializes the "edit test owners" page. |
| */ |
| function init() { |
| var editOwnerList = document.getElementById('edit-owner-list'); |
| var ownerEmail = (IS_ADMIN) ? 'Owner\'s email' : null; |
| editOwnerList.init(OWNER_INFO, |
| '/edit_test_owners', |
| 'Master/Test suite', |
| ownerEmail); |
| editOwnerList.$['item_textfield'].setAttribute( |
| 'placeholder', 'ChromiumPerf/sunspider'); |
| } |
| |
| document.addEventListener('polymer-ready', init, false); |
| </script> |
| <load-analytics></load-analytics> |
| </body> |
| </html> |