app/helpers/user_workspaces_helper.rb
# get a label for a workflow status code
get a label for a workflow status code
get a label for a workflow status code
def submission_status_label(status)
    case status
    when 'Queued'
      label_class = 'secondary'
    when 'Submitted'
      label_class = 'info'
    when 'Running'
      label_class = 'primary'
    when 'Done'
      label_class = 'success'
    when 'Aborting'
      label_class = 'warning'
    when 'Aborted'
      label_class = 'danger'
    else
      label_class = 'dark'
    end
    "<span class='badge badge-#{label_class}'>#{status}</span>".html_safe
  end
def submission_status_label ( status ) case status when 'Queued' label_class = 'secondary' when 'Submitted' label_class = 'info' when 'Running' label_class = 'primary' when 'Done' label_class = 'success' when 'Aborting' label_class = 'warning' when 'Aborted' label_class = 'danger' else label_class = 'dark' end "<span class='badge badge-#{label_class}'>#{status}</span>" . html_safe end
get a label for a workflow status code
get a label for a workflow status code
status
<not_specific>