~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/tutorial/exercise.html

Tutorial: Added a message, "no attempts have been made to this exercise",
    rather than displaying the empty box and View button.
    As a contingency, also fixed the View button - won't crash if there are no
    items in the list.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
            Close attempts
53
53
          </a>
54
54
        </p>
55
 
        <p>
 
55
        <p class="attemptslist" style="display: none">
56
56
          <select title="Select an attempt's time stamp from the list">
57
57
            <option></option>
58
58
          </select>
59
59
          <input type="button" value="View"
60
60
              onclick="select_attempt(&quot;exercise${exerciseid}&quot;, '${filename}')" />
61
61
        </p>
 
62
        <p class="noattempts" style="display: none">
 
63
          No attempts have been made for this exercise.
 
64
        </p>
62
65
        <p>
63
66
          <textarea readonly="readonly" class="exercisebox" cols="80" rows="${rows}"
64
67
              title="You submitted this code on a previous attempt">