formatting

git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@58 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7
master
andrew 2007-12-23 00:31:09 +00:00
parent d487f8457b
commit c572842263
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ module DiscussionsHelper
#
def page_or_parent_link(page)
if page.owner_type.to_s.empty?
return link_to 'Show Wiki Page', page_path(page.title_for_url)
return link_to('Show Wiki Page', page_path(page.title_for_url))
end
link_to("Show #{page.owner_type} Page",
send("#{page.owner_type.downcase}_path", page.title_for_url))