Skip to content

Commit bc16f69

Browse files
committed
fix
1 parent c2c04ff commit bc16f69

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

templates/shared/actions/runner_list.tmpl

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,27 +64,23 @@
6464
</tr>
6565
</thead>
6666
<tbody>
67-
{{if .Runners}}
68-
{{range .Runners}}
67+
{{range .Runners}}
6968
<tr>
70-
<td>
71-
<span class="ui {{if .IsOnline}}green{{end}} label">{{.StatusLocaleName ctx.Locale}}</span>
72-
</td>
69+
<td><span class="ui label {{if .IsOnline}}green{{end}}">{{.StatusLocaleName ctx.Locale}}</span></td>
7370
<td>{{.ID}}</td>
7471
<td><p data-tooltip-content="{{.Description}}">{{.Name}}</p></td>
7572
<td>{{if .Version}}{{.Version}}{{else}}{{ctx.Locale.Tr "unknown"}}{{end}}</td>
7673
<td><span data-tooltip-content="{{.BelongsToOwnerName}}">{{.BelongsToOwnerType.LocaleString ctx.Locale}}</span></td>
77-
<td class="tw-flex tw-flex-wrap tw-gap-2 runner-tags">
78-
{{range .AgentLabels}}<span class="ui label">{{.}}</span>{{end}}
74+
<td>
75+
<span class="flex-text-inline">{{range .AgentLabels}}<span class="ui label">{{.}}</span>{{end}}</span>
7976
</td>
8077
<td>{{if .LastOnline}}{{DateUtils.TimeSince .LastOnline}}{{else}}{{ctx.Locale.Tr "never"}}{{end}}</td>
81-
<td class="runner-ops">
82-
{{if .Editable $.RunnerOwnerID $.RunnerRepoID}}
83-
<a href="{{$.Link}}/{{.ID}}">{{svg "octicon-pencil"}}</a>
78+
<td>
79+
{{if .EditableInContext $.RunnerOwnerID $.RunnerRepoID}}
80+
<a class="text red" href="{{$.Link}}/{{.ID}}">{{svg "octicon-pencil"}}</a>
8481
{{end}}
8582
</td>
8683
</tr>
87-
{{end}}
8884
{{else}}
8985
<tr>
9086
<td class="tw-text-center" colspan="8">{{ctx.Locale.Tr "actions.runners.none"}}</td>

web_src/css/actions.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@
66
overflow-x: auto;
77
}
88

9-
.runner-container .runner-ops > a {
10-
margin-left: 0.5em;
11-
}
12-
13-
.runner-container .runner-ops-delete {
14-
color: var(--color-red-light);
15-
}
16-
179
.runner-container .runner-new-text {
1810
color: var(--color-white);
1911
}

0 commit comments

Comments
 (0)