Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/glacials/splits-io. a speedrunning data store and analysis engine splits.io
Something went wrong. Try again.
1.4 kB · 31 lines
at lambda-parse
1234567891011121314151617181920212223242526272829303132- cache [:follows, @user] do - if @user.follows.present? h4 Recent PBs By People You Follow .row .col-md-6 .list-group - Run.includes(:game, :category, :user).where( \ user: current_user.follows \ ).where.not( \ games: {name: [nil, ""]} \ ).order('runs.created_at DESC').limit(10).each do |run| a.list-group-item href=( \ current_user.runs?(run.category) ? compare_path(current_user.pb_for(run.category), run) : run_path(run) \ ) .media style='margin: .5em 0;' .pull-left href=user_path(run.user) img src=run.user.avatar height=64 width=64 .media-body .pull-right = pretty_timestamp(run.created_at) div = run.user - if run.user.silver_patron? .gold-split title='Patron' div = "#{run.game} #{run.category}" div = format_milliseconds(run.duration_ms(Run::REAL)) - if current_user.runs?(run.category) - user_pb = current_user.pb_for(run.category) = " (" = pretty_difference(user_pb.duration_ms(Run::REAL), run.duration_ms(Run::REAL)) = ")"