aboutsummaryrefslogtreecommitdiffstats
path: root/templates/shared/actions
diff options
context:
space:
mode:
authorsillyguodong <33891828+sillyguodong@users.noreply.github.com>2023-03-20 10:19:40 +0800
committerGitHub <noreply@github.com>2023-03-19 22:19:40 -0400
commit371520d7ab5c018c380f8f7981a8be7d40a01f72 (patch)
tree084dd96049824c148aee3139a48e627d0281f37b /templates/shared/actions
parentaf3711100a7dc73e8c2482667bbccdcd049e25e0 (diff)
downloadgitea-371520d7ab5c018c380f8f7981a8be7d40a01f72.tar.gz
gitea-371520d7ab5c018c380f8f7981a8be7d40a01f72.zip
Display the version of runner in the runner list (#23490)
Close: #23489 ### Change 1. Add version column to action_runner table. 2. Read the runner version from the request header, and update it in DB. 3. Display version in runner list ### Screenshot ![image](https://user-images.githubusercontent.com/33891828/225220990-98bc0158-4403-4e6c-9805-31bbbc65a802.png)
Diffstat (limited to 'templates/shared/actions')
-rw-r--r--templates/shared/actions/runner_list.tmpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/shared/actions/runner_list.tmpl b/templates/shared/actions/runner_list.tmpl
index 30c52c01b4..dd2e43f816 100644
--- a/templates/shared/actions/runner_list.tmpl
+++ b/templates/shared/actions/runner_list.tmpl
@@ -49,6 +49,7 @@
<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>{{.locale.Tr "actions.runners.name"}}</th>
+ <th>{{.locale.Tr "actions.runners.version"}}</th>
<th>{{.locale.Tr "actions.runners.owner_type"}}</th>
<th>{{.locale.Tr "actions.runners.labels"}}</th>
<th>{{.locale.Tr "actions.runners.last_online"}}</th>
@@ -64,6 +65,7 @@
</td>
<td>{{.ID}}</td>
<td><p class="tooltip" data-content="{{.Description}}">{{.Name}}</p></td>
+ <td>{{.Version}}</td>
<td>{{.OwnType}}</td>
<td class="runner-tags">
{{range .AllLabels}}<span class="ui label">{{.}}</span>{{end}}