Sha256: 039969f5afc3716c93e242f1263284f9d824327cb624ac56d56358870a472587

Contents?: true

Size: 1.05 KB

Versions: 13

Compression:

Stored size: 1.05 KB

Contents

<div class="relative" data-controller="reveal" data-reveal-away-value>
  <button type="button" class="btn btn-default px-3" data-action="reveal#toggle">
    <%= helpers.heroicon("chat-alt", style: :solid, class: 'w-4 h-4 text-gray-300') %>
    
    <span class="ml-1 font-semibold"><%= @label %></span>
  </button>

  <div hidden data-reveal data-transition class="origin-top-right absolute right-0 mt-2 w-56 rounded-md shadow-lg border border-gray-200 z-20">
    <div class="rounded-md bg-white shadow-xs">
      <div class="py-1">
        <% locales.each do |locale| %>
          <%= link_to "?locale=#{locale}", class: "block px-3 py-2 text-sm leading-4 text-gray-700 hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus:bg-gray-100 focus:text-gray-900 font-medium" do %>
            <div class="text-gray-700">
              <%=t('spina.pages.edit_translation', language: '<span class="font-semibold">' + t("spina.languages.#{locale}") + '</span>').html_safe %>  
            </div>
          <% end %>
        <% end %>
      </div>
    </div>
  </div>
</div>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
spina-2.18.0 app/components/spina/user_interface/translations_component.html.erb
spina-2.17.0 app/components/spina/user_interface/translations_component.html.erb
spina-2.16.0 app/components/spina/user_interface/translations_component.html.erb
spina-2.15.1 app/components/spina/user_interface/translations_component.html.erb
spina-2.15.0 app/components/spina/user_interface/translations_component.html.erb
spina-2.14.0 app/components/spina/user_interface/translations_component.html.erb
spina-2.13.1 app/components/spina/user_interface/translations_component.html.erb
spina-2.13.0 app/components/spina/user_interface/translations_component.html.erb
spina-2.12.0 app/components/spina/user_interface/translations_component.html.erb
spina-2.11.0 app/components/spina/user_interface/translations_component.html.erb
spina-2.10.0 app/components/spina/user_interface/translations_component.html.erb
spina-2.9.1 app/components/spina/user_interface/translations_component.html.erb
spina-2.9.0 app/components/spina/user_interface/translations_component.html.erb