Sha256: a27d7f038079ee1fbabf9772f6b265e5d2e1b7ef64777ad5f7883b03982ef23b

Contents?: true

Size: 612 Bytes

Versions: 6

Compression:

Stored size: 612 Bytes

Contents

<div class="widgets-systeminfo">

  <%=raw cell(:elements, :title).new(label: LANGUAGES[:lato_blog][:mixed][:languages], size: 6) %>

  <% languages = CONFIGS[:lato_blog][:languages].values %>

  <% languages.each do |language| %>

    <%
      check = cookies[:lato_blog__current_language] === language[:identifier]
      style = ( check ? 'success' : '')
      icon = ( check ? 'check' : '')
    %>

    <%=raw cell(:elements, :button).new(label: language[:title], style: style, icon: icon,
    url: lato_blog.switch_current_language_path(language: language[:identifier]), remote: true) %>

  <% end %>

</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lato_blog-2.2.2 app/views/lato_blog/widgets/_switchlang.html.erb
lato_blog-2.2.1 app/views/lato_blog/widgets/_switchlang.html.erb
lato_blog-2.2.0 app/views/lato_blog/widgets/_switchlang.html.erb
lato_blog-2.1.2 app/views/lato_blog/widgets/_switchlang.html.erb
lato_blog-2.1.1 app/views/lato_blog/widgets/_switchlang.html.erb
lato_blog-2.1 app/views/lato_blog/widgets/_switchlang.html.erb