~landscape/zope3/ztk-1.1.3

« back to all changes in this revision

Viewing changes to src/zope/app/error/browser/errorentry.pt

  • Committer: Sidnei da Silva
  • Date: 2010-07-05 21:07:01 UTC
  • Revision ID: sidnei.da.silva@canonical.com-20100705210701-zmqhqrbzad1mhzsl
- Reduce deps

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<html metal:use-macro="context/@@standard_macros/page"
2
 
    i18n:domain="zope">
3
 
<head>
4
 
  <title metal:fill-slot="title" i18n:translate="">View Error Log Report</title>
5
 
</head>
6
 
<body>
7
 
<div metal:fill-slot="body"
8
 
     tal:define="entry python:context.getLogEntryById(request.get('id'))">
9
 
 
10
 
  <h1 i18n:translate="">Header</h1>
11
 
 
12
 
  <h3 i18n:translate="">Exception traceback</h3>
13
 
 
14
 
  <em tal:condition="not:entry" i18n:translate="">
15
 
    The specified log entry was not found.  It may have expired.
16
 
  </em>
17
 
 
18
 
  <div tal:condition="entry">
19
 
 
20
 
    <div class="row">
21
 
      <div class="label" i18n:translate="">Time</div>
22
 
      <div class="field" tal:content="entry/time">Time</div>
23
 
    </div>
24
 
 
25
 
    <div class="row">
26
 
      <div class="label" i18n:translate="">User</div>
27
 
      <div class="field" tal:content="entry/username">joe</div>
28
 
    </div>
29
 
 
30
 
    <div class="row">
31
 
      <div class="label" i18n:translate="">Request URL</div>
32
 
      <div class="field" tal:content="entry/url">http://zeomega.com</div>
33
 
    </div>
34
 
 
35
 
    <div class="row">
36
 
      <div class="label" i18n:translate="">Exception Type</div>
37
 
      <div class="field" tal:content="entry/type">AttributeError</div>
38
 
    </div>
39
 
 
40
 
    <div class="row">
41
 
      <div class="label" i18n:translate="">Exception Value</div>
42
 
      <div class="field" tal:content="entry/value">zzope</div>
43
 
    </div>
44
 
 
45
 
    <div class="row">
46
 
      <div class="label" i18n:translate="">Traceback</div>
47
 
      <div class="field">&nbsp;</div>
48
 
    </div>
49
 
    <br/>
50
 
 
51
 
    <div tal:condition="entry/tb_html" tal:content="structure entry/tb_html">
52
 
      Traceback (HTML)
53
 
    </div>
54
 
 
55
 
    <pre tal:condition="not:entry/tb_html" tal:content="entry/tb_text">
56
 
      Traceback (text)
57
 
    </pre>
58
 
 
59
 
    <p tal:condition="entry/tb_text">
60
 
      <a href="" 
61
 
         tal:attributes="href string:showTextTBEntry.html?id=${entry/id}" 
62
 
         i18n:translate="">Display traceback as text</a>
63
 
    </p>
64
 
 
65
 
 
66
 
    <div tal:condition="entry/req_html">
67
 
 
68
 
      <h3 i18n:translate="">REQUEST</h3>
69
 
 
70
 
      <div tal:replace="structure entry/req_html"></div>
71
 
 
72
 
    </div>
73
 
 
74
 
  </div>
75
 
 
76
 
  <form action="index.html" method="get">
77
 
    <div class="row">
78
 
      <div class="controls">
79
 
        <input type="submit" name="submit" value="Return to log" 
80
 
                i18n:attributes="value return-to-log-button" />
81
 
        </div>
82
 
    </div>
83
 
  </form>
84
 
 
85
 
</div>
86
 
</body>
87
 
</html>