<%= t(".title", :path => @node.unique_name) %>

<%= link_to t(".back_to_node"), node_path(@node) %>

<% if Page.non_default_locales.any? %>

<%= t("revisions.locale_label") %> <% ([I18n.default_locale] + Page.non_default_locales).each_with_index do |locale, i| %> <%= " · ".html_safe if i > 0 %> <% if locale == @translation_locale %> <%= locale.to_s.upcase %> <% else %> <%= link_to locale.to_s.upcase, node_revisions_path(@node, :translation_locale => locale) %> <% end %> <% end %>

<% end %> <% pages = (@pages || @node.pages.all).reverse %> <% pages.each_with_index do |page, index| %> <% end %>
<%= t(".first") %> <%= t(".last") %> <%= t("admin.columns.rev") %> <%= t("admin.columns.title") %> <%= t("admin.columns.editor") %> <%= t("admin.columns.date") %>
<%= button_to t(".diff_revisions"), diff_node_revisions_path(@node), method: :post, params: { translation_locale: @translation_locale }, form: { id: 'diff_form', class: 'button_to computation' }, disabled: true %> " data-selected="<%= t(".selected_word") %>">
<%= radio_button_tag :start_revision, page.revision, index == 1 %> <%= radio_button_tag :end_revision, page.revision, index == 0 %> <%= page.revision %> <%= page.translations.find_by(:locale => @translation_locale)&.title || "—" %> <%= page.editor.try(:login) %> <%= admin_datetime(page.updated_at) %> <%= link_to t(".show_link"), node_revision_path(@node, page, :translation_locale => @translation_locale) %> <%= button_to t(".restore_link"), restore_node_revision_path(@node, page), method: :put, form: { data: { confirm: t(".confirm_restore") }, class: 'button_to state_changing' } %>