Index: runtime/bin/vmservice/client/lib/src/observatory_elements/source_view.html |
diff --git a/runtime/bin/vmservice/client/lib/src/observatory_elements/source_view.html b/runtime/bin/vmservice/client/lib/src/observatory_elements/source_view.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..38f316070f0f247c23989a269d1099f29f581b2b |
--- /dev/null |
+++ b/runtime/bin/vmservice/client/lib/src/observatory_elements/source_view.html |
@@ -0,0 +1,22 @@ |
+<head> |
+ <link rel="import" href="observatory_element.html"> |
+</head> |
+<polymer-element name="source-view" extends="observatory-element"> |
+ <template> |
+ <div class="row"> |
+ <div class="col-md-8 col-md-offset-2"> |
+ <div class="panel-heading">{{ source.url }}</div> |
+ <div class="panel-body"> |
+ <div class="row"> |
+ <div><strong>Source</strong></div> |
+ </div> |
+ <pre> |
+ <template repeat="{{ line in source.lines }}">{{line.paddedLine}} {{line.src}} |
+ </template> |
+ </pre> |
+ </div> |
+ </div> |
+ </div> |
+ </template> |
+ <script type="application/dart" src="source_view.dart"></script> |
+</polymer-element> |