diff --git a/app/models/web.rb b/app/models/web.rb
index efe903e3..03412e46 100644
--- a/app/models/web.rb
+++ b/app/models/web.rb
@@ -87,16 +87,16 @@ class Web
link = CGI.escape(name)
case mode
when :export
- if has_page?(name) then "#{text}"
- else "#{text}" end
+ if has_page?(name) then %{#{text}}
+ else %{#{text}} end
when :publish
- if has_page?(name) then "#{text}"
- else "#{text}" end
+ if has_page?(name) then %{#{text}}
+ else %{#{text}} end
else
if has_page?(name)
- "#{text}"
+ %{#{text}}
else
- "#{text}?"
+ %{#{text}?}
end
end
end
@@ -105,14 +105,14 @@ class Web
link = CGI.escape(name)
case mode
when :export
- if has_file?(name) then ""
- else "" end
+ if has_file?(name) then %{}
+ else %{} end
when :publish
- if has_file?(name) then ""
- else "#{text}" end
+ if has_file?(name) then %{}
+ else %{#{text}} end
else
- if has_file?(name) then ""
- else "#{text}?" end
+ if has_file?(name) then %{}
+ else %{#{text}?} end
end
end