Sha256: e4e94bf1477b45d983f7ff13a3600e5c4ad7aa8ad766579817922a52ce225eb9
Contents?: true
Size: 622 Bytes
Versions: 4
Compression:
Stored size: 622 Bytes
Contents
module ApplicationHelper def page_title @page_title = "" if request.path.include?("/docs/components") component_name = params[:component].to_s.titleize @page_title << "#{component_name} - " if component_name.present? end @page_title << "shadcn/ui on Rails" @page_title end def sidebar_link(text, path) classes = "group flex w-full items-center rounded-md border border-transparent px-2 py-1 hover:underline" classes << if request.path == path " text-foreground font-bold" else " text-muted-foreground" end link_to text, path, class: classes end end
Version data entries
4 entries across 4 versions & 1 rubygems