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.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139- title(@run)- timing = params[:timing] || @run.default_timing
- content_for(:header) do - if @run.game.present? && @run.category.present? ul.breadcrumb li = link_to "Games", games_path li = link_to @run.game, game_path(@run.game) li = link_to @run.category, game_category_path(@run.game, @run.category) li = link_to @run.id36, run_path(@run) li = link_to "Statistics", run_stats_path(@run) = render partial: 'runs/title', locals: {run: @run, timing: timing}
= render partial: 'runs/full_timeline', locals: {run: @run, timing: timing}
article#stats .panel.panel-default .panel-heading | Run Information .pull-right a href=run_history_csv_path(@run) ↓ download run history csv table.panel-body.table.table-striped.table-hover tbody tr td span Timer td - program = Run.program(@run.program) span = program span< = "(" span = link_to "website", program.website, target: :_blank span = ")" tr td span Uploaded td title=@run.created_at = "#{time_ago_in_words(@run.created_at)} ago" - has_sob = @run.sum_of_best_ms(timing).present? && @run.sum_of_best_ms(timing) != 0 - has_attempts = @run.duration_ms(timing).present? && @run.duration_ms(timing) != 0 - if !has_sob tr.tip title="This run has no gold splits recorded" td span Sum of best td - - else tr td span Sum of best td = format_milliseconds(@run.sum_of_best_ms(timing)) - if !has_sob || !has_attempts tr.tip title="This run has no gold splits recorded" td span Total potential timesave small.tip-html< title="<code>PB - sum of best</code>" = "(?)" td - - else tr td span Total potential timesave small.tip-html< title="<code>PB - sum of best</code>" = "(?)" td = format_milliseconds(@run.duration_ms(timing) - @run.sum_of_best_ms(timing)) tr td span Attempt td = @run.attempts || '-' tr td span Splits td = @run.segments.size tr td span Missed splits this run td = @run.skipped_splits(timing).size tr td span Exact run duration td #{@run.duration_ms(timing).to_f / 1000}s tr td span Shortest segment td - if @run.collapsed_segments(timing).size > 0 | #{@run.shortest_segment(timing).name} ( span = format_milliseconds(@run.shortest_segment(timing).duration_ms(timing)) | ) - else span.time - tr td span Longest segment td - if @run.longest_segment(timing).present? | #{@run.longest_segment(timing).name} ( span = format_milliseconds(@run.longest_segment(timing).duration_ms(timing)) | ) - else span.time - tr td span Mean segment length td - if @run.collapsed_segments(timing).size > 0 span = format_milliseconds(@run.duration_ms(timing) / @run.collapsed_segments(timing).size) - else span.time - tr td span Median segment length td - if @run.collapsed_segments(timing).size > 0 span = format_milliseconds(@run.median_segment_duration_ms(timing)) - else span.time - tr td span Total Playtime td - if @run.total_playtime_ms(timing) != 0 span = format_milliseconds(@run.total_playtime_ms(timing)) - else span.time - = render partial: 'runs/stats/segments', locals: {run: @run, short: @run.short?, splits: @raw_splits} - if @run.collapsed_segments(timing).size > 0 .panel.panel-default .panel-body #pb-graph - if @run.histories.size > 0 .panel.panel-default .panel-body #split-history-graph .panel.panel-default .panel-body #run-duration-graph .panel.panel-default .panel-body #segment-duration-graph .panel.panel-default .panel-body #reset-graph