Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki
This commit is contained in:
commit
0cfea84802
11 changed files with 57 additions and 24 deletions
|
@ -155,6 +155,7 @@ module WikiChunk
|
|||
if web_match
|
||||
@web_name = normalize_whitespace(web_match[1])
|
||||
@page_name = web_match[2]
|
||||
@link_text = @page_name if @link_text == web_match[0]
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -180,7 +180,8 @@ class UrlGenerator < AbstractUrlGenerator
|
|||
action = web.published? && (web != @web || [:publish, :s5].include?(mode) ) ? 'published' : 'show'
|
||||
href = @controller.url_for :controller => 'wiki', :web => web_address, :action => action,
|
||||
:id => name, :only_path => true
|
||||
%{<a class="existingWikiWord" href="#{href}">#{text}</a>}
|
||||
title = web == @web ? '' : %{ title="#{web_address}"}
|
||||
%{<a class="existingWikiWord" href="#{href}"#{title}>#{text}</a>}
|
||||
end
|
||||
|
||||
def html_ext
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue