<%= button(:clock, _('All versions'), {:controller => 'content_viewer', :profile => profile.identifier, :action => 'article_versions'}, :id => 'article-versions-link') %> <% if @page.allow_edit?(user) && !remove_content_button(:edit) %> <% content = content_tag('span', _('Revert to this version')) %> <% url = profile.admin_url.merge({ :controller => 'cms', :action => 'edit', :id => @page.id, :version => @version }) %> <%= expirable_button @page, :edit, content, url, :id => 'article-revert-version-link' %> <% end %>

<%= @versioned_article.name %>

<%= _("Version %{version} - %{author} on %{date}") % {:version => @version, :author => @page.author_name(@version), :date => show_time(@versioned_article.updated_at) } %>
<% version_license = @page.version_license(@version) %> <%# This seemingly doubled verification exists because the article-sub-header div must appear only if at least one content inside it will appeart. Although we have only one content now, we might have others in the future. So we're keeping it like that to avoid mistakes. %> <% if version_license.present? %>
<% if version_license.present? %>
<%= _('Licensed under %s') % (version_license.url.present? ? link_to(version_license.name, version_license.url, :target => '_blank') : version_license.name) %>
<% end %>
<% end %> <% cache(@page.cache_key(params, user, language)) do %>
"> <%= @versioned_article.body %>
<% end %> <%= display_source_info(@page) %>
<%= add_zoom_to_article_images %>