Sha256: 31e54cd9d0f1043621a58140c3f4313f2fbdcbb3727d287a06ed1d374992d280
Contents?: true
Size: 1.09 KB
Versions: 2
Compression:
Stored size: 1.09 KB
Contents
- detail ||= false - performance ||= splits - checkpoints = @checkpoints || @instance.checkpoints - splits = if @splits - @splits[performance.id] || [] - else - performance.splits %tr %td.pos - if performance.finished? = link_to performance.position, race_performance_url(@instance.race, @instance, performance) - else = performance.status %td.runner = link_to performance.name, race_performance_url(@instance.race, @instance, performance) - previous = nil - checkpoints.each do |cp| %td.cpt - if t = splits[cp.id] = t - if previous %br %span.note = t - previous - previous = t - else - previous = nil — - if detail - cpts = performance.checkpoint_times %tr %th{:colspan => 2} Position - cpts.each do |cpt| %td.pos = cpt.position %tr %th{:colspan => 2} Leg Position - cpts.each do |cpt| %td.pos = cpt.leg_position %tr %th{:colspan => 2} Gain - cpts.each do |cpt| %td.pos = -cpt.gain
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
radiant-race_results-extension-1.4.6 | app/views/race_performances/_splits.html.haml |
radiant-race_results-extension-1.4.5 | app/views/race_performances/_splits.html.haml |