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="function_ref.html"> | 2 <link rel="import" href="function_ref.html"> |
3 <link rel="import" href="instance_ref.html"> | 3 <link rel="import" href="instance_ref.html"> |
4 <link rel="import" href="observatory_element.html"> | 4 <link rel="import" href="observatory_element.html"> |
5 <link rel="import" href="nav_bar.html"> | 5 <link rel="import" href="nav_bar.html"> |
6 <link rel="import" href="script_ref.html"> | 6 <link rel="import" href="script_ref.html"> |
7 | 7 |
8 <polymer-element name="code-view" extends="observatory-element"> | 8 <polymer-element name="code-view" extends="observatory-element"> |
9 <template> | 9 <template> |
10 <link rel="stylesheet" href="css/shared.css"> | 10 <link rel="stylesheet" href="css/shared.css"> |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 .snippet { | 50 .snippet { |
51 text-align: center; | 51 text-align: center; |
52 margin-left: 10px; | 52 margin-left: 10px; |
53 margin-right: 10px; | 53 margin-right: 10px; |
54 } | 54 } |
55 | 55 |
56 </style> | 56 </style> |
57 <nav-bar> | 57 <nav-bar> |
58 <top-nav-menu></top-nav-menu> | 58 <top-nav-menu></top-nav-menu> |
59 <isolate-nav-menu isolate="{{ code.isolate }}"></isolate-nav-menu> | 59 <isolate-nav-menu isolate="{{ code.isolate }}"></isolate-nav-menu> |
60 <nav-menu link="{{ code.link }}" anchor="{{ code.name }}" last="{{ true }}
"></nav-menu> | 60 <nav-menu link="{{ makeLink('/inspect', code) }}" anchor="{{ code.name }}"
last="{{ true }}"></nav-menu> |
61 <nav-refresh callback="{{ refresh }}"></nav-refresh> | 61 <nav-refresh callback="{{ refresh }}"></nav-refresh> |
62 <nav-control></nav-control> | 62 <nav-control></nav-control> |
63 </nav-bar> | 63 </nav-bar> |
64 <div class="content"> | 64 <div class="content"> |
65 <template if="{{ code.isDartCode && code.isOptimized }}"> | 65 <template if="{{ code.isDartCode && code.isOptimized }}"> |
66 <h1>Optimized code for {{ code.name }}</h1> | 66 <h1>Optimized code for {{ code.name }}</h1> |
67 </template> | 67 </template> |
68 <template if="{{ !(code.isDartCode && code.isOptimized) }}"> | 68 <template if="{{ !(code.isDartCode && code.isOptimized) }}"> |
69 <h1>Code for {{ code.name }}</h1> | 69 <h1>Code for {{ code.name }}</h1> |
70 </template> | 70 </template> |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 {{ instruction.human }} | 161 {{ instruction.human }} |
162 </div> | 162 </div> |
163 </template> | 163 </template> |
164 </div> | 164 </div> |
165 </template> | 165 </template> |
166 </div> | 166 </div> |
167 </template> | 167 </template> |
168 </polymer-element> | 168 </polymer-element> |
169 | 169 |
170 <script type="application/dart" src="code_view.dart"></script> | 170 <script type="application/dart" src="code_view.dart"></script> |
OLD | NEW |