Index: runtime/bin/vmservice/client/lib/src/elements/log_view.html |
diff --git a/runtime/bin/vmservice/client/lib/src/elements/log_view.html b/runtime/bin/vmservice/client/lib/src/elements/log_view.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..35ce13b5ff53db7a5caabdc25698bbf750e0b478 |
--- /dev/null |
+++ b/runtime/bin/vmservice/client/lib/src/elements/log_view.html |
@@ -0,0 +1,40 @@ |
+<head> |
+ <link rel="import" href="observatory_element.html"> |
+<head> |
+ |
+<polymer-element name="log-entry" extends="observatory-element"> |
+ <template> |
+ <style> |
+ .memberItem { |
+ display: table-row; |
+ } |
+ .memberName, .memberValue { |
+ display: table-cell; |
+ vertical-align: top; |
+ padding: 3px 0 3px 1em; |
+ font: 400 14px 'Montserrat', sans-serif; |
+ } |
+ </style> |
+ <div class="memberItem"> |
+ <div class="memberName">{{ time }}</div> |
+ <div class="memberValue">{{ message }}</div> |
+ </div> |
+ </template> |
+ <script type="application/dart" src="log_view.dart"></script> |
+</polymer-element> |
+ |
+<polymer-element name="log-view" extends="observatory-element"> |
+ <template> |
+ <style> |
+ .memberList { |
+ display: table; |
+ } |
+ </style> |
+ <div class="memberList"> |
+ <template repeat="{{ entry in log['members'] }}"> |
+ <log-entry entry="{{ entry }}"></log-entry> |
+ </template> |
+ </div> |
+ </template> |
+ <script type="application/dart" src="log_view.dart"></script> |
+</polymer-element> |