myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [3407] branches/wf4ever/app/views/packs/_items.rh


From: noreply
Subject: [myexperiment-hackers] [3407] branches/wf4ever/app/views/packs/_items.rhtml: added full URI for external resources again
Date: Thu, 7 Feb 2013 01:52:41 +0000 (UTC)

Revision
3407
Author
dgc
Date
2013-02-07 01:52:40 +0000 (Thu, 07 Feb 2013)

Log Message

added full URI for external resources again

Modified Paths

Diff

Modified: branches/wf4ever/app/views/packs/_items.rhtml (3406 => 3407)


--- branches/wf4ever/app/views/packs/_items.rhtml	2013-02-07 01:47:55 UTC (rev 3406)
+++ branches/wf4ever/app/views/packs/_items.rhtml	2013-02-07 01:52:40 UTC (rev 3407)
@@ -98,7 +98,8 @@
           </li>
         <% else %>
           <% 
-          label = e.ro_local_uri.split("/").last
+          label = e.ro_local_uri
+          label = label.split("/").last unless label.starts_with?("http:")
           annotations = get_annotations(pack.ro_uri, e.uri)
           types = resource_types_as_labels(annotations, e.uri)
           if types.include? "Sketch" 

reply via email to

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