code.gitea.io/gitea@v1.22.3/templates/shared/actions/runner_list.tmpl (about) 1 <div class="runner-container"> 2 3 <h4 class="ui top attached header"> 4 {{ctx.Locale.Tr "actions.runners.runner_manage_panel"}} ({{ctx.Locale.Tr "admin.total" .Total}}) 5 <div class="ui right"> 6 <div class="ui top right pointing dropdown"> 7 <button class="ui primary tiny button"> 8 {{ctx.Locale.Tr "actions.runners.new"}} 9 {{svg "octicon-triangle-down" 14 "dropdown icon"}} 10 </button> 11 <div class="menu"> 12 <div class="item"> 13 <a href="https://docs.gitea.com/usage/actions/act-runner">{{ctx.Locale.Tr "actions.runners.new_notice"}}</a> 14 </div> 15 <div class="divider"></div> 16 <div class="header"> 17 Registration Token 18 </div> 19 <div class="ui input"> 20 <input type="text" value="{{.RegistrationToken}}"> 21 <button class="ui basic label button" aria-label="{{ctx.Locale.Tr "copy"}}" data-clipboard-text="{{.RegistrationToken}}"> 22 {{svg "octicon-copy" 14}} 23 </button> 24 </div> 25 <div class="divider"></div> 26 <div class="item"> 27 <a href="{{$.Link}}/reset_registration_token">{{ctx.Locale.Tr "actions.runners.reset_registration_token"}}</a> 28 </div> 29 </div> 30 </div> 31 32 </div> 33 </h4> 34 <div class="ui attached segment"> 35 <form class="ui form ignore-dirty" id="user-list-search-form" action="{{$.Link}}"> 36 {{template "shared/search/combo" dict "Value" .Keyword "Placeholder" (ctx.Locale.Tr "search.runner_kind")}} 37 </form> 38 </div> 39 <div class="ui attached table segment"> 40 <table class="ui very basic striped table unstackable"> 41 <thead> 42 <tr> 43 <th data-sortt-asc="online" data-sortt-desc="offline"> 44 {{ctx.Locale.Tr "actions.runners.status"}} 45 {{SortArrow "online" "offline" .SortType false}} 46 </th> 47 <th data-sortt-asc="newest" data-sortt-desc="oldest"> 48 {{ctx.Locale.Tr "actions.runners.id"}} 49 {{SortArrow "oldest" "newest" .SortType false}} 50 </th> 51 <th data-sortt-asc="alphabetically" data-sortt-desc="reversealphabetically"> 52 {{ctx.Locale.Tr "actions.runners.name"}} 53 {{SortArrow "alphabetically" "reversealphabetically" .SortType false}} 54 </th> 55 <th>{{ctx.Locale.Tr "actions.runners.version"}}</th> 56 <th>{{ctx.Locale.Tr "actions.runners.owner_type"}}</th> 57 <th>{{ctx.Locale.Tr "actions.runners.labels"}}</th> 58 <th>{{ctx.Locale.Tr "actions.runners.last_online"}}</th> 59 <th>{{ctx.Locale.Tr "edit"}}</th> 60 </tr> 61 </thead> 62 <tbody> 63 {{if .Runners}} 64 {{range .Runners}} 65 <tr> 66 <td> 67 <span class="ui {{if .IsOnline}}green{{end}} label">{{.StatusLocaleName ctx.Locale}}</span> 68 </td> 69 <td>{{.ID}}</td> 70 <td><p data-tooltip-content="{{.Description}}">{{.Name}}</p></td> 71 <td>{{if .Version}}{{.Version}}{{else}}{{ctx.Locale.Tr "unknown"}}{{end}}</td> 72 <td><span data-tooltip-content="{{.BelongsToOwnerName}}">{{.BelongsToOwnerType.LocaleString ctx.Locale}}</span></td> 73 <td class="tw-flex tw-flex-wrap tw-gap-2 runner-tags"> 74 {{range .AgentLabels}}<span class="ui label">{{.}}</span>{{end}} 75 </td> 76 <td>{{if .LastOnline}}{{TimeSinceUnix .LastOnline ctx.Locale}}{{else}}{{ctx.Locale.Tr "never"}}{{end}}</td> 77 <td class="runner-ops"> 78 {{if .Editable $.RunnerOwnerID $.RunnerRepoID}} 79 <a href="{{$.Link}}/{{.ID}}">{{svg "octicon-pencil"}}</a> 80 {{end}} 81 </td> 82 </tr> 83 {{end}} 84 {{else}} 85 <tr> 86 <td class="center aligned" colspan="8">{{ctx.Locale.Tr "actions.runners.none"}}</td> 87 </tr> 88 {{end}} 89 </tbody> 90 </table> 91 </div> 92 93 {{template "base/paginate" .}} 94 95 </div>