summaryrefslogtreecommitdiffstats
path: root/app/views/wiki/diff.html.erb
blob: f72a0cd75a06a42d8f214dff05f97b34ac535358 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<div class="contextual">
<%= link_to(sprite_icon('history', l(:label_history)), { :action => 'history', :id => @page.title},
            :class => 'icon icon-history') %>
</div>

<%= wiki_page_breadcrumb(@page) %>

<%= title [@page.pretty_title, project_wiki_page_path(@page.project, @page.title, :version => nil)],
      [l(:label_history), history_project_wiki_page_path(@page.project, @page.title)],
      "#{l(:label_revision)} #{@diff.content_to.version}" %>

<p>
<%= l(:label_revision) %> <%= link_to @diff.content_from.version, :action => 'show', :id => @page.title, :project_id => @page.project, :version => @diff.content_from.version %>
<em>(<%= @diff.content_from.author ?
             @diff.content_from.author.name : l(:label_user_anonymous)
      %>, <%= format_time(@diff.content_from.updated_on) %>)</em>
&#8594;
<%= l(:label_revision) %> <%= link_to @diff.content_to.version, :action => 'show',
                             :id => @page.title, :project_id => @page.project,
                             :version => @diff.content_to.version
                          %>/<%= @page.content.version %>
<em>(<%= @diff.content_to.author ?
             link_to_user(@diff.content_to.author.name) : l(:label_user_anonymous)
      %>, <%= format_time(@diff.content_to.updated_on) %>)</em>
</p>

<pre class="text-diff"><%= @diff.to_html %></pre>