OLD | NEW |
1 <link rel="import" href="../../../../packages/polymer/polymer.html"> | 1 <link rel="import" href="../../../../packages/polymer/polymer.html"> |
2 <link rel="import" href="action_link.html"> | 2 <link rel="import" href="action_link.html"> |
3 <link rel="import" href="observatory_element.html"> | 3 <link rel="import" href="observatory_element.html"> |
4 | 4 |
5 <polymer-element name="nav-bar" extends="observatory-element"> | |
6 <template> | |
7 <link rel="stylesheet" href="css/shared.css"> | |
8 <style> | |
9 nav { | |
10 position: fixed; | |
11 width: 100%; | |
12 z-index: 1000; | |
13 } | |
14 nav ul { | |
15 display: inline-table; | |
16 position: relative; | |
17 list-style: none; | |
18 padding-left: 0; | |
19 margin-left: 0; | |
20 width: 100%; | |
21 z-index: 1000; | |
22 font: 400 16px 'Montserrat', sans-serif; | |
23 color: white; | |
24 background-color: #0489c3; | |
25 } | |
26 nav ul:after { | |
27 content: ""; clear: both; display: block; | |
28 } | |
29 .vertical-spacer { | |
30 height: 40px; | |
31 background-color: #0489c3; | |
32 } | |
33 </style> | |
34 <nav> | |
35 <ul> | |
36 <content></content> | |
37 </ul> | |
38 </nav> | |
39 <div class="vertical-spacer"> | |
40 </div> | |
41 <template if="{{ pad }}"> | |
42 <br> | |
43 </template> | |
44 </template> | |
45 </polymer-element> | |
46 | |
47 <polymer-element name="vm-nav-menu"> | |
48 <template> | |
49 <nav-menu link="/vm" anchor="{{ nameAndAddress(vm.name, vm.target) }}" last=
"{{ last }}"> | |
50 <template repeat="{{ isolate in vm.isolates }}"> | |
51 <nav-menu-item link="{{ makeLink('/inspect', isolate) }}" | |
52 anchor="{{ isolate.name }}"></nav-menu-item> | |
53 </template> | |
54 <content></content> | |
55 </nav-menu> | |
56 </template> | |
57 </polymer-element> | |
58 | |
59 <polymer-element name="isolate-nav-menu" extends="observatory-element"> | 5 <polymer-element name="isolate-nav-menu" extends="observatory-element"> |
60 <template> | 6 <template> |
61 <nav-menu link="{{ makeLink('/inspect', isolate) }}" anchor="{{ isolate.name
}}" last="{{ last }}"> | 7 <nav-menu link="{{ makeLink('/inspect', isolate) }}" anchor="{{ isolate.name
}}" last="{{ last }}"> |
62 <nav-menu-item link="{{ makeLink('/debugger', isolate) }}" | 8 <nav-menu-item link="{{ makeLink('/debugger', isolate) }}" |
63 anchor="debugger"></nav-menu-item> | 9 anchor="debugger"></nav-menu-item> |
64 <nav-menu-item link="{{ makeLink('/class-tree', isolate) }}" | 10 <nav-menu-item link="{{ makeLink('/class-tree', isolate) }}" |
65 anchor="class hierarchy"></nav-menu-item> | 11 anchor="class hierarchy"></nav-menu-item> |
66 <nav-menu-item link="{{ makeLink('/profiler', isolate) }}" | 12 <nav-menu-item link="{{ makeLink('/profiler', isolate) }}" |
67 anchor="cpu profile"></nav-menu-item> | 13 anchor="cpu profile"></nav-menu-item> |
68 <nav-menu-item link="{{ makeLink('/profiler-table', isolate) }}" | 14 <nav-menu-item link="{{ makeLink('/profiler-table', isolate) }}" |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 [<a class="link" on-click="{{ goto }}" | 291 [<a class="link" on-click="{{ goto }}" |
346 _href="{{ gotoLink('vm-connect') }}">Connect to a different VM</a>] | 292 _href="{{ gotoLink('vm-connect') }}">Connect to a different VM</a>] |
347 <a class="boxclose" on-click="{{ closeItem }}">×</a> | 293 <a class="boxclose" on-click="{{ closeItem }}">×</a> |
348 </div> | 294 </div> |
349 </template> | 295 </template> |
350 </template> | 296 </template> |
351 </polymer-element> | 297 </polymer-element> |
352 | 298 |
353 | 299 |
354 <script type="application/dart" src="nav_bar.dart"></script> | 300 <script type="application/dart" src="nav_bar.dart"></script> |
OLD | NEW |