!if equalities iswordof $m_options or $laststep<1
!endif
!readproc tabletheme
$table_header
<caption>History of steps</caption>
$table_hdtr<th>Step</th>
!if $casecnt>1
<th>Case</th>
!endif
<th>Result</th><th></th>
<th>Method</th>
<th>Remarks</th></tr>
!set hstart
=$
[max(1,$currstep-10)]
!set hstop
=$
[min($laststep,$currstep+8)]
!for i=$hstart to $hstop
!if $i=$currstep
!distribute item <span style="color:#9090C0">,</span> into light1,light2
!endif
$table_tr<td class="wimscenter nowrap">$light1
$i
!if $status=waiting
<small>
!if $i<$currstep
!href cmd=reply&opt=newstep&gotostep=$i undo
!else
!href cmd=reply&opt=newstep&gotostep=$[$i+1] redo
!endif
</small>
!endif
$light2</td>
!if $casecnt>1
!set c_=!item $i of $stepcases
<td class="wimscenter">$light1 \($c_) $light2</td>
!endif
<td class="wimscenter">$light1
!read deduc/putobject.phtml $i
$light2</td><td></td><td>$light1
!line $i of $methods
$light2</td>
<td>$light1
!if $objisgoal=yes
Goal change.
!endif
!set t_=!char $i of $stepcounting
!if $t_=0
Not counted for score.
!set R_=1
!endif
!if $R_!=1
!endif
$light2</td>
</tr>
$table_end<a id="last"></a>