myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [2007] branches/event_logging/app/views/home/_sum


From: noreply
Subject: [myexperiment-hackers] [2007] branches/event_logging/app/views/home/_summary.rhtml: Fix for the last commit.
Date: Thu, 27 Nov 2008 07:32:46 -0500 (EST)

Revision
2007
Author
alekses6
Date
2008-11-27 07:32:46 -0500 (Thu, 27 Nov 2008)

Log Message

Fix for the last commit. No need to cache quick summary on the home page per user - it contains only public information. The only required distinction is between logged_in ("member") and anonymous users - this is because of numbering of tabs on the home page (logged_in users get "my news" tab in front of others which shifts tab numbering).

Modified Paths

Diff

Modified: branches/event_logging/app/views/home/_summary.rhtml (2006 => 2007)


--- branches/event_logging/app/views/home/_summary.rhtml	2008-11-27 12:26:43 UTC (rev 2006)
+++ branches/event_logging/app/views/home/_summary.rhtml	2008-11-27 12:32:46 UTC (rev 2007)
@@ -6,7 +6,7 @@
 <% # "My News" tab is added in front of others -%>
 <% tab_id_correction = logged_in? ? 1 : 0 -%>
 
-<% viewer_id = (logged_in? ? current_user.id : "public") %>
+<% viewer_id = (logged_in? ? "member" : "anonymous") %>
 <% cache_timeout({ :controller => 'home_cache', :action ="" 'quick_summary', :id => viewer_id } , NEWS_CACHE_TIMEOUT.seconds.from_now ) do -%>
 	<div class="box">
 		<b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b>

reply via email to

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