cirandas.net

ref: master

app/helpers/enterprise_validation_helper.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
module EnterpriseValidationHelper

  def status(create_enterprise)
    if create_enterprise.approved?
      # FIXME: aurelio
      return content_tag('span', _('Approved'), :class => 'validation_approved', :style => 'color: green; font-weight: bold;')
    end

    if create_enterprise.rejected?
      # FIXME: aurelio
      return content_tag('span', _('Rejected'), :class => 'validation_rejected', :style => 'color: red; font-weight: bold;')
    end
  end

end