formatting
git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@58 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7master
parent
d487f8457b
commit
c572842263
|
@ -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))
|
||||
|
|
Reference in New Issue