<%
# chargement/modification du rapport dcov
path = ""
project.tasks.each('task') do |task|
if task['name'] == "dcov"
path = task.params.report['path']
end
end
doc = Hpricot(File.read(path))
doc.at("h1").swap("
Dcov Results
")
doc.search('//font') do |font|
font.swap("
" + font.inner_html + "")
end
%>
<%= (doc/"body").inner_html %>