[1570] | 1 | <metal:body use-macro="here/main_template/macros/master"> |
---|
| 2 | <metal:main fill-slot="main"> |
---|
| 3 | <metal:block tal:define="data context/getLogData; |
---|
| 4 | mtool here/portal_membership; |
---|
| 5 | member mtool/getAuthenticatedMember;"> |
---|
| 6 | |
---|
| 7 | <h3>Current Log Entries (<span tal:replace="data/filename"/>)</h3> |
---|
| 8 | <br /> |
---|
| 9 | |
---|
| 10 | <span tal:condition="not:isAnon"> |
---|
| 11 | |
---|
| 12 | <form method="post" action="view_logs"> |
---|
| 13 | Show last <input type="text" name="numlines" value="20" |
---|
| 14 | tal:attributes="value data/numlines" /> |
---|
| 15 | lines of |
---|
| 16 | <select name="filename"> |
---|
| 17 | <option |
---|
| 18 | tal:attributes="selected python: data['filename']=='event.log'" |
---|
| 19 | value="event.log">Event Log</option> |
---|
| 20 | <option |
---|
| 21 | tal:attributes="selected python: data['filename']=='Z2.log'" |
---|
| 22 | value="Z2.log">Access Log</option> |
---|
| 23 | </select> |
---|
| 24 | <input type="submit" value="Refresh" /> |
---|
| 25 | </form> |
---|
| 26 | |
---|
| 27 | <hr /> |
---|
| 28 | |
---|
| 29 | <table> |
---|
| 30 | <tr class="even ajaxtd" tal:repeat="line data/lines"> |
---|
| 31 | <td><span tal:replace="line" /></td> |
---|
| 32 | </tr> |
---|
| 33 | </table> |
---|
| 34 | |
---|
| 35 | <hr /> |
---|
| 36 | |
---|
| 37 | <form method="post" action="view_logs"> |
---|
| 38 | Show last <input type="text" name="numlines" value="20" |
---|
| 39 | tal:attributes="value data/numlines" /> |
---|
| 40 | lines of |
---|
| 41 | <select name="filename"> |
---|
| 42 | <option |
---|
| 43 | tal:attributes="selected python: data['filename']=='event.log'" |
---|
| 44 | value="event.log">Event Log</option> |
---|
| 45 | <option |
---|
| 46 | tal:attributes="selected python: data['filename']=='Z2.log'" |
---|
| 47 | value="Z2.log">Access Log</option> |
---|
| 48 | </select> |
---|
| 49 | <input type="submit" value="Refresh" /> |
---|
| 50 | </form> |
---|
| 51 | |
---|
| 52 | </span> <!-- condition: not:isAnon --> |
---|
| 53 | </metal:block> |
---|
| 54 | </metal:main> |
---|
| 55 | </metal:body> |
---|
| 56 | |
---|