File tree Expand file tree Collapse file tree 3 files changed +36
-19
lines changed Expand file tree Collapse file tree 3 files changed +36
-19
lines changed Original file line number Diff line number Diff line change 11<div class="issue list">
22 {{range .Runs}}
33 <li class="item gt-df gt-py-3 gt-ab">
4- <div class="issue-item-left gt-df">
5- {{template "repo/actions/status" .Status}}
4+ <div class="issue-item-left gt-df gt-mr-2 ">
5+ {{template "repo/actions/status" (dict "status" .Status.String) }}
66 </div>
77 <div class="issue-item-main action-item-main gt-f1 gt-fc gt-df gt-mr-3">
88 <div class="issue-item-top-row">
Original file line number Diff line number Diff line change 1- {{if .IsWaiting}}
2- <i class="commit-status circle icon gray"></i>
3- {{end}}
4- {{if .IsRunning}}
5- <i class="commit-status circle icon yellow"></i>
6- {{end}}
7- {{if .IsSuccess}}
8- <i class="commit-status check icon green"></i>
9- {{end}}
10- {{if .IsFailure}}
11- <i class="commit-status warning icon red"></i>
1+ <!-- This template should be kept the same as web_src/js/components/ActionRunStatus.vue
2+ Please also update the vue file above if this template is modified.
3+ -->
4+ {{- $size := 16 -}}
5+ {{- if .size -}}
6+ {{- $size = .size -}}
7+ {{- end -}}
8+
9+ {{- $className := "" -}}
10+ {{- if .className -}}
11+ {{- $className = .className -}}
12+ {{- end -}}
13+
14+ {{if eq .status "success"}}
15+ {{svg "octicon-check-circle-fill" $size (printf "text green %s" $className)}}
16+ {{else if eq .status "skipped"}}
17+ {{svg "octicon-skip" $size (printf "text grey %s" $className)}}
18+ {{else if eq .status "waiting"}}
19+ {{svg "octicon-clock" $size (printf "text yellow %s" $className)}}
20+ {{else if eq .status "blocked"}}
21+ {{svg "octicon-blocked" $size (printf "text yellow %s" $className)}}
22+ {{else if eq .status "running"}}
23+ {{svg "octicon-meter" $size (printf "text yellow job-status-rotate %s" $className)}}
24+ {{else}}
25+ {{svg "octicon-x-circle-fill" $size (printf "text red %s" $className)}}
1226{{end}}
Original file line number Diff line number Diff line change 1+ <!-- This vue should be kept the same as templates/repo/actions/status.tmpl
2+ Please also update the template file above if this vue is modified.
3+ -->
14<template >
2- <SvgIcon name =" octicon-check-circle-fill" class =" ui text green" :size =" size" :class-name =" className" v-if =" status === 'success'" />
3- <SvgIcon name =" octicon-skip" class =" ui text grey" :size =" size" :class-name =" className" v-else-if =" status === 'skipped'" />
4- <SvgIcon name =" octicon-clock" class =" ui text yellow" :size =" size" :class-name =" className" v-else-if =" status === 'waiting'" />
5- <SvgIcon name =" octicon-blocked" class =" ui text yellow" :size =" size" :class-name =" className" v-else-if =" status === 'blocked'" />
6- <SvgIcon name =" octicon-meter" class =" ui text yellow" :size =" size" :class-name =" 'job-status-rotate ' + className" v-else-if =" status === 'running'" />
7- <SvgIcon name =" octicon-x-circle-fill" class =" ui text red" :size =" size" v-else />
5+ <SvgIcon name =" octicon-check-circle-fill" class =" text green" :size =" size" :class-name =" className" v-if =" status === 'success'" />
6+ <SvgIcon name =" octicon-skip" class =" text grey" :size =" size" :class-name =" className" v-else-if =" status === 'skipped'" />
7+ <SvgIcon name =" octicon-clock" class =" text yellow" :size =" size" :class-name =" className" v-else-if =" status === 'waiting'" />
8+ <SvgIcon name =" octicon-blocked" class =" text yellow" :size =" size" :class-name =" className" v-else-if =" status === 'blocked'" />
9+ <SvgIcon name =" octicon-meter" class =" text yellow" :size =" size" :class-name =" 'job-status-rotate ' + className" v-else-if =" status === 'running'" />
10+ <SvgIcon name =" octicon-x-circle-fill" class =" text red" :size =" size" v-else />
811</template >
912
1013<script >
You can’t perform that action at this time.
0 commit comments