Skip to content

Commit

Permalink
feat: add links to logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Mar 13, 2024
1 parent 5eef4ee commit d975fb5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
6 changes: 4 additions & 2 deletions frontend/src/pages/jobs/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@
<br/>
Package(s) not built due to previous build failure: {{ job.skipped_packages }}
<br/>
Log: {{ job.log_url }}
<br/>
<div v-if="job.log_url !== null && job.log_url !== undefined">
Log: <a :href="job.log_url">Raw</a> or <a :href="job.log_url.replace('/logs/', '/web-logs/')">Web Viewer</a>
<br/>
</div>
Status: {{ job.status }}
</v-card-text>
</v-card>
Expand Down
12 changes: 7 additions & 5 deletions frontend/src/pages/workers/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@
<br/>
Last heartbeat time: {{ worker.last_heartbeat_time }}
<br/>
Running job id:
<router-link v-if="worker.running_job_id !== undefined" :to="{ path: `/workers/${worker.running_job_id}` }">
{{ worker.running_job_id }}
</router-link>
<br/>
<div v-if="worker.running_job_id !== undefined && worker.running_job_id !== null">
Running job id:
<router-link :to="{ path: `/workers/${worker.running_job_id}` }">
{{ worker.running_job_id }}
</router-link>
<br/>
</div>
Built job count: {{ worker.built_job_count }}
</v-card-text>
</v-card>
Expand Down

0 comments on commit d975fb5

Please sign in to comment.