Orbit/lib/orbit_app/helper/context_link_renderer.rb

12 lines
326 B
Ruby
Raw Normal View History

module ContextLinkRenderer
include Renderer
def render(request,params)
@request = request
@params = params
if display?
content_tag :li, link_to((I18n.t(@label_i18n) + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, eval(@path)), :class => (active? ? 'active' : nil)
end
end
end