##// END OF EJS Templates
Adds breadcrumb on all wiki page views....
Jean-Philippe Lang -
r6062:25d900c78791
parent child
Show More
@@ -32,4 +32,10 module WikiHelper
32 end
32 end
33 s
33 s
34 end
34 end
35
36 def wiki_page_breadcrumb(page)
37 breadcrumb(page.ancestors.reverse.collect {|parent|
38 link_to(h(parent.pretty_title), {:controller => 'wiki', :action => 'show', :id => parent.title, :project_id => parent.project})
39 })
40 end
35 end
41 end
@@ -3,7 +3,9
3 <%= link_to(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %>
3 <%= link_to(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %>
4 </div>
4 </div>
5
5
6 <h2><%= @page.pretty_title %></h2>
6 <%= wiki_page_breadcrumb(@page) %>
7
8 <h2><%=h @page.pretty_title %></h2>
7
9
8 <p>
10 <p>
9 <%= l(:label_version) %> <%= link_to @annotate.content.version, :action => 'show', :id => @page.title, :version => @annotate.content.version %>
11 <%= l(:label_version) %> <%= link_to @annotate.content.version, :action => 'show', :id => @page.title, :version => @annotate.content.version %>
@@ -1,3 +1,5
1 <%= wiki_page_breadcrumb(@page) %>
2
1 <h2><%=h @page.pretty_title %></h2>
3 <h2><%=h @page.pretty_title %></h2>
2
4
3 <% form_tag({}, :method => :delete) do %>
5 <% form_tag({}, :method => :delete) do %>
@@ -2,7 +2,9
2 <%= link_to(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %>
2 <%= link_to(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %>
3 </div>
3 </div>
4
4
5 <h2><%= @page.pretty_title %></h2>
5 <%= wiki_page_breadcrumb(@page) %>
6
7 <h2><%=h @page.pretty_title %></h2>
6
8
7 <p>
9 <p>
8 <%= l(:label_version) %> <%= link_to @diff.content_from.version, :action => 'show', :id => @page.title, :project_id => @page.project, :version => @diff.content_from.version %>
10 <%= l(:label_version) %> <%= link_to @diff.content_from.version, :action => 'show', :id => @page.title, :project_id => @page.project, :version => @diff.content_from.version %>
@@ -1,3 +1,5
1 <%= wiki_page_breadcrumb(@page) %>
2
1 <h2><%=h @page.pretty_title %></h2>
3 <h2><%=h @page.pretty_title %></h2>
2
4
3 <% form_for :content, @content, :url => {:action => 'update', :id => @page.title}, :html => {:method => :put, :multipart => true, :id => 'wiki_form'} do |f| %>
5 <% form_for :content, @content, :url => {:action => 'update', :id => @page.title}, :html => {:method => :put, :multipart => true, :id => 'wiki_form'} do |f| %>
@@ -1,4 +1,6
1 <h2><%= @page.pretty_title %></h2>
1 <%= wiki_page_breadcrumb(@page) %>
2
3 <h2><%=h @page.pretty_title %></h2>
2
4
3 <h3><%= l(:label_history) %></h3>
5 <h3><%= l(:label_history) %></h3>
4
6
@@ -1,4 +1,6
1 <h2><%= l(:button_rename) %>: <%= @original_title %></h2>
1 <%= wiki_page_breadcrumb(@page) %>
2
3 <h2><%=h @original_title %></h2>
2
4
3 <%= error_messages_for 'page' %>
5 <%= error_messages_for 'page' %>
4
6
@@ -11,7 +11,7
11 <%= link_to_if_authorized(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %>
11 <%= link_to_if_authorized(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %>
12 </div>
12 </div>
13
13
14 <%= breadcrumb(@page.ancestors.reverse.collect {|parent| link_to h(parent.pretty_title), {:id => parent.title, :project_id => parent.project}}) %>
14 <%= wiki_page_breadcrumb(@page) %>
15
15
16 <% if @content.version != @page.content.version %>
16 <% if @content.version != @page.content.version %>
17 <p>
17 <p>
General Comments 0
You need to be logged in to leave comments. Login now