| OLD | NEW |
| (Empty) |
| 1 <link rel="import" href="../../../../packages/polymer/polymer.html"> | |
| 2 | |
| 3 <polymer-element name="persistent-handles-page"> | |
| 4 <template> | |
| 5 <link rel="stylesheet" href="css/shared.css"> | |
| 6 <style> | |
| 7 .table { | |
| 8 border-collapse: collapse!important; | |
| 9 margin-bottom: 20px | |
| 10 table-layout: fixed; | |
| 11 width: 100%; | |
| 12 } | |
| 13 .table td:nth-of-type(1) { | |
| 14 width: 30%; | |
| 15 } | |
| 16 .th, .td { | |
| 17 padding: 8px; | |
| 18 vertical-align: top; | |
| 19 } | |
| 20 .table thead > tr > th { | |
| 21 vertical-align: bottom; | |
| 22 text-align: left; | |
| 23 border-bottom:2px solid #ddd; | |
| 24 } | |
| 25 .spacer { | |
| 26 width: 16px; | |
| 27 } | |
| 28 .left-border-spacer { | |
| 29 width: 16px; | |
| 30 border-left: 1px solid; | |
| 31 } | |
| 32 .clickable { | |
| 33 color: #0489c3; | |
| 34 text-decoration: none; | |
| 35 cursor: pointer; | |
| 36 } | |
| 37 .clickable:hover { | |
| 38 text-decoration: underline; | |
| 39 cursor: pointer; | |
| 40 } | |
| 41 #weakPersistentHandlesTable tr:hover > td { | |
| 42 background-color: #F4C7C3; | |
| 43 } | |
| 44 .nav-option { | |
| 45 color: white; | |
| 46 float: right; | |
| 47 margin: 3px; | |
| 48 padding: 8px; | |
| 49 } | |
| 50 </style> | |
| 51 <nav-bar> | |
| 52 <top-nav-menu></top-nav-menu> | |
| 53 <vm-nav-menu vm="{{ isolate.vm }}"></vm-nav-menu> | |
| 54 <isolate-nav-menu isolate="{{ isolate }}"></isolate-nav-menu> | |
| 55 <nav-menu link="{{ makeLink('/persistent-handles', isolate) }}" anchor="pe
rsistent handles" last="{{ true }}"></nav-menu> | |
| 56 <nav-refresh callback="{{ refresh }}"></nav-refresh> | |
| 57 <nav-notify notifications="{{ app.notifications }}"></nav-notify> | |
| 58 </nav-bar> | |
| 59 <div class="content-centered-big"> | |
| 60 <template if="{{ persistentHandles.isEmpty }}"> | |
| 61 <h1>Persistent Handles (0)</h1> | |
| 62 <hr> | |
| 63 </template> | |
| 64 <template if="{{ persistentHandles.isNotEmpty }}"> | |
| 65 <h1>Persistent Handles ({{ persistentHandles.length }})</h1> | |
| 66 <hr> | |
| 67 <curly-block expand="{{ persistentHandles.length <= 8 }}"> | |
| 68 <div class="memberList"> | |
| 69 <template repeat="{{ persistentHandle in persistentHandles }}"> | |
| 70 <div class="memberItem"> | |
| 71 <div class="memberValue"> | |
| 72 <any-service-ref ref="{{ persistentHandle['object'] }}"> | |
| 73 </any-service-ref> | |
| 74 </div> | |
| 75 </div> | |
| 76 </template> | |
| 77 </div> | |
| 78 </curly-block><br><br> | |
| 79 </template> | |
| 80 <br><br> | |
| 81 <template if="{{ weakPersistentHandles.isEmpty }}"> | |
| 82 <h1>Weak Persistent Handles (0)</h1> | |
| 83 <hr> | |
| 84 </template> | |
| 85 <template if="{{ weakPersistentHandles.isNotEmpty }}"> | |
| 86 <h1>Weak Persistent Handles ({{ weakPersistentHandles.length }})</h1> | |
| 87 <hr> | |
| 88 </template> | |
| 89 <table id="weakPersistentHandlesTable" class="flex-item-100-percent table"
> | |
| 90 <thead id="weakPersistentHandlesTableHead"> | |
| 91 <tr> | |
| 92 <th on-click="{{changeSort}}" class="clickable" title="External Size
">{{ weakPersistentHandlesTable.getColumnLabel(0) }}</th> | |
| 93 <th on-click="{{changeSort}}" class="clickable" title="Peer">{{ weak
PersistentHandlesTable.getColumnLabel(1) }}</th> | |
| 94 <th on-click="{{changeSort}}" class="clickable" title="Finalizer Cal
lback">{{ weakPersistentHandlesTable.getColumnLabel(2) }}</th> | |
| 95 <th class="spacer"></th> | |
| 96 <th on-click="{{changeSort}}" class="clickable" title="Object">{{ we
akPersistentHandlesTable.getColumnLabel(4) }}</th> | |
| 97 </tr> | |
| 98 </thead> | |
| 99 <tbody id="weakPersistentHandlesTableBody"> | |
| 100 </tbody> | |
| 101 </table> | |
| 102 <view-footer></view-footer> | |
| 103 </div> | |
| 104 </template> | |
| 105 </polymer-element> | |
| OLD | NEW |