diff options
author | mguetlein <martin.guetlein@gmail.com> | 2012-10-22 12:43:29 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2012-10-22 12:43:29 +0200 |
commit | 45209f80a1d063f3d3b22131dfdaeb0cde3dcc0a (patch) | |
tree | 7989a3b44d1112a669b6b8e947a3c8b31139517e | |
parent | 02b7ab288f98c12dc5dc23ea869216bb11cc36ee (diff) |
add more info for task html view
-rw-r--r-- | application.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/application.rb b/application.rb index 2749687..5d89ada 100644 --- a/application.rb +++ b/application.rb @@ -129,7 +129,8 @@ get '/:id/?' do related_links = task.hasStatus=="Completed" ? "The task result: "+task.resultURI : nil metadata[OT.waitingFor] = task.waiting_for metadata[OT.errorReport] = task.errorReport if task.errorReport - halt code, OpenTox.text_to_html(metadata.to_yaml, @subjectid, related_links, description) + task.inspect # to load all stuff for to_yaml + halt code, OpenTox.text_to_html([metadata,task].to_yaml, @subjectid, related_links, description) when /application\/rdf\+xml|\*\/\*/ # matches 'application/x-yaml', '*/*' response['Content-Type'] = 'application/rdf+xml' t = OpenTox::Task.new task.uri |