Sha256: 603d57851b0a4eacdd4398a1faa79c00dcd2ea6710afed6ac27364b6ac3bfcf8
Contents?: true
Size: 580 Bytes
Versions: 22
Compression:
Stored size: 580 Bytes
Contents
<% css_classes = [language.code] %> <% css_classes << 'active' if Alchemy::Language.current.id == language.id %> <% css_classes << 'first' if languages.first == language %> <% css_classes << 'last' if languages.last == language %> <% link_title = options[:show_title] ? _t("#{language.code}.title", scope: 'language_links', default: language.name) : nil %> <%= link_to( content_tag(:span, language.label(options[:linkname])).html_safe, show_alchemy_page_path(language.pages.language_roots.first, lang: language.code), class: css_classes.join(" "), title: link_title ) %>
Version data entries
22 entries across 22 versions & 1 rubygems