Class: TaskDecorator
- Inherits:
-
Sinatra::Decorator::Base
- Object
- Sinatra::Decorator::Base
- TaskDecorator
- Includes:
- FluentdServer::WebHelper
- Defined in:
- lib/fluentd_server/decorator.rb
Instance Method Summary collapse
Methods included from FluentdServer::WebHelper
#active_if, #bootstrap_flash, #disabled_if, #escape_url, #parse_query, #url_for
Instance Method Details
#link_to ⇒ Object
38 39 40 41 42 |
# File 'lib/fluentd_server/decorator.rb', line 38 def link_to %Q[<a href="#{h("/tasks/#{self.id}")}"> <span class="label label-success"> </span> ##{h(self.id)} #{h(self.name)} </a>] end |