github.com/hernad/nomad@v1.6.112/ui/app/templates/jobs/job/services/index.hbs (about)

     1  {{!
     2    Copyright (c) HashiCorp, Inc.
     3    SPDX-License-Identifier: MPL-2.0
     4  ~}}
     5  
     6  <section class="section service-list">
     7  	{{#if this.sortedServices.length}}
     8  		<ListTable
     9  			@source={{this.sortedServices}}
    10  			@sortProperty={{this.sortProperty}}
    11  			@sortDescending={{this.sortDescending}}
    12  			as |t|
    13  		>
    14  			<t.head>
    15  				<t.sort-by @prop="name">Name</t.sort-by>
    16  				<t.sort-by @prop="level">Level</t.sort-by>
    17  				<th>Tags</th>
    18  				<t.sort-by @prop="numAllocs">Number of Alocations</t.sort-by>
    19  			</t.head>
    20  			<t.body as |row|>
    21  				<JobServiceRow
    22  					{{keyboard-shortcut 
    23  						enumerated=true
    24  						action=(action "gotoService" row.model)
    25  					}}
    26  					@service={{row.model}}
    27  				/>
    28  			</t.body>
    29  		</ListTable>
    30  	{{else}}
    31  		<div class="boxed-section-body">
    32  			<div class="empty-message" data-test-empty-services-list>
    33  				<h3 class="empty-message-headline" data-test-empty-services-list-headline>
    34  					No Services
    35  				</h3>
    36  				<p class="empty-message-body">
    37  					No services running on {{this.job.name}}.
    38  				</p>
    39  			</div>
    40  		</div>
    41  	{{/if}}
    42  </section>