Sha256: b3bf89cf5f7c23ce5d419b5806b12a825ea6d5cde8fad7685482a0c9a3e209e7
Contents?: true
Size: 338 Bytes
Versions: 30
Compression:
Stored size: 338 Bytes
Contents
module PageHelper def link_to_page(page) link_to page.data.fetch("title", page.request_path), page.request_path end def link_to_if_current(text, page, active_class: "active") if page == current_page link_to text, page.request_path, class: active_class else link_to text, page.request_path end end end
Version data entries
30 entries across 30 versions & 1 rubygems