Skip to content

Commit

Permalink
Show SUSPENDED label in job definition list
Browse files Browse the repository at this point in the history
  • Loading branch information
takonomura committed Jan 29, 2018
1 parent b21749d commit 0019098
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
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

0 comments on commit 0019098

Please sign in to comment.