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"> | 5 <polymer-element name="nav-bar" extends="observatory-element"> |
6 <template> | 6 <template> |
7 <link rel="stylesheet" href="css/shared.css"> | 7 <link rel="stylesheet" href="css/shared.css"> |
8 <style> | 8 <style> |
9 nav { | 9 nav { |
10 position: fixed; | 10 position: fixed; |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 <template if="{{ active }}"> | 161 <template if="{{ active }}"> |
162 <button class="active" on-click="{{ buttonClick }}">{{ label }}</button> | 162 <button class="active" on-click="{{ buttonClick }}">{{ label }}</button> |
163 </template> | 163 </template> |
164 <template if="{{ !active }}"> | 164 <template if="{{ !active }}"> |
165 <button class="idle" on-click="{{ buttonClick }}">{{ label }}</button> | 165 <button class="idle" on-click="{{ buttonClick }}">{{ label }}</button> |
166 </template> | 166 </template> |
167 </li> | 167 </li> |
168 </template> | 168 </template> |
169 </polymer-element> | 169 </polymer-element> |
170 | 170 |
171 <polymer-element name="nav-control" extends="observatory-element"> | |
172 <template> | |
173 <style> | |
174 .black { | |
175 color: #000; | |
176 } | |
177 li { | |
178 float: right; | |
179 margin: 0; | |
180 } | |
181 button { | |
182 margin: 3px; | |
183 padding: 8px; | |
184 } | |
185 </style> | |
186 <!-- Disable until issues with history in Dartium are fixed | |
187 <li> | |
188 <button class="black" on-click="{{ back }}">◀</button> | |
189 <button class="black" on-click="{{ forward }}">▶</button> | |
190 </li> | |
191 --> | |
192 </template> | |
193 </polymer-element> | |
194 | |
195 <polymer-element name="top-nav-menu"> | 171 <polymer-element name="top-nav-menu"> |
196 <template> | 172 <template> |
197 <nav-menu link="/vm" anchor="Observatory" last="{{ last }}"> | 173 <nav-menu link="/vm" anchor="Observatory" last="{{ last }}"> |
198 <nav-menu-item link="/vm-connect/" anchor="Connect to a different VM"></na
v-menu-item> | 174 <nav-menu-item link="/vm-connect/" anchor="Connect to a different VM"></na
v-menu-item> |
199 <content></content> | 175 <content></content> |
200 </nav-menu> | 176 </nav-menu> |
201 </template> | 177 </template> |
202 </polymer-element> | 178 </polymer-element> |
203 | 179 |
204 <polymer-element name="isolate-nav-menu" extends="observatory-element"> | 180 <polymer-element name="isolate-nav-menu" extends="observatory-element"> |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 Disconnected from VM | 319 Disconnected from VM |
344 <br><br> | 320 <br><br> |
345 <a class="boxclose" on-click="{{ closeItem }}">×</a> | 321 <a class="boxclose" on-click="{{ closeItem }}">×</a> |
346 </div> | 322 </div> |
347 </template> | 323 </template> |
348 </template> | 324 </template> |
349 </polymer-element> | 325 </polymer-element> |
350 | 326 |
351 | 327 |
352 <script type="application/dart" src="nav_bar.dart"></script> | 328 <script type="application/dart" src="nav_bar.dart"></script> |
OLD | NEW |