code.gitea.io/gitea@v1.22.3/templates/shared/actions/runner_edit.tmpl (about)

     1  <div class="runner-container">
     2  	<h4 class="ui top attached header">
     3  		{{ctx.Locale.Tr "actions.runners.runner_title"}} {{.Runner.ID}} {{.Runner.Name}}
     4  	</h4>
     5  	<div class="ui attached segment">
     6  		<form class="ui form" method="post">
     7  			{{template "base/disable_form_autofill"}}
     8  			{{.CsrfTokenHtml}}
     9  			<div class="runner-basic-info">
    10  				<div class="field tw-inline-block tw-mr-4">
    11  					<label>{{ctx.Locale.Tr "actions.runners.status"}}</label>
    12  					<span class="ui {{if .Runner.IsOnline}}green{{else}}basic{{end}} label">{{.Runner.StatusLocaleName ctx.Locale}}</span>
    13  				</div>
    14  				<div class="field tw-inline-block tw-mr-4">
    15  					<label>{{ctx.Locale.Tr "actions.runners.last_online"}}</label>
    16  					<span>{{if .Runner.LastOnline}}{{TimeSinceUnix .Runner.LastOnline ctx.Locale}}{{else}}{{ctx.Locale.Tr "never"}}{{end}}</span>
    17  				</div>
    18  				<div class="field tw-inline-block tw-mr-4">
    19  					<label>{{ctx.Locale.Tr "actions.runners.labels"}}</label>
    20  					<span>
    21  						{{range .Runner.AgentLabels}}
    22  						<span class="ui label">{{.}}</span>
    23  						{{end}}
    24  					</span>
    25  				</div>
    26  				<div class="field tw-inline-block tw-mr-4">
    27  					<label>{{ctx.Locale.Tr "actions.runners.owner_type"}}</label>
    28  					<span data-tooltip-content="{{.Runner.BelongsToOwnerName}}">{{.Runner.BelongsToOwnerType.LocaleString ctx.Locale}}</span>
    29  				</div>
    30  			</div>
    31  
    32  			<div class="divider"></div>
    33  
    34  			<div class="field">
    35  				<label for="description">{{ctx.Locale.Tr "actions.runners.description"}}</label>
    36  				<input id="description" name="description" value="{{.Runner.Description}}">
    37  			</div>
    38  
    39  			<div class="divider"></div>
    40  
    41  			<div class="field">
    42  				<button class="ui primary button" data-url="{{.Link}}">{{ctx.Locale.Tr "actions.runners.update_runner"}}</button>
    43  				<button class="ui red button delete-button show-modal" data-url="{{.Link}}/delete" data-modal="#runner-delete-modal">
    44  					{{ctx.Locale.Tr "actions.runners.delete_runner"}}</button>
    45  			</div>
    46  		</form>
    47  	</div>
    48  
    49  	<h4 class="ui top attached header">
    50  		{{ctx.Locale.Tr "actions.runners.task_list"}}
    51  	</h4>
    52  	<div class="ui attached segment">
    53  		<table class="ui very basic striped table unstackable">
    54  			<thead>
    55  				<tr>
    56  					<th>{{ctx.Locale.Tr "actions.runners.task_list.run"}}</th>
    57  					<th>{{ctx.Locale.Tr "actions.runners.task_list.status"}}</th>
    58  					<th>{{ctx.Locale.Tr "actions.runners.task_list.repository"}}</th>
    59  					<th>{{ctx.Locale.Tr "actions.runners.task_list.commit"}}</th>
    60  					<th>{{ctx.Locale.Tr "actions.runners.task_list.done_at"}}</th>
    61  				</tr>
    62  			</thead>
    63  			<tbody>
    64  				{{range .Tasks}}
    65  				<tr>
    66  					<td><a href="{{.GetRunLink}}" target="_blank">{{.ID}}</a></td>
    67  					<td><span class="ui label task-status-{{.Status.String}}">{{.Status.LocaleString ctx.Locale}}</span></td>
    68  					<td><a href="{{.GetRepoLink}}" target="_blank">{{.GetRepoName}}</a></td>
    69  					<td>
    70  						<strong><a href="{{.GetCommitLink}}" target="_blank">{{ShortSha .CommitSHA}}</a></strong>
    71  					</td>
    72  					<td>{{if .IsStopped}}
    73  						<span>{{TimeSinceUnix .Stopped ctx.Locale}}</span>
    74  						{{else}}-{{end}}</td>
    75  				</tr>
    76  				{{end}}
    77  				{{if not .Tasks}}
    78  				<tr>
    79  					<td colspan="5">{{ctx.Locale.Tr "actions.runners.task_list.no_tasks"}}</td>
    80  				</tr>
    81  				{{end}}
    82  			</tbody>
    83  		</table>
    84  		{{template "base/paginate" .}}
    85  	</div>
    86  	<div class="ui g-modal-confirm delete modal" id="runner-delete-modal">
    87  		<div class="header">
    88  			{{svg "octicon-trash"}}
    89  			{{ctx.Locale.Tr "actions.runners.delete_runner_header"}}
    90  		</div>
    91  		<div class="content">
    92  			<p>{{ctx.Locale.Tr "actions.runners.delete_runner_notice"}}</p>
    93  		</div>
    94  		{{template "base/modal_actions_confirm" .}}
    95  	</div>
    96  </div>