Sha256: ca7f76bbf47331c27c17524d98b74292040774a1ba31a649ce4da588f78efa4d
Contents?: true
Size: 784 Bytes
Versions: 4
Compression:
Stored size: 784 Bytes
Contents
- unless @letters.empty? %p A to Z - = params[:letter].present? ? "#{I18n.t('pugin.components.navigation-letter.showing_results')} #{params[:letter].capitalize}" : "#{I18n.t('pugin.components.navigation-letter.select_letter')}" %nav.navigation--letter{ aria:{ label: I18n.t('pugin.components.navigation-letter.aria_label') } } %ul - ('a'..'z').each do |letter| %li{ data: { letter: letter }, class: ('active' if (params[:letter] == letter)) } - if @letters.include?(letter.upcase) - unless letter == params[:letter] = navigation_link(route_symbol: route_symbol, route_args: local_assigns.fetch(:route_args, []), letter: letter) - else %span= letter - else %span= letter
Version data entries
4 entries across 4 versions & 1 rubygems