myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3396] branches/wf4ever/app: changed the WF-RO st


From: noreply
Subject: [myexperiment-hackers] [3396] branches/wf4ever/app: changed the WF-RO status page to include results and changed 'RUNNING' -> 'PROCESSING' and 'DONE' -> 'SUCCESS'
Date: Tue, 5 Feb 2013 16:45:38 +0000 (UTC)

Revision
3396
Author
dgc
Date
2013-02-05 16:45:38 +0000 (Tue, 05 Feb 2013)

Log Message

changed the WF-RO status page to include results and changed 'RUNNING' -> 'PROCESSING' and 'DONE' -> 'SUCCESS'

Modified Paths

Diff

Modified: branches/wf4ever/app/helpers/packs_helper.rb (3395 => 3396)


--- branches/wf4ever/app/helpers/packs_helper.rb	2013-02-05 01:45:37 UTC (rev 3395)
+++ branches/wf4ever/app/helpers/packs_helper.rb	2013-02-05 16:45:38 UTC (rev 3396)
@@ -92,4 +92,15 @@
 
     link_to(text, href)
   end
+
+  def wfro_status_message(response)
+    case response["status"]
+    when "RUNNING"
+      "PROCESSING\n"
+    when "DONE"
+      "SUCCESS\n"
+    else
+      h(response["status"])
+    end
+  end
 end

Modified: branches/wf4ever/app/views/packs/check_wfro_job.rhtml (3395 => 3396)


--- branches/wf4ever/app/views/packs/check_wfro_job.rhtml	2013-02-05 01:45:37 UTC (rev 3395)
+++ branches/wf4ever/app/views/packs/check_wfro_job.rhtml	2013-02-05 16:45:38 UTC (rev 3396)
@@ -4,11 +4,24 @@
 
 <p>The following resource has been submitted to the transformation service:</p>
 
-<p><tt><%=h @status["resource"] -%></tt></p>
+<ul><li><%= link_to(@status["resource"], @status["resource"]) -%></li></ul>
 
+<% if @status["added"].length > 0 %>
+  <h2>Results of transformation</h2>
+  <p>The following resources have been created as a result of the transformation:</p>
+
+  <ul>
+    <% @status["added"].each do |output| %>
+      <% unless output.ends_with?("/") %>
+        <li><%= link_to(output, output) -%></li>
+      <% end %>
+    <% end %>
+  </ul>
+<% end %>
+
 <h2>Status</h2>
 
-<p>The status is: <%=h @status["status"] -%></p>
+<p>The job status is: <%= wfro_status_message(@status) -%></p>
 
 <p style="margin: auto">
   <form style="display: inline-block" action="" check_wfro_job_pack_path(@pack) %>" method="get">

reply via email to

[Prev in Thread] Current Thread [Next in Thread]