github.com/outbrain/consul@v1.4.5/ui-v2/app/templates/dc/nodes/show.hbs (about) 1 {{#app-view class="node show"}} 2 {{#block-slot 'notification' as |status type|}} 3 {{!TODO: Move sessions to its own folder within nodes }} 4 {{partial 'dc/nodes/notifications'}} 5 {{/block-slot}} 6 {{#block-slot 'breadcrumbs'}} 7 <ol> 8 <li><a data-test-back href={{href-to 'dc.nodes'}}>All Nodes</a></li> 9 </ol> 10 {{/block-slot}} 11 {{#block-slot 'header'}} 12 <h1> 13 {{ item.Node }} 14 </h1> 15 <label for="toolbar-toggle"></label> 16 {{tab-nav 17 items=(compact 18 (array 19 'Health Checks' 20 'Services' 21 (if tomography 'Round Trip Time' '') 22 'Lock Sessions' 23 ) 24 ) 25 selected=selectedTab 26 }} 27 {{/block-slot}} 28 {{#block-slot 'actions'}} 29 {{#feedback-dialog type='inline'}} 30 {{#block-slot 'action' as |success error|}} 31 {{#copy-button success=(action success) error=(action error) clipboardText=item.Address title='copy IP address to clipboard'}} 32 {{item.Address}} 33 {{/copy-button}} 34 {{/block-slot}} 35 {{#block-slot 'success' as |transition|}} 36 <p class={{transition}}> 37 Copied IP Address! 38 </p> 39 {{/block-slot}} 40 {{#block-slot 'error' as |transition|}} 41 <p class={{transition}}> 42 Sorry, something went wrong! 43 </p> 44 {{/block-slot}} 45 {{/feedback-dialog}} 46 {{/block-slot}} 47 {{#block-slot 'content'}} 48 {{#each 49 (compact 50 (array 51 (hash id=(slugify 'Health Checks') partial='dc/nodes/healthchecks') 52 (hash id=(slugify 'Services') partial='dc/nodes/services') 53 (if tomography (hash id=(slugify 'Round Trip Time') partial='dc/nodes/rtt') '') 54 (hash id=(slugify 'Lock Sessions') partial='dc/nodes/sessions') 55 ) 56 ) as |panel| 57 }} 58 {{#tab-section id=panel.id selected=(eq (if selectedTab selectedTab '') panel.id) onchange=(action "change")}} 59 {{partial panel.partial}} 60 {{/tab-section}} 61 {{/each}} 62 {{/block-slot}} 63 {{/app-view}}