diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-07-04 19:56:38 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-07-04 19:56:38 +0000 |
commit | 25d900c78791906c1a514f61b29ebddbe4647270 (patch) | |
tree | 436fa94259e0ed5931d8bf6d39e3e82ee2c3bf50 /app/views/wiki | |
parent | e950c9db5af98a25675d7a1edd46bba742921423 (diff) | |
download | redmine-25d900c78791906c1a514f61b29ebddbe4647270.tar.gz redmine-25d900c78791906c1a514f61b29ebddbe4647270.zip |
Adds breadcrumb on all wiki page views.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6182 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/wiki')
-rw-r--r-- | app/views/wiki/annotate.rhtml | 4 | ||||
-rw-r--r-- | app/views/wiki/destroy.rhtml | 2 | ||||
-rw-r--r-- | app/views/wiki/diff.rhtml | 4 | ||||
-rw-r--r-- | app/views/wiki/edit.rhtml | 2 | ||||
-rw-r--r-- | app/views/wiki/history.rhtml | 4 | ||||
-rw-r--r-- | app/views/wiki/rename.rhtml | 4 | ||||
-rw-r--r-- | app/views/wiki/show.rhtml | 2 |
7 files changed, 17 insertions, 5 deletions
diff --git a/app/views/wiki/annotate.rhtml b/app/views/wiki/annotate.rhtml index dfea19581..863865a26 100644 --- a/app/views/wiki/annotate.rhtml +++ b/app/views/wiki/annotate.rhtml @@ -3,7 +3,9 @@ <%= link_to(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %> </div> -<h2><%= @page.pretty_title %></h2> +<%= wiki_page_breadcrumb(@page) %> + +<h2><%=h @page.pretty_title %></h2> <p> <%= l(:label_version) %> <%= link_to @annotate.content.version, :action => 'show', :id => @page.title, :version => @annotate.content.version %> diff --git a/app/views/wiki/destroy.rhtml b/app/views/wiki/destroy.rhtml index 400230f89..ff8cf2e8a 100644 --- a/app/views/wiki/destroy.rhtml +++ b/app/views/wiki/destroy.rhtml @@ -1,3 +1,5 @@ +<%= wiki_page_breadcrumb(@page) %> + <h2><%=h @page.pretty_title %></h2> <% form_tag({}, :method => :delete) do %> diff --git a/app/views/wiki/diff.rhtml b/app/views/wiki/diff.rhtml index a1006dce3..4eef50ac2 100644 --- a/app/views/wiki/diff.rhtml +++ b/app/views/wiki/diff.rhtml @@ -2,7 +2,9 @@ <%= link_to(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %> </div> -<h2><%= @page.pretty_title %></h2> +<%= wiki_page_breadcrumb(@page) %> + +<h2><%=h @page.pretty_title %></h2> <p> <%= l(:label_version) %> <%= link_to @diff.content_from.version, :action => 'show', :id => @page.title, :project_id => @page.project, :version => @diff.content_from.version %> diff --git a/app/views/wiki/edit.rhtml b/app/views/wiki/edit.rhtml index 5f47c3f8c..3c51c6325 100644 --- a/app/views/wiki/edit.rhtml +++ b/app/views/wiki/edit.rhtml @@ -1,3 +1,5 @@ +<%= wiki_page_breadcrumb(@page) %> + <h2><%=h @page.pretty_title %></h2> <% form_for :content, @content, :url => {:action => 'update', :id => @page.title}, :html => {:method => :put, :multipart => true, :id => 'wiki_form'} do |f| %> diff --git a/app/views/wiki/history.rhtml b/app/views/wiki/history.rhtml index 392c3b9f1..6027ed965 100644 --- a/app/views/wiki/history.rhtml +++ b/app/views/wiki/history.rhtml @@ -1,4 +1,6 @@ -<h2><%= @page.pretty_title %></h2> +<%= wiki_page_breadcrumb(@page) %> + +<h2><%=h @page.pretty_title %></h2> <h3><%= l(:label_history) %></h3> diff --git a/app/views/wiki/rename.rhtml b/app/views/wiki/rename.rhtml index f94b8bc3d..7a06c0340 100644 --- a/app/views/wiki/rename.rhtml +++ b/app/views/wiki/rename.rhtml @@ -1,4 +1,6 @@ -<h2><%= l(:button_rename) %>: <%= @original_title %></h2> +<%= wiki_page_breadcrumb(@page) %> + +<h2><%=h @original_title %></h2> <%= error_messages_for 'page' %> diff --git a/app/views/wiki/show.rhtml b/app/views/wiki/show.rhtml index 9b2f2de28..307633990 100644 --- a/app/views/wiki/show.rhtml +++ b/app/views/wiki/show.rhtml @@ -11,7 +11,7 @@ <%= link_to_if_authorized(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %> </div> -<%= breadcrumb(@page.ancestors.reverse.collect {|parent| link_to h(parent.pretty_title), {:id => parent.title, :project_id => parent.project}}) %> +<%= wiki_page_breadcrumb(@page) %> <% if @content.version != @page.content.version %> <p> |