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
|
||||
def link_to_existing_page(page, text = nil, html_options = {})
|
||||
link_to(
|
||||
text || page.name,
|
||||
text || page.plain_name,
|
||||
{:web => @web.address, :action => 'show', :id => page.name, :only_path => true},
|
||||
html_options)
|
||||
end
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
<ul style="margin-bottom: 35px">
|
||||
<% @pages_that_are_orphaned.each do |orphan_page| %>
|
||||
<li>
|
||||
<%= link_to_existing_page orphan_page %>
|
||||
<%= link_to_existing_page orphan_page, truncate(orphan_page.plain_name, 35) %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in a new issue