Module: Infold::BuildDecorator

Defined in:
app/decorators/infold/build_decorator.rb

Instance Method Summary collapse

Instance Method Details

#status_i18n_badgeObject



3
4
5
6
7
8
9
10
11
12
13
# File 'app/decorators/infold/build_decorator.rb', line 3

def status_i18n_badge
  color = case status.to_sym
          when :error
            'danger-lighten'
          when :deployed
            'success-lighten'
          else
            'light'
          end
  "<span class=\"badge badge-#{color}\">#{status_i18n}</span>".html_safe
end