@@ -87,7 +87,7 module RepositoriesHelper | |||||
87 | if s = tree[file][:s] |
|
87 | if s = tree[file][:s] | |
88 | style << ' folder' |
|
88 | style << ' folder' | |
89 | path_param = to_path_param(@repository.relative_path(file)) |
|
89 | path_param = to_path_param(@repository.relative_path(file)) | |
90 | text = link_to(text, :controller => 'repositories', |
|
90 | text = link_to(h(text), :controller => 'repositories', | |
91 | :action => 'show', |
|
91 | :action => 'show', | |
92 | :id => @project, |
|
92 | :id => @project, | |
93 | :path => path_param, |
|
93 | :path => path_param, | |
@@ -97,18 +97,18 module RepositoriesHelper | |||||
97 | elsif c = tree[file][:c] |
|
97 | elsif c = tree[file][:c] | |
98 | style << " change-#{c.action}" |
|
98 | style << " change-#{c.action}" | |
99 | path_param = to_path_param(@repository.relative_path(c.path)) |
|
99 | path_param = to_path_param(@repository.relative_path(c.path)) | |
100 | text = link_to(text, :controller => 'repositories', |
|
100 | text = link_to(h(text), :controller => 'repositories', | |
101 | :action => 'entry', |
|
101 | :action => 'entry', | |
102 | :id => @project, |
|
102 | :id => @project, | |
103 | :path => path_param, |
|
103 | :path => path_param, | |
104 | :rev => @changeset.identifier) unless c.action == 'D' |
|
104 | :rev => @changeset.identifier) unless c.action == 'D' | |
105 | text << " - #{c.revision}" unless c.revision.blank? |
|
105 | text << " - #{h(c.revision)}" unless c.revision.blank? | |
106 | text << ' (' + link_to('diff', :controller => 'repositories', |
|
106 | text << ' (' + link_to('diff', :controller => 'repositories', | |
107 | :action => 'diff', |
|
107 | :action => 'diff', | |
108 | :id => @project, |
|
108 | :id => @project, | |
109 | :path => path_param, |
|
109 | :path => path_param, | |
110 | :rev => @changeset.identifier) + ') ' if c.action == 'M' |
|
110 | :rev => @changeset.identifier) + ') ' if c.action == 'M' | |
111 | text << ' ' + content_tag('span', c.from_path, :class => 'copied-from') unless c.from_path.blank? |
|
111 | text << ' ' + content_tag('span', h(c.from_path), :class => 'copied-from') unless c.from_path.blank? | |
112 | output << "<li class='#{style}'>#{text}</li>" |
|
112 | output << "<li class='#{style}'>#{text}</li>" | |
113 | end |
|
113 | end | |
114 | end |
|
114 | end |
General Comments 0
You need to be logged in to leave comments.
Login now