This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/lib/orbit_app/helper/context_link_renderer.rb

12 lines
326 B
Ruby

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