]> source.dussan.org Git - redmine.git/commitdiff
Rails3: view: html_safe for wiki/show.html.erb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 1 Jan 2012 11:44:32 +0000 (11:44 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 1 Jan 2012 11:44:32 +0000 (11:44 +0000)
Contributed by Sylvain Utard.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8453 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/wiki/show.html.erb

index 25dfc1062448c5b4a25edd0f7ffae8bd9a074144..19215bb98be6c01cca9eee3aa96a9e26214123da 100644 (file)
@@ -19,9 +19,9 @@
                 :action => 'show', :id => @page.title, :project_id => @page.project,
                 :version => (@content.version - 1)) + " - " if @content.version > 1 %>
     <%= "#{l(:label_version)} #{@content.version}/#{@page.content.version}" %>
-    <%= '(' + link_to(l(:label_diff), :controller => 'wiki', :action => 'diff',
+    <%= '('.html_safe + link_to(l(:label_diff), :controller => 'wiki', :action => 'diff',
                       :id => @page.title, :project_id => @page.project,
-                      :version => @content.version) + ')' if @content.version > 1 %> - 
+                      :version => @content.version) + ')'.html_safe if @content.version > 1 %> - 
     <%= link_to((l(:label_next) + " \xc2\xbb"), :action => 'show',
                 :id => @page.title, :project_id => @page.project,
                 :version => (@content.version + 1)) + " - " if @content.version < @page.content.version %>