Corrected how orphan page names are rendered in All Pages list
This commit is contained in:
parent
bc6f2c9bbc
commit
3107341af5
2 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ module ApplicationHelper
|
||||||
# Creates a hyperlink to a Wiki page, without checking if the page exists or not
|
# Creates a hyperlink to a Wiki page, without checking if the page exists or not
|
||||||
def link_to_existing_page(page, text = nil, html_options = {})
|
def link_to_existing_page(page, text = nil, html_options = {})
|
||||||
link_to(
|
link_to(
|
||||||
text || page.name,
|
text || page.plain_name,
|
||||||
{:web => @web.address, :action => 'show', :id => page.name, :only_path => true},
|
{:web => @web.address, :action => 'show', :id => page.name, :only_path => true},
|
||||||
html_options)
|
html_options)
|
||||||
end
|
end
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
<ul style="margin-bottom: 35px">
|
<ul style="margin-bottom: 35px">
|
||||||
<% @pages_that_are_orphaned.each do |orphan_page| %>
|
<% @pages_that_are_orphaned.each do |orphan_page| %>
|
||||||
<li>
|
<li>
|
||||||
<%= link_to_existing_page orphan_page %>
|
<%= link_to_existing_page orphan_page, truncate(orphan_page.plain_name, 35) %>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in a new issue