You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

diff.html.erb 1.3KB

123456789101112131415161718192021222324252627
  1. <div class="contextual">
  2. <%= link_to(l(:label_history), {:action => 'history', :id => @page.title},
  3. :class => 'icon icon-history') %>
  4. </div>
  5. <%= wiki_page_breadcrumb(@page) %>
  6. <%= title [@page.pretty_title, project_wiki_page_path(@page.project, @page.title, :version => nil)],
  7. [l(:label_history), history_project_wiki_page_path(@page.project, @page.title)],
  8. "#{l(:label_revision)} #{@diff.content_to.version}" %>
  9. <p>
  10. <%= l(:label_revision) %> <%= link_to @diff.content_from.version, :action => 'show', :id => @page.title, :project_id => @page.project, :version => @diff.content_from.version %>
  11. <em>(<%= @diff.content_from.author ?
  12. @diff.content_from.author.name : l(:label_user_anonymous)
  13. %>, <%= format_time(@diff.content_from.updated_on) %>)</em>
  14. &#8594;
  15. <%= l(:label_revision) %> <%= link_to @diff.content_to.version, :action => 'show',
  16. :id => @page.title, :project_id => @page.project,
  17. :version => @diff.content_to.version
  18. %>/<%= @page.content.version %>
  19. <em>(<%= @diff.content_to.author ?
  20. link_to_user(@diff.content_to.author.name) : l(:label_user_anonymous)
  21. %>, <%= format_time(@diff.content_to.updated_on) %>)</em>
  22. </p>
  23. <pre class="text-diff"><%= @diff.to_html %></pre>