--- repositories_helper.rb	2013-05-02 18:45:45.977127940 +0200
+++ repositories_helper.rb.new	2013-05-02 18:45:59.689065295 +0200
@@ -99,11 +99,11 @@
                              :path => path_param,
                              :rev => @changeset.revision) unless c.action == 'D'
         text << " - #{c.revision}" unless c.revision.blank?
-        text << ' (' + link_to('diff', :controller => 'repositories',
+        text << (' (' + link_to('diff', :controller => 'repositories',
                                        :action => 'diff',
                                        :id => @project,
                                        :path => path_param,
-                                       :rev => @changeset.revision) + ') ' if c.action == 'M'
+                                       :rev => @changeset.revision) + ') ').html_safe if c.action == 'M'
         text << ' ' + content_tag('span', c.from_path, :class => 'copied-from') unless c.from_path.blank?
         output << "<li class='#{style}'>#{text}</li>"
       end
