From ed3c42cc79baba7bc8e90ff1f7d56103509d4d9d Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Wed, 17 May 2023 18:16:46 +0200 Subject: dashboard: use external links in JobInfo This will let us use the information not just on the web dashboard, but also for external reportings. --- dashboard/app/jobs.go | 8 ++++---- 1 file 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 != "", -- cgit mrf-deployment