mirror of
https://github.com/go-gitea/gitea.git
synced 2025-12-07 11:04:05 +09:00
Apply suggestions from code review
Co-authored-by: delvh <dev.lh@web.de>
This commit is contained in:
@@ -438,9 +438,9 @@
|
||||
<div class="inline field">
|
||||
<label>{{.locale.Tr "actions.actions"}}</label>
|
||||
{{if .UnitTypeActions.UnitGlobalDisabled}}
|
||||
<div class="ui checkbox tooltip disabled" data-content="{{.locale.Tr "repo.unit_disabled"}}">
|
||||
<div class="ui checkbox tooltip disabled" data-content="{{.locale.Tr "repo.unit_disabled"}}">
|
||||
{{else}}
|
||||
<div class="ui checkbox">
|
||||
<div class="ui checkbox">
|
||||
{{end}}
|
||||
<input class="enable-system" name="enable_actions" type="checkbox" {{if $isActionsEnabled}}checked{{end}}>
|
||||
<label>{{.locale.Tr "repo.settings.actions_desc"}}</label>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{{template "base/head" .}}
|
||||
<div class="page-content repository settings webhooks">
|
||||
<div class="page-content repository settings runners">
|
||||
{{template "repo/header" .}}
|
||||
{{template "repo/settings/navbar" .}}
|
||||
<div class="ui container">
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{{template "base/head" .}}
|
||||
<div class="page-content repository settings webhooks">
|
||||
<div class="page-content repository settings runners">
|
||||
{{template "repo/header" .}}
|
||||
{{template "repo/settings/navbar" .}}
|
||||
<div class="ui container">
|
||||
|
||||
@@ -8,15 +8,15 @@
|
||||
{{template "base/disable_form_autofill"}}
|
||||
{{.CsrfTokenHtml}}
|
||||
<div class="runner-basic-info">
|
||||
<div class="field dib">
|
||||
<div class="field dib disabled">
|
||||
<label>{{.locale.Tr "actions.runners.status"}}</label>
|
||||
<span class="runner-status-{{if .Runner.IsOnline}}online{{else}}offline{{end}}">{{.Runner.StatusName}}</span>
|
||||
</div>
|
||||
<div class="field dib">
|
||||
<div class="field dib disabled">
|
||||
<label>{{.locale.Tr "actions.runners.latest_online"}}</label>
|
||||
<span>{{TimeSinceUnix .Runner.LastOnline $.locale}}</span>
|
||||
</div>
|
||||
<div class="field dib">
|
||||
<div class="field dib disabled">
|
||||
<label>{{.locale.Tr "actions.runners.agent_labels"}}</label>
|
||||
<span>
|
||||
{{range .Runner.AgentLabels}}
|
||||
@@ -24,7 +24,7 @@
|
||||
{{end}}
|
||||
</span>
|
||||
</div>
|
||||
<div class="field dib">
|
||||
<div class="field dib disabled">
|
||||
<label>{{.locale.Tr "actions.runners.owner_type"}}</label>
|
||||
<span>{{.Runner.OwnType}}</span>
|
||||
</div>
|
||||
@@ -36,7 +36,7 @@
|
||||
<label for="description">{{.locale.Tr "actions.runners.description"}}</label>
|
||||
<input id="description" name="description" value="{{.Runner.Description}}">
|
||||
</div>
|
||||
<div class="field">
|
||||
<div class="field tooltip" data-content="Labels are comma-separated. Whitespace at the beginning, end, and around the commas are ignored.">
|
||||
<label for="custom_labels">{{.locale.Tr "actions.runners.custom_labels"}}</label>
|
||||
<input id="custom_labels" name="custom_labels" value="{{Join .Runner.CustomLabels `,`}}">
|
||||
<p class="help">{{.locale.Tr "actions.runners.custom_labels_helper"}}</p>
|
||||
|
||||
@@ -46,9 +46,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-sortt-asc="online" data-sortt-desc="offline">{{.locale.Tr "actions.runners.status"}}</th>
|
||||
<th data-sortt-asc="alphabetically">
|
||||
{{.locale.Tr "actions.runners.id"}}
|
||||
</th>
|
||||
<th data-sortt-asc="alphabetically">{{.locale.Tr "actions.runners.id"}}</th>
|
||||
<th>{{.locale.Tr "actions.runners.owner_type"}}</th>
|
||||
<th>{{.locale.Tr "actions.runners.labels"}}</th>
|
||||
<th>{{.locale.Tr "actions.runners.latest_online"}}</th>
|
||||
|
||||
Reference in New Issue
Block a user