myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [3652] branches/packs/app: added research questio


From: noreply
Subject: [myexperiment-hackers] [3652] branches/packs/app: added research question into the pack page
Date: Sun, 1 Sep 2013 23:45:51 +0000 (UTC)

Revision
3652
Author
dgc
Date
2013-09-01 23:45:50 +0000 (Sun, 01 Sep 2013)

Log Message

added research question into the pack page

Modified Paths

Diff

Modified: branches/packs/app/controllers/packs_controller.rb (3651 => 3652)


--- branches/packs/app/controllers/packs_controller.rb	2013-09-01 20:39:38 UTC (rev 3651)
+++ branches/packs/app/controllers/packs_controller.rb	2013-09-01 23:45:50 UTC (rev 3652)
@@ -94,6 +94,8 @@
         @ro_relationships = Conf.ro_relationships
         @sketch = @graph.query(:predicate => RDF.type,
             :object => RDF::URI("http://purl.org/wf4ever/roterms#Sketch")).first_subject
+        @research_question = @graph.query(:predicate => RDF.type,
+            :object => RDF::URI("http://purl.org/wf4ever/roterms#ResearchQuestion")).first_subject
         @hypothesis = @graph.query(:predicate => RDF.type,
             :object => RDF::URI("http://purl.org/wf4ever/roterms#Hypothesis")).first_subject
         @conclusions = @graph.query(:predicate => RDF.type,

Modified: branches/packs/app/views/packs/show.rhtml (3651 => 3652)


--- branches/packs/app/views/packs/show.rhtml	2013-09-01 20:39:38 UTC (rev 3651)
+++ branches/packs/app/views/packs/show.rhtml	2013-09-01 23:45:50 UTC (rev 3652)
@@ -93,6 +93,11 @@
     <%= image_tag(@sketch.to_s, :width => '100%') -%>
   <% end %>
 
+  <% if @research_question %>
+    <h2>Research Question</h2>
+    <p><%= link_to(h(@research_question.to_s), @research_question.to_s) -%></p>
+  <% end %>
+
   <% if @hypothesis %>
     <h2>Hypothesis</h2>
     <p><%= link_to(h(@hypothesis.to_s), @hypothesis.to_s) -%></p>

reply via email to

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