myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [2929] trunk/app/views/topics/index.rhtml: Fix to


From: noreply
Subject: [myexperiment-hackers] [2929] trunk/app/views/topics/index.rhtml: Fix to prevent stack error in topics tab when no topics in DB
Date: Mon, 13 Feb 2012 08:51:11 -0500 (EST)

Revision
2929
Author
fbacall
Date
2012-02-13 08:51:11 -0500 (Mon, 13 Feb 2012)

Log Message

Fix to prevent stack error in topics tab when no topics in DB

Modified Paths

Diff

Modified: trunk/app/views/topics/index.rhtml (2928 => 2929)


--- trunk/app/views/topics/index.rhtml	2012-02-13 13:26:05 UTC (rev 2928)
+++ trunk/app/views/topics/index.rhtml	2012-02-13 13:51:11 UTC (rev 2929)
@@ -21,5 +21,11 @@
 	</div>
 </div>
 
-<%= render(:partial => 'topics/tiles', :locals => { :topics => @curr_run.topics }) -%>
+<% if @curr_run && @curr_run.topics %>
+  <%= render(:partial => 'topics/tiles', :locals => { :topics => @curr_run.topics }) -%>
+<% else %>
+<div style="text-align:center">
+  <span class="none_text">No topics found.</span>
+</div>
+<% end %>
 

reply via email to

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