diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-06-26 15:59:06 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-06-26 14:20:25 +0000 |
| commit | d0c45d930b994cc90babaabf83b094b74f666e19 (patch) | |
| tree | 229ba49d25a685c4cbceb2c2251765ece05da4de | |
| parent | 880c1ca1d9289d57d785f043306f8b243edf4197 (diff) | |
dashboard: refactor job status links
Print OK only for non-failed and non-crashed jobs.
Print links to independent assets independently.
| -rw-r--r-- | dashboard/app/templates.html | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/dashboard/app/templates.html b/dashboard/app/templates.html index ffd7566ec..cf0611729 100644 --- a/dashboard/app/templates.html +++ b/dashboard/app/templates.html @@ -490,19 +490,21 @@ Use of this source code is governed by Apache 2 LICENSE that can be found in the <td class="result"> {{if $job.ErrorLink}} {{link $job.ErrorLink "error"}} - {{end}} - {{if $job.LogLink}} - {{link $job.LogLink "job log"}} - ({{if $job.Commit}}1{{else}}{{len $job.Commits}}{{end}}) - {{else if $job.CrashTitle}} + {{else if and $job.CrashTitle (eq $job.Type 0)}} {{optlink $job.CrashReportLink "report"}} {{else if formatTime $job.Finished}} OK + {{if ne $job.Type 0}} + ({{if $job.Commit}}1{{else}}{{len $job.Commits}}{{end}}) + {{end}} {{else if formatTime $job.Started}} running {{else}} pending {{end}} + {{if $job.LogLink}} + {{link $job.LogLink "job log"}} + {{end}} {{if $job.CrashLogLink}} {{optlink $job.CrashLogLink "log"}} {{end}} |
