| OLD | NEW |
| 1 <!-- Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 <!-- Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 Use of this source code is governed by a BSD-style license that can be | 2 Use of this source code is governed by a BSD-style license that can be |
| 3 found in the LICENSE file. --> | 3 found in the LICENSE file. --> |
| 4 | 4 |
| 5 <!-- TODO(esprehn): Can we use the non full version of sugar? --> | 5 <!-- TODO(esprehn): Can we use the non full version of sugar? --> |
| 6 <script src="../bower_components/sugar/release/sugar-full.min.js"></script> | 6 <script src="../bower_components/sugar/release/sugar-full.min.js"></script> |
| 7 | 7 |
| 8 <link rel="import" href="../bower_components/polymer/polymer.html"> | 8 <link rel="import" href="../bower_components/polymer/polymer.html"> |
| 9 <link rel="import" href="../bower_components/app-router/app-router.html"> | 9 <link rel="import" href="../bower_components/app-router/app-router.html"> |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 <script src="../model/patch_set.js"></script> | 33 <script src="../model/patch_set.js"></script> |
| 34 <script src="../model/search.js"></script> | 34 <script src="../model/search.js"></script> |
| 35 <script src="../model/search_result.js"></script> | 35 <script src="../model/search_result.js"></script> |
| 36 <script src="../model/try_job_result.js"></script> | 36 <script src="../model/try_job_result.js"></script> |
| 37 <script src="../model/try_job_result_set.js"></script> | 37 <script src="../model/try_job_result_set.js"></script> |
| 38 <script src="../model/try_job_result_step.js"></script> | 38 <script src="../model/try_job_result_step.js"></script> |
| 39 <script src="../model/try_servers.js"></script> | 39 <script src="../model/try_servers.js"></script> |
| 40 <script src="../model/user.js"></script> | 40 <script src="../model/user.js"></script> |
| 41 <script src="../model/user_settings.js"></script> | 41 <script src="../model/user_settings.js"></script> |
| 42 | 42 |
| 43 <link rel="import" href="cr-action.html"> | 43 <link rel="import" href="../common/cr-action.html"> |
| 44 <link rel="import" href="cr-title-handler.html"> | 44 <link rel="import" href="../common/cr-title-handler.html"> |
| 45 <link rel="import" href="cr-view-handler.html"> | 45 <link rel="import" href="../common/cr-view-handler.html"> |
| 46 | 46 |
| 47 <link rel="import" href="../views/cr-inbox-view.html"> | 47 <link rel="import" href="../views/cr-inbox-view.html"> |
| 48 <link rel="import" href="../views/cr-issue-view.html"> | 48 <link rel="import" href="../views/cr-issue-view.html"> |
| 49 <link rel="import" href="../views/cr-search-view.html"> | 49 <link rel="import" href="../views/cr-search-view.html"> |
| 50 <link rel="import" href="../views/cr-settings-view.html"> | 50 <link rel="import" href="../views/cr-settings-view.html"> |
| 51 <link rel="import" href="../views/cr-user-view.html"> | 51 <link rel="import" href="../views/cr-user-view.html"> |
| 52 | 52 |
| 53 <polymer-element name="cr-app" on-navigate="{{ handleNavigate }}" on-login="{{ h
andleLogin }}"> | 53 <polymer-element name="cr-app" on-navigate="{{ handleNavigate }}" on-login="{{ h
andleLogin }}"> |
| 54 <template> | 54 <template> |
| 55 <cr-view-handler></cr-view-handler> | 55 <cr-view-handler></cr-view-handler> |
| 56 <cr-title-handler titlesuffix="Code Review"></cr-title-handler> | 56 <cr-title-handler titlesuffix="Code Review"></cr-title-handler> |
| 57 <link rel="stylesheet" href="common.css"> | 57 <link rel="stylesheet" href="../common/common.css"> |
| 58 <style> | 58 <style> |
| 59 :host { display: block; } | 59 :host { display: block; } |
| 60 | 60 |
| 61 .page-header { | 61 .page-header { |
| 62 background-color: #212121; | 62 background-color: #212121; |
| 63 font-size: 1.1em; | 63 font-size: 1.1em; |
| 64 -webkit-user-select: none; | 64 -webkit-user-select: none; |
| 65 cursor: default; | 65 cursor: default; |
| 66 display: -webkit-flex; | 66 display: -webkit-flex; |
| 67 display: flex; | 67 display: flex; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 }, | 172 }, |
| 173 handleLogin: function() { | 173 handleLogin: function() { |
| 174 if (this.user) | 174 if (this.user) |
| 175 location.href = User.getLogoutUrl(); | 175 location.href = User.getLogoutUrl(); |
| 176 else | 176 else |
| 177 location.href = User.getLoginUrl(); | 177 location.href = User.getLoginUrl(); |
| 178 }, | 178 }, |
| 179 }); | 179 }); |
| 180 </script> | 180 </script> |
| 181 </polymer-element> | 181 </polymer-element> |
| OLD | NEW |