diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-05-17 18:16:46 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-05-25 14:59:38 +0200 |
| commit | ed3c42cc79baba7bc8e90ff1f7d56103509d4d9d (patch) | |
| tree | 6fecd05e6f7cfe09c58a735968e1ed62c7ea8e38 | |
| parent | 0513b3e670c9ff1eb79183e59e0f7d46ea76d243 (diff) | |
dashboard: use external links in JobInfo
This will let us use the information not just on the web dashboard, but
also for external reportings.
| -rw-r--r-- | dashboard/app/jobs.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dashboard/app/jobs.go b/dashboard/app/jobs.go index d9834e413..b0d9a5e68 100644 --- a/dashboard/app/jobs.go +++ b/dashboard/app/jobs.go @@ -1425,10 +1425,10 @@ func makeJobInfo(c context.Context, job *Job, jobKey *db.Key, bug *Bug, build *B Started: job.LastStarted, Finished: job.Finished, CrashTitle: job.CrashTitle, - CrashLogLink: textLink(textCrashLog, job.CrashLog), - CrashReportLink: textLink(textCrashReport, job.CrashReport), - LogLink: textLink(textLog, job.Log), - ErrorLink: textLink(textError, job.Error), + CrashLogLink: externalLink(c, textCrashLog, job.CrashLog), + CrashReportLink: externalLink(c, textCrashReport, job.CrashReport), + LogLink: externalLink(c, textLog, job.Log), + ErrorLink: externalLink(c, textError, job.Error), Reported: job.Reported, TreeOrigin: job.TreeOrigin, OnMergeBase: job.MergeBaseRepo != "", |
