Uploaded Pictures Should Display in "Published" Mode

This commit is contained in:
Jacques Distler 2008-12-20 13:56:50 -06:00
parent 5a86d874f7
commit 1f816af24b
3 changed files with 11 additions and 4 deletions

View file

@ -154,7 +154,7 @@ class StubUrlGenerator < AbstractUrlGenerator
if known_pic then %{<img alt="#{text}" src="#{link}" />}
else %{<img alt="#{text}" src="no image" />} end
when :publish
if known_pic then %{<img alt="#{text}" src="#{link}" />}
if known_pic then %{<img alt="#{text}" src="../file/#{link}" />}
else %{<span class="newWikiWord">#{text}</span>} end
else
if known_pic then %{<img alt="#{text}" src="../file/#{link}" />}