module ApplicationHelper
def nav_link(name, path, options = {})
(<<-HTML).html_safe
#{link_to name, path}
HTML
end
def working(agent)
if agent.working?
'Yes'.html_safe
else
link_to 'No'.html_safe, agent_path(agent, :tab => (agent.recent_error_logs? ? 'logs' : 'details'))
end
end
end