Simplification

The last commit means we can
simplify the url_generator.rb a bit more.
It's still an ugly beast.
This commit is contained in:
Jacques Distler 2009-10-23 00:18:23 -05:00
parent 761f8bbb51
commit d880d81b0a

View file

@ -102,14 +102,6 @@ class UrlGenerator < AbstractUrlGenerator
else
%{<span class="newWikiWord">#{text}</span>}
end
when :show
if known_page
wikilink_for(mode, name, text, web_address)
else
href = @controller.url_for :controller => 'wiki', :web => web_address, :action => 'new',
:id => name, :only_path => true
%{<span class="newWikiWord">#{text}<a href="#{href}">?</a></span>}
end
else
if known_page
wikilink_for(mode, name, text, web_address)