Skip to content

Commit

Permalink
user_times_at switched to use session user
Browse files Browse the repository at this point in the history
  • Loading branch information
spf13 committed Sep 14, 2013
1 parent 64bd8e3 commit 3af6aae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions helpers/milieu.rb
Expand Up @@ -2,15 +2,15 @@
def user_times_at
if logged_in?
times = 'You have checked in here '
if !@user.venues.nil? && !@user.venues[params[:_id]].nil?
times << @user.venues[params[:_id]]['count'].to_s
if !@suser.checkins.nil? && !@suser.checkins[params[:_id]].nil?
times << @suser.checkins[params[:_id]]['count'].to_s
else
times << '0'
end
times << ' times'

if !@user.venues.nil? && !@user.venues[params[:_id]].nil?
times << '<br/>You checked in here last on ' << @user.venues[params[:_id]]['last_checkin_ts'].to_s
if !@suser.checkins.nil? && !@suser.checkins[params[:_id]].nil?
times << '<br/>You checked in here last on ' << @suser.checkins[params[:_id]]['last_checkin_ts'].to_s
end
else
times = 'Please <a href=\'/login\'>login</a> to join them.'
Expand Down

0 comments on commit 3af6aae

Please sign in to comment.