Sha256: 76f513571d8489b9a0e2deb1cbb3e5b5ea23c16e8dd4ad3b18d8e98b57db020f
Contents?: true
Size: 950 Bytes
Versions: 53
Compression:
Stored size: 950 Bytes
Contents
- unless @letters.empty? %nav.navigation--letter{ aria:{ label: I18n.t('pugin.components.navigation-letter.aria_label') } } %ol %li{ data: { letter: 'all' }, class: ('active' unless local_assigns[:all_path]) } - if @letters.empty? || !local_assigns[:all_path] %span= I18n.t('pugin.components.navigation-letter.all').capitalize - else = link_to "#{I18n.t('pugin.components.navigation-letter.all').capitalize}", send(all_path, *local_assigns.fetch(:route_args, nil)) - ('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
53 entries across 53 versions & 1 rubygems