myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [3663] branches/packs/app/views/packs/item_show.h


From: noreply
Subject: [myexperiment-hackers] [3663] branches/packs/app/views/packs/item_show.html.erb: missing file from previous commit
Date: Mon, 2 Sep 2013 20:42:09 +0000 (UTC)

Revision
3663
Author
dgc
Date
2013-09-02 20:42:09 +0000 (Mon, 02 Sep 2013)

Log Message

missing file from previous commit

Modified Paths

Diff

Modified: branches/packs/app/views/packs/item_show.html.erb (3662 => 3663)


--- branches/packs/app/views/packs/item_show.html.erb	2013-09-02 20:41:27 UTC (rev 3662)
+++ branches/packs/app/views/packs/item_show.html.erb	2013-09-02 20:42:09 UTC (rev 3663)
@@ -55,7 +55,14 @@
   <h2>Software requirements</h2>
   <ul>
     <% @requires_software.each do |software| %>
-      <li><%=h software -%></li>
+      <% desc = @statements.query([software, RDF::DC.description, nil]).first_literal %>
+      <% link = @statements.query([software, RDF::RDFS.seeAlso, nil]).first_literal %>
+
+      <% if link %>
+        <li><%= link_to(h(desc), link.to_s, :rel => "nofollow") -%></li>
+      <% else %>
+        <li><%=h desc -%></li>
+      <% end %>
     <% end %>
   </ul>
 <% end %>

reply via email to

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