Adds some links for wiki history navigation.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12221 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2013-10-14 16:58:39 +00:00
parent 5f747faa58
commit 699317e12e
4 changed files with 14 additions and 11 deletions

View File

@ -6,15 +6,14 @@
<%= wiki_page_breadcrumb(@page) %>
<h2><%=h @page.pretty_title %></h2>
<%= 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_version)} #{@annotate.content.version}" %>
<p>
<%= l(:label_version) %> <%= link_to h(@annotate.content.version),
:action => 'show', :project_id => @project,
:id => @page.title, :version => @annotate.content.version %>
<em>(<%= h(@annotate.content.author ?
@annotate.content.author.name : l(:label_user_anonymous))
%>, <%= format_time(@annotate.content.updated_on) %>)</em>
<em><%= @annotate.content.author ? link_to_user(@annotate.content.author) : l(:label_user_anonymous)
%>, <%= format_time(@annotate.content.updated_on) %> </em><br />
<%=h @annotate.content.comments %>
</p>
<% colors = Hash.new {|k,v| k[v] = (k.size % 12) } %>

View File

@ -5,7 +5,9 @@
<%= wiki_page_breadcrumb(@page) %>
<h2><%= h(@page.pretty_title) %></h2>
<%= 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_version)} #{@diff.content_to.version}" %>
<p>
<%= l(:label_version) %> <%= link_to @diff.content_from.version, :action => 'show', :id => @page.title, :project_id => @page.project, :version => @diff.content_from.version %>

View File

@ -1,8 +1,6 @@
<%= wiki_page_breadcrumb(@page) %>
<h2><%= h(@page.pretty_title) %></h2>
<h3><%= l(:label_history) %></h3>
<%= title [@page.pretty_title, project_wiki_page_path(@page.project, @page.title, :version => nil)], l(:label_history) %>
<%= form_tag({:controller => 'wiki', :action => 'diff',
:project_id => @page.project, :id => @page.title},

View File

@ -17,6 +17,10 @@
<%= wiki_page_breadcrumb(@page) %>
<% unless @content.current_version? %>
<%= 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_version)} #{@content.version}" %>
<p>
<%= link_to(("\xc2\xab " + l(:label_previous)),
:action => 'show', :id => @page.title, :project_id => @page.project,