lib/site/body-dcov.rhtml in continuous4r-0.0.1 vs lib/site/body-dcov.rhtml in continuous4r-0.0.2

- old
+ new

@@ -1,27 +1,7 @@ -<% - require 'rubygems' - require 'hpricot' - require 'XmlElements' - project = XmlElements.fromString(File.read("continuous4r-project.xml")) -%> <div id="bodyColumn"> <div class="contentBox"> <div class="section"><a name="dcov"></a> - <% - # 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("<h2>Dcov Results</h2>") - doc.search('//font') do |font| - font.swap("<span style='color: red;'>" + font.inner_html + "</span>") - end - %> - <%= (doc/"body").inner_html %> + <%= File.read("#{Continuous4r::WORK_DIR}/dcov/coverage.html") %> </div> </div> </div>