github.com/outbrain/consul@v1.4.5/ui-v2/app/templates/components/app-view.hbs (about) 1 {{yield}} 2 {{#if (not loading)}} 3 <header> 4 {{#each flashMessages.queue as |flash|}} 5 {{#flash-message flash=flash as |component flash|}} 6 {{! flashes automatically ucfirst the type }} 7 8 <p data-notification class="{{if (eq component.flashType 'Success') 'success' 'error'}} notification-{{lowercase flash.action}}"><strong>{{if (eq component.flashType 'Success') 'Success!' 'Error!'}}</strong> {{#yield-slot 'notification' (block-params (lowercase component.flashType) (lowercase flash.action) flash.item )}}{{yield}}{{/yield-slot}}</p> 9 {{/flash-message}} 10 {{/each}} 11 <div> 12 <div class="actions"> 13 {{#if authorized}} 14 {{#yield-slot 'actions'}}{{yield}}{{/yield-slot}} 15 {{/if}} 16 </div> 17 18 <div> 19 {{#if authorized}} 20 <nav aria-label="Breadcrumb"> 21 {{#yield-slot 'breadcrumbs'}}{{yield}}{{/yield-slot}} 22 </nav> 23 {{/if}} 24 {{#yield-slot 'header'}}{{yield}}{{/yield-slot}} 25 </div> 26 </div> 27 {{#if authorized}} 28 {{#yield-slot 'toolbar'}} 29 <input type="checkbox" id="toolbar-toggle" /> 30 {{yield}} 31 {{/yield-slot}} 32 {{/if}} 33 </header> 34 {{/if}} 35 <div> 36 {{#if loading}} 37 {{partial 'consul-loading'}} 38 {{else}} 39 {{#if (not enabled) }} 40 {{#yield-slot 'disabled'}}{{yield}}{{/yield-slot}} 41 {{else if (not authorized)}} 42 {{#yield-slot 'authorization'}}{{yield}}{{/yield-slot}} 43 {{else}} 44 {{#yield-slot 'content'}}{{yield}}{{/yield-slot}} 45 {{/if}} 46 {{/if}} 47 </div>