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

Show SUSPENDED label to list of job definitions #99

Merged
merged 1 commit into from
Jan 29, 2018
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
5 changes: 4 additions & 1 deletion app/views/kuroko2/job_definitions/_list.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
- for definition in definitions
tr
td= definition.id
td.no-decorate= link_to definition.name, definition
td.no-decorate
- if definition.suspended
span.label.label-warning.spacer-right-3 SUSPENDED
= link_to definition.name, definition
- if !definition.suspended? && !definition.job_schedules.empty?
- next_job_schedule = definition.job_schedules.map(&:next).min
- if next_job_schedule
Expand Down
5 changes: 4 additions & 1 deletion app/views/kuroko2/job_definitions/_search_results.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@
span.star-holder
= star_link_for(definition)
td= definition.id
td.no-decorate= link_to definition.name, definition
td.no-decorate
- if definition.suspended
span.label.label-warning.spacer-right-3 SUSPENDED
= link_to definition.name, definition
td.no-decorate
- definition.admins.each do |user|
= link_to user.name, user_path(user)
Expand Down