Class: TaskDecorator

Inherits:
Sinatra::Decorator::Base
  • Object
show all
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



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">&nbsp;</span> ##{h(self.id)} #{h(self.name)}
  </a>]
end