myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [3260] branches/wf4ever/app/helpers/application_h


From: noreply
Subject: [myexperiment-hackers] [3260] branches/wf4ever/app/helpers/application_helper.rb: Show ResearchObject title in news
Date: Fri, 14 Dec 2012 12:56:19 +0000 (UTC)

Revision
3260
Author
stain
Date
2012-12-14 12:56:18 +0000 (Fri, 14 Dec 2012)

Log Message

Show ResearchObject title in news

Modified Paths

Diff

Modified: branches/wf4ever/app/helpers/application_helper.rb (3259 => 3260)


--- branches/wf4ever/app/helpers/application_helper.rb	2012-12-13 15:46:26 UTC (rev 3259)
+++ branches/wf4ever/app/helpers/application_helper.rb	2012-12-14 12:56:18 UTC (rev 3260)
@@ -1444,6 +1444,10 @@
         end
           
         link = link_to h(title), url_for(:controller => :workflows, :action ="" :show, :id => item.contributable_id, :version => 1)
+      when "ResearchObject"
+        title = item.contributable.title
+          
+        link = link_to h(title), url_for(:controller => :research_objects, :action ="" :show, :id => item.contributable_id, :version => 1)
       else
         link = contributable(item.contributable_id, item.contributable_type)
       end

reply via email to

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