Skip to content
This repository was archived by the owner on Mar 23, 2023. It is now read-only.

Commit ffbfff9

Browse files
Remove legacy helper method
1 parent ee6a3f0 commit ffbfff9

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

app/helpers/jobs_helper.rb

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,6 @@ def authorised_job_owner?(job)
3737
(user_signed_in? && job.user_id == current_user.id)
3838
end
3939

40-
def job_status(job)
41-
status = 'Job '
42-
43-
if job.online?
44-
status += 'is online'
45-
alert_class = 'alert alert-success text-center'
46-
elsif job.disabled?
47-
status += 'has expired'
48-
alert_class = 'alert alert-danger text-center'
49-
else
50-
status += 'is ' + job.aasm.human_state
51-
alert_class = 'alert alert-warning text-center'
52-
end
53-
54-
return content_tag(:div, status, class: alert_class, role: 'alert')
55-
end
56-
5740
def show_job_status(job)
5841
job_status = ""
5942
selected = false
@@ -71,7 +54,6 @@ def show_job_status(job)
7154
job_status += content_tag(:li, class: css_class) do
7255
content_tag(:span) do
7356
custom_state_name
74-
# job.aasm.human_state
7557
end
7658
end
7759
end

0 commit comments

Comments
 (0)