diff options
author | yp05327 <576951401@qq.com> | 2023-05-12 17:43:27 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-12 08:43:27 +0000 |
commit | 49808136c5af5946851c5486d4630482d79eff8b (patch) | |
tree | 0e1d5ef1b5e5abf3d01b53e8471b8ad390c2f4f9 /templates | |
parent | 4aec1f87a4affe606e96e27c2e8660092aac3afb (diff) | |
download | gitea-49808136c5af5946851c5486d4630482d79eff8b.tar.gz gitea-49808136c5af5946851c5486d4630482d79eff8b.zip |
Display owner of a runner as a tooltip instead of static text (#24377)
Before:
![image](https://user-images.githubusercontent.com/18380374/234779250-8bbd325c-190e-4a30-ac3e-766498d17df5.png)
After:
![image](https://user-images.githubusercontent.com/18380374/234779094-e232ecba-d9f4-4d62-a702-6d5e4a522782.png)
![image](https://user-images.githubusercontent.com/18380374/234779120-0293af17-a566-4b69-b454-af4e95844e3b.png)
---------
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Giteabot <teabot@gitea.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/shared/actions/runner_edit.tmpl | 10 | ||||
-rw-r--r-- | templates/shared/actions/runner_list.tmpl | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/templates/shared/actions/runner_edit.tmpl b/templates/shared/actions/runner_edit.tmpl index 94da2269b7..657d565d64 100644 --- a/templates/shared/actions/runner_edit.tmpl +++ b/templates/shared/actions/runner_edit.tmpl @@ -7,15 +7,15 @@ {{template "base/disable_form_autofill"}} {{.CsrfTokenHtml}} <div class="runner-basic-info"> - <div class="field gt-dib gt-mr-4 disabled"> + <div class="field gt-dib gt-mr-4"> <label>{{.locale.Tr "actions.runners.status"}}</label> <span class="runner-status-{{if .Runner.IsOnline}}online{{else}}offline{{end}}">{{.Runner.StatusLocaleName $.locale}}</span> </div> - <div class="field gt-dib gt-mr-4 disabled"> + <div class="field gt-dib gt-mr-4"> <label>{{.locale.Tr "actions.runners.last_online"}}</label> <span>{{if .LastOnline}}{{TimeSinceUnix .LastOnline $.locale}}{{else}}{{$.locale.Tr "never"}}{{end}}</span> </div> - <div class="field gt-dib gt-mr-4 disabled"> + <div class="field gt-dib gt-mr-4"> <label>{{.locale.Tr "actions.runners.agent_labels"}}</label> <span> {{range .Runner.AgentLabels}} @@ -23,9 +23,9 @@ {{end}} </span> </div> - <div class="field gt-dib gt-mr-4 disabled"> + <div class="field gt-dib gt-mr-4"> <label>{{.locale.Tr "actions.runners.owner_type"}}</label> - <span>{{.Runner.OwnType}}</span> + <span data-tooltip-content="{{.Runner.BelongsToOwnerName}}">{{.Runner.BelongsToOwnerType.LocaleString $.locale}}</span> </div> </div> diff --git a/templates/shared/actions/runner_list.tmpl b/templates/shared/actions/runner_list.tmpl index f8b056ae7a..7c786d8807 100644 --- a/templates/shared/actions/runner_list.tmpl +++ b/templates/shared/actions/runner_list.tmpl @@ -65,7 +65,7 @@ <td>{{.ID}}</td> <td><p data-tooltip-content="{{.Description}}">{{.Name}}</p></td> <td>{{if .Version}}{{.Version}}{{else}}{{$.locale.Tr "unknown"}}{{end}}</td> - <td>{{.OwnType}}</td> + <td><span data-tooltip-content="{{.BelongsToOwnerName}}">{{.BelongsToOwnerType.LocaleString $.locale}}<span></td> <td class="runner-tags"> {{range .AllLabels}}<span class="ui label">{{.}}</span>{{end}} </td> |