Sha256: 520d9e90a954f79a02e0430d6a41ab5338827b6199397095aa06fac858fe49c6

Contents?: true

Size: 239 Bytes

Versions: 34

Compression:

Stored size: 239 Bytes

Contents

class PluginDecorator < Draper::Decorator
  delegate_all

  def status
    if processing?
      I18n.t("terms.processing")
    elsif installed?
      I18n.t("terms.installed")
    else
      I18n.t("terms.not_installed")
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
fluentd-ui-0.3.14 app/decorators/plugin_decorator.rb
fluentd-ui-0.3.13 app/decorators/plugin_decorator.rb
fluentd-ui-0.3.12 app/decorators/plugin_decorator.rb
fluentd-ui-0.3.11 app/decorators/plugin_decorator.rb
fluentd-ui-0.3.10 app/decorators/plugin_decorator.rb
fluentd-ui-0.3.9 app/decorators/plugin_decorator.rb
fluentd-ui-0.3.8 app/decorators/plugin_decorator.rb
fluentd-ui-0.3.7 app/decorators/plugin_decorator.rb
fluentd-ui-0.3.6 app/decorators/plugin_decorator.rb
fluentd-ui-0.3.5 app/decorators/plugin_decorator.rb
fluentd-ui-0.3.3 app/decorators/plugin_decorator.rb
fluentd-ui-0.3.2 app/decorators/plugin_decorator.rb
fluentd-ui-0.3.1 app/decorators/plugin_decorator.rb
fluentd-ui-0.3.0 app/decorators/plugin_decorator.rb