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

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/templates/subjects.html

  • Committer: Matt Giuca
  • Date: 2010-02-12 02:49:17 UTC
  • Revision ID: matt.giuca@gmail.com-20100212024917-z9g1d5v4utr0u2zm
Fixed policy on who is able to view the list of exercises and create a new one. Rather than being 'if you can edit any offering', it is now the same rule as determining whether you can edit exercises.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
          <thead><tr><th>Subject</th><th>Code</th><th>Actions</th></tr></thead>
24
24
          <tbody>
25
25
            <tr py:for="subject in subjects">
26
 
              <td>${subject.name}</td>
 
26
              <td><a href="${req.publisher.generate(subject)}">${subject.name}</a></td>
27
27
              <td>${subject.code}</td>
28
28
              <td>
29
29
                <a href="${req.publisher.generate(subject, SubjectEdit)}" title="Edit"><img src="${mediapath + 'interface/pencil.png'}" alt="Edit" /></a>
33
33
        </table>
34
34
        <p>
35
35
          <a class="addaction" href="/subjects/+new">Create new subject</a>
36
 
          <a class="addaction" href="/subjects/+new-offering">Create new offering</a>
37
36
        </p>
38
37
      </py:if>
39
38
    </div>