module ReportsHelper

  def status_name(status_id)
    Report::STATUS_LIST[status_id]
  end

  def vote_link_for(report)
    if user_signed_in? && !current_user.voted_on?(report)
      link_to 'VOTA', vote_report_path(report), :remote => true, :method => :post, :class => "js-vote_report", class: "button blue rounded"
    elsif user_signed_in? && current_user.voted_on?(report)
      link_to 'VOTASTE', "javascript:void(0)", class: "button green"
    elsif admin_signed_in?
      link_to 'VOTA', "javascript:void(0)", { class: "button green blocked", data: { message: "Los administradores no pueden votar." } }
    else
      link_to 'VOTA', "javascript:void(0)", { class: "button green blocked", data: { message: "Para votar necesitas registrarte." } }
    end
  end

end

module ReportsHelper

  def status_name(status_id)
    Report::STATUS_LIST[status_id.to_sym]
  end

  def vote_link_for(report)
    if user_signed_in? && !current_user.voted_on?(report)
      link_to 'VOTA', vote_report_path(report), :remote => true, :method => :post, :class => "js-vote_report", class: "button blue rounded"
    elsif user_signed_in? && current_user.voted_on?(report)
      link_to 'VOTASTE', "javascript:void(0)", class: "button green"
    elsif admin_signed_in?
      link_to 'VOTA', "javascript:void(0)", { class: "button green blocked", data: { message: "Los administradores no pueden votar." } }
    else
      link_to 'VOTA', "javascript:void(0)", { class: "button green blocked", data: { message: "Para votar necesitas registrarte." } }
    end
  end

end

Fix for getting status name
Fix for getting status name