12 lines
326 B
Ruby
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
|