<% if missing_locales.any? %>
<% missing_locales.each do |locale| %>
<%= link_to generate_edit_link(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 %>
<%=t('spina.pages.add_translation', language: '' + t("spina.languages.#{locale}") + '').html_safe %>
<% end %>
<% end %>
<% end %>
<% existing_locales.each do |locale| %>
<%= link_to generate_edit_link(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 %>
<%=t('spina.pages.edit_translation', language: '' + t("spina.languages.#{locale}") + '').html_safe %>
<% end %>
<% end %>