Files
nairobi/app/components/layout/remote_translations_button_component.html.erb
Javi Martín fe3c9d47fa Make the translation button condition more readable
I was finding this part hard to follow, but after changing the name of
the condition suddenly I understood what was going on.
2023-02-16 17:52:17 +01:00

12 lines
425 B
Plaintext

<div class="remote-translations-button">
<% if translations_in_progress? %>
<%= t("remote_translations.all_remote_translations_enqueued_text") %>
<% else %>
<%= form_tag remote_translations_path do %>
<%= hidden_field_tag :remote_translations, remote_translations.to_json %>
<%= t("remote_translations.text") %>
<%= submit_tag t("remote_translations.button") %>
<% end %>
<% end %>
</div>