noesya/osuny

View on GitHub
app/views/admin/application/l10n/_libre_translate_button.html.erb

Summary

Maintainability
Test Coverage
<% if l10n.libre_translatable? %>
  <span id="translation-button"
        data-translation-url="<%= admin_translate_path target: l10n.language.iso_code %>">
    <a class="btn btn-light btn-xs js-translation-start">
      <%= t('admin.translation.button') %>
    </a>
    <span class="spinner-border spinner-border-sm js-translation-loader"
          role="status"
          hidden>
      <span class="sr-only">
        <%= t('admin.translation.running') %>
      </span>
    </span>
    <span class="js-translation-done small"
          hidden>
      <%= t('admin.translation.done') %>
    </span>
  </span>
<% end %>