Modified: branches/wf4ever/app/views/packs/resource_show.rhtml (3389 => 3390)
--- branches/wf4ever/app/views/packs/resource_show.rhtml 2013-01-31 10:49:46 UTC (rev 3389)
+++ branches/wf4ever/app/views/packs/resource_show.rhtml 2013-01-31 13:50:03 UTC (rev 3390)
@@ -129,14 +129,15 @@
</div>
-<% if true %>
+<% # FIXME: Use URIs instead of labels! %>
+<% if @types.include? "Workflow" %>
<%= render :partial => "workflows/runs", :locals => { :pack => @pack } %>
<% end %>
+
<% if false %>
+<h2>Workflow inputs</h2>
-<h2>Workflow inputs (via WF-DESC)</h2>
-
<ul>
<% @annotations.query([nil, RDF::URI.parse("http://purl.org/wf4ever/wfdesc#hasInput"), nil]).each do |statement| %>
<% input_labels = @annotations.query([statement.object, RDF::URI.parse("http://www.w3.org/2000/01/rdf-schema#label"), nil]) %>
@@ -144,7 +145,7 @@
<% end %>
</ul>
-<h2>Workflow outputs (via WF-DESC)</h2>
+<h2>Workflow outputs</h2>
<ul>
<% @annotations.query([nil, RDF::URI.parse("http://purl.org/wf4ever/wfdesc#hasOutput"), nil]).each do |statement| %>
@@ -155,6 +156,7 @@
+
<h2>Debug</h2>
<div class="fold">