app/helpers/jobs_helper.rb
# these statuses should be replaced by one method rather than
# this copy and paste horror below
these statuses should be replaced by one method rather than
this copy and paste horror below
these statuses should be replaced by one method rather than this copy and paste horror below
def jobstatus(type)
    status = "#{Vibrant::Application.config.dropbox}/#{type}/status.txt"
    data = ""
    if File.exists?(status)
      data += "<p><font color=\"red\">#{File.mtime(status)}:</font><br>\n"
      data += `cat #{status}`
    end
    return data.html_safe
  end
def jobstatus ( type ) status = "#{Vibrant::Application.config.dropbox}/#{type}/status.txt" data = "" if File . exists? ( status ) data += "<p><font color=\"red\">#{File.mtime(status)}:</font><br>\n" data += ` cat  #{ status } ` end return data . html_safe end
these statuses should be replaced by one method rather than
this copy and paste horror below
these statuses should be replaced by one method rather than this copy and paste horror below
type
<not_specific>