OLD | NEW |
| (Empty) |
1 <link rel="import" href="../../../../packages/polymer/polymer.html"> | |
2 | |
3 <polymer-element name="context-view"> | |
4 <template> | |
5 <link rel="stylesheet" href="css/shared.css"> | |
6 <nav-bar> | |
7 <top-nav-menu></top-nav-menu> | |
8 <vm-nav-menu vm="{{ context.isolate.vm }}"></vm-nav-menu> | |
9 <isolate-nav-menu isolate="{{ context.isolate }}"></isolate-nav-menu> | |
10 <!-- TODO(turnidge): Add library nav menu here. --> | |
11 <class-nav-menu cls="{{ context.clazz }}"></class-nav-menu> | |
12 <nav-menu link="." anchor="instance" last="{{ true }}"></nav-menu> | |
13 <nav-refresh callback="{{ refresh }}"></nav-refresh> | |
14 <nav-notify notifications="{{ app.notifications }}"></nav-notify> | |
15 </nav-bar> | |
16 | |
17 <template if="{{ !context.isError }}"> | |
18 <div class="content"> | |
19 <h1>instance of Context</h1> | |
20 | |
21 <object-common object="{{ context }}"></object-common> | |
22 <br> | |
23 | |
24 <div class="memberList"> | |
25 <template if="{{ context.parentContext != null }}"> | |
26 <div class="memberItem"> | |
27 <div class="memberName">parent context</div> | |
28 <div class="memberValue"> | |
29 <any-service-ref ref="{{ context.parentContext }}"></any-service
-ref> | |
30 </div> | |
31 </div> | |
32 </template> | |
33 </div> | |
34 </div> | |
35 | |
36 <hr> | |
37 | |
38 <div class="content"> | |
39 <template if="{{ context.variables.isNotEmpty }}"> | |
40 variables ({{ context.variables.length }}) | |
41 <curly-block expand="{{ context.variables.length <= 8 }}"> | |
42 <div class="memberList"> | |
43 <template repeat="{{ index in context.variables.asMap().keys }}"> | |
44 <div class="memberItem"> | |
45 <div class="memberName">[{{ index }}]</div> | |
46 <div class="memberValue"> | |
47 <any-service-ref | |
48 ref="{{ context.variables[index]['value'] }}"> | |
49 </any-service-ref> | |
50 </div> | |
51 </div> | |
52 </template> | |
53 </div> | |
54 </curly-block><br><br> | |
55 </template> | |
56 </div> | |
57 </template> | |
58 <view-footer></view-footer> | |
59 </template> | |
60 </polymer-element> | |
61 | |
62 <script type="application/dart" src="context_view.dart"></script> | |
OLD | NEW |