File: action_log.html

package info (click to toggle)
python-werkzeug 1.0.1%2Bdfsg1-2%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,888 kB
  • sloc: python: 21,897; javascript: 173; makefile: 36; xml: 16
file content (44 lines) | stat: -rw-r--r-- 1,773 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?python
  page_action = 'log'
?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude"
      xmlns:py="http://genshi.edgewall.org/"><xi:include href="layout.html" />
  <head>
    <title>Revisions for “${page.title}”</title>
  </head>
  <body>
    <h1>Revisions for “<a href="${href(page.name)}">${page.title}</a>”</h1>
    <p>
      In this list you can see all the revisions of the requested page.
    </p>
    <form action="${href(page.name)}" method="get">
      <input type="hidden" name="action" value="diff" />
      <table class="revisions">
        <tr>
          <th class="timestamp">Date</th>
          <th class="change_note">Change Note</th>
          <th class="diff"><input type="submit" value="Diff" /></th>
          <th class="actions">Actions</th>
        </tr>
        <tr py:for="idx, revision in enumerate(page.revisions)"
            class="${'even' if idx % 2 == 1 else 'odd'}">
          <td class="timestamp">${format_datetime(revision.timestamp)}</td>
          <td class="change_note">${revision.change_note}</td>
          <td class="diff">
            <input type="radio" name="old" value="${revision.revision_id}"
                   checked="${'checked' if idx == 1 else None}" />
            <input type="radio" name="new" value="${revision.revision_id}"
                   checked="${'checked' if idx == 0 else None}" />
          </td>
          <td class="actions">
            <a href="${href(page.name, rev=revision.revision_id)}">show</a>
            <py:if test="idx">|
              <a href="${href(page.name, rev=revision.revision_id,
                              action='revert')}">revert</a>
            </py:if>
          </td>
        </tr>
      </table>
    </form>
  </body>
</html>