| Index: runtime/bin/vmservice/client/lib/src/observatory_elements/class_view.html
|
| ===================================================================
|
| --- runtime/bin/vmservice/client/lib/src/observatory_elements/class_view.html (revision 30528)
|
| +++ runtime/bin/vmservice/client/lib/src/observatory_elements/class_view.html (working copy)
|
| @@ -1,5 +1,6 @@
|
| <head>
|
| <link rel="import" href="observatory_element.html">
|
| + <link rel="import" href="error_view.html">
|
| </head>
|
| <polymer-element name="class-view" extends="observatory-element">
|
| <template>
|
| @@ -38,36 +39,41 @@
|
| </tr>
|
| </tbody>
|
| </table>
|
| - <blockquote><strong>Fields</strong></blockquote>
|
| - <table class="table table-hover">
|
| - <thead>
|
| - <tr>
|
| - <th>User Name</th>
|
| - <th>VM Name</th>
|
| - </tr>
|
| - </thead>
|
| - <tbody>
|
| - <tr template repeat="{{ field in cls['fields'] }}">
|
| - <td><a href="{{ app.locationManager.currentIsolateObjectLink(field['id'])}}">{{ field['user_name'] }}</a></td>
|
| - <td><a href="{{ app.locationManager.currentIsolateObjectLink(field['id'])}}">{{ field['name'] }}</a></td>
|
| - </tr>
|
| - </tbody>
|
| - </table>
|
| - <blockquote><strong>Functions</strong></blockquote>
|
| - <table class="table table-hover">
|
| - <thead>
|
| - <tr>
|
| - <th>User Name</th>
|
| - <th>VM Name</th>
|
| - </tr>
|
| - </thead>
|
| - <tbody>
|
| - <tr template repeat="{{ function in cls['functions'] }}">
|
| - <td><a href="{{ app.locationManager.currentIsolateObjectLink(function['id'])}}">{{ function['user_name'] }}</a></td>
|
| - <td><a href="{{ app.locationManager.currentIsolateObjectLink(function['id'])}}">{{ function['name'] }}</a></td>
|
| - </tr>
|
| - </tbody>
|
| - </table>
|
| + <template if="{{ cls['error'] == null }}">
|
| + <blockquote><strong>Fields</strong></blockquote>
|
| + <table class="table table-hover">
|
| + <thead>
|
| + <tr>
|
| + <th>User Name</th>
|
| + <th>VM Name</th>
|
| + </tr>
|
| + </thead>
|
| + <tbody>
|
| + <tr template repeat="{{ field in cls['fields'] }}">
|
| + <td><a href="{{ app.locationManager.currentIsolateObjectLink(field['id'])}}">{{ field['user_name'] }}</a></td>
|
| + <td><a href="{{ app.locationManager.currentIsolateObjectLink(field['id'])}}">{{ field['name'] }}</a></td>
|
| + </tr>
|
| + </tbody>
|
| + </table>
|
| + <blockquote><strong>Functions</strong></blockquote>
|
| + <table class="table table-hover">
|
| + <thead>
|
| + <tr>
|
| + <th>User Name</th>
|
| + <th>VM Name</th>
|
| + </tr>
|
| + </thead>
|
| + <tbody>
|
| + <tr template repeat="{{ function in cls['functions'] }}">
|
| + <td><a href="{{ app.locationManager.currentIsolateObjectLink(function['id'])}}">{{ function['user_name'] }}</a></td>
|
| + <td><a href="{{ app.locationManager.currentIsolateObjectLink(function['id'])}}">{{ function['name'] }}</a></td>
|
| + </tr>
|
| + </tbody>
|
| + </table>
|
| + </template>
|
| + <template if="{{ cls['error'] != null }}">
|
| + <error-view error_obj="{{ cls['error'] }}"></error-view>
|
| + </template>
|
| </div>
|
| </div>
|
| </div>
|
|
|