<commit_before><%= article_title(@page, :no_link => true) %>

<p><%= _('This is the list of all versions of this content. Select a version to see it and then revert to it.') %>.</p>

<ul class='article-versions'>
  <% @versions.each do |v| %>
    <li> 
      <%= radio_button_tag :first, "#{v.version}" %>
      <%= radio_button_tag :end, "#{v.version}" %>
      <%= link_to(_("Version #{v.version}"), @page.url.merge(:version => v.version)) %>
      <%= @page.version == v.version ? _('(current)') : '' %>
      <span class='updated-by'><%= _('by %{author}') % {:author => link_to(@page.author_name(v.version), @page.author_url)} %></span>
      <div class='updated-on'><%= show_time(v.updated_at) %></div>
    </li>
  <% end %>
</ul>

<%= button_to "Show differences between selected versions", :id => "diff-versions",
      :class => "diff-versions", :method => :get %>

<%= pagination_links @versions, :param_name => 'npage' %><commit_msg>diff-article-version: add radio_button_tag in versions' list and add button to show differences between article versions<commit_after><%= article_title(@page, :no_link => true) %>

<p><%= _('This is the list of all versions of this content. Select a version to see it and then revert to it.') %>.</p>

<ul class='article-versions'>
  <% @versions.each do |v| %>
    <li> 
      <%= radio_button_tag :first, "#{v.version}" %>
      <%= radio_button_tag :end, "#{v.version}" %>
      <%= link_to(_("Version #{v.version}"), @page.url.merge(:version => v.version)) %>
      <%= @page.version == v.version ? _('(current)') : '' %>
      <span class='updated-by'><%= _('by %{author}') % {:author => link_to(@page.author_name(v.version), @page.author_url)} %></span>
      <div class='updated-on'><%= show_time(v.updated_at) %></div>
    </li>
  <% end %>
</ul>

<%= button_to "Show differences between selected versions", :id => "diff-versions",
      :class => "diff-versions", :method => :get %>
<%= pagination_links @versions, :param_name => 'npage' %>
{'fraction_non_alphanumeric': 0.22389558232931728, 'fraction_numerical': 0.0, 'mean_word_length': 4.032828282828283, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 61, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6194242', 'n_tokens_mistral': 721, 'n_tokens_neox': 669, 'n_words': 168}