]> source.dussan.org Git - redmine.git/commitdiff
Adds some links for wiki history navigation.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 14 Oct 2013 16:58:39 +0000 (16:58 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 14 Oct 2013 16:58:39 +0000 (16:58 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12221 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/wiki/annotate.html.erb
app/views/wiki/diff.html.erb
app/views/wiki/history.html.erb
app/views/wiki/show.html.erb

index a0e97370d73089f574d0446fff365f75d3b5562d..b1b76590955a1c101172b4a3e12fa900981d1864 100644 (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) } %>
index ca1a57ae7bd5d6ce86d78b2ba0ace56a7789ef47..335e581f8b410403afda5d62bce491b9353c6d38 100644 (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 %>
index 90ce353dff8c753623d8bbcfcf91f102f9d2996c..56a447855aa309058d165c5818accbe23a174d65 100644 (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},
index b4386b754994dce7d5a65511f88e90500cff7944..3ff7d040bb8a3013d5c300672f7157445e1bd081 100644 (file)
 <%= 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,