Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OTWO-7350 display project id on admin page #1806

Merged
merged 1 commit into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions app/views/admin/jobs/_job_links.html.arb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ para ''

if job.project_id
project = Project.find(job.project_id)
span 'Project Id: '
span link_to project.id, project_path(project)
para ''
span 'Project: '
span link_to project.name, project_path(project)
span link_to '(Jobs)', admin_project_jobs_path(project)
Expand Down
2 changes: 2 additions & 0 deletions app/views/oh_admin/jobs/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
%tr
%th Type
%th Job Id
%th Project Id
%th Priority
%th Current Step At
%th.text-left Progress
Expand All @@ -29,6 +30,7 @@
%tr
%td= entry.keys[0].titleize
%td= link_to(job['id'], admin_job_path(id: job['id']))
%td= link_to(job['project_id'], project_url(@project))
%td.text-left= job['priority']
%td.text-left= current_step_at(job['current_step_at'])
%td
Expand Down