Subversion Repositories wimsdev

Rev

Rev 16114 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !set name_titlestate=Current status of the exercise
  2. !set name_hypusable=Usable hypotheses:
  3. !set name_totransform=Objects to transform
  4. !set name_remaintoprove=Still to prove
  5. !set name_statushelp_1=!nosubst You should solve this exercise in \
  6.   $m_minsteps steps in order to have a maximal score.
  7. !set name_statushelp_2=!nosubst This exercise can be solved with \
  8.   $m_minsteps steps, but in its current status you can make up to \
  9.   $[$m_minsteps+$tolerance] steps and still have a maximal score.
  10. !set name_statushelp_3=You are now on the step number
  11. !set name_statushelp_4=!nosubst You have finished at the end of $[$currstep-1] steps.
  12. !set name_statushelp_5=!nosubst You still have $[$casecnt-1] cases to process.\
  13.   Current case
  14. !set name_statushelp_6=This is your last case to process
  15.  
  16. !set contextcnt=!linecnt $m_context
  17. !set goalcnt=!linecnt $m_goal
  18. !set equivcnt=!linecnt $m_equivalence
  19. !set casecnt=!linecnt $allcases
  20.  
  21. <h4>$name_titlestate</h4>
  22.  
  23. !if $tolerance<=0
  24.   $name_statushelp_1
  25. !else
  26.   $name_statushelp_2
  27. !endif
  28. !if $status=waiting
  29.   $name_statushelp_3 $currstep.
  30. !else
  31.   $name_statushelp_4
  32. !endif
  33.  
  34. !if $casecnt>1
  35.   <div>
  36.   !if $casecnt>2
  37.     $name_statushelp_5:
  38.     <p>\($caseid).</p>
  39.   !else
  40.     $name_statushelp_6: \($caseid).
  41.   !endif
  42.   </div>
  43. !endif
  44.  
  45. !if $goalcnt>0
  46.   $name_remaintoprove:
  47.   <ol>
  48.   !for i=1 to $goalcnt
  49.    !set l=!line $i of $m_goal
  50.    <li>\($l).</li>
  51.   !next i
  52.   </ol>
  53. !else
  54.   !if $equivcnt>0
  55.     $name_totransform:
  56.     <ol>
  57.     !for i=1 to $equivcnt
  58.       !set l=!line $i of $m_equivalence
  59.       <li>\($l).</li>
  60.     !next i
  61.     </ol>
  62.   !endif
  63. !endif
  64.  
  65. !if $contextcnt>0
  66.   $name_hypusable:
  67.   <ol>
  68.   !for i=1 to $contextcnt
  69.     !set l=!line $i of $m_context
  70.     <li>\($l).</li>
  71.   !next i
  72.   </ol>
  73. !endif
  74.