Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: sitescripts/reports/template/showUser.html

Issue 8793015: Reports - user profile (Closed)
Patch Set: Reports - user profile Created Nov. 7, 2012, 11:39 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sitescripts/reports/template/report.html ('k') | sitescripts/reports/utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/reports/template/showUser.html
===================================================================
new file mode 100644
--- /dev/null
+++ b/sitescripts/reports/template/showUser.html
@@ -0,0 +1,25 @@
+<!-- This Source Code is subject to the terms of the Mozilla Public License
+ - version 2.0 (the "License"). You can obtain a copy of the License at
+ - http://mozilla.org/MPL/2.0/. -->
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>User profile</title>
+</head>
+<body>
+ <h2>Statistics:</h2>
+ <table>
+ <tr><td>Number of reports:</td><td>{{reports}}</td></tr>
+ <tr><td>Marked as useful:</td><td>{{positive}}</td></tr>
+ <tr><td>Marked as not useful:</td><td>{{negative}}</td></tr>
+ </table>
+ {% if reportlist -%}
+ <h2>Latest reports:</h2>
+ <p>
+ {%- for report in reportlist -%}
+ <a href="/{{report.guid}}">{{report.guid}}</a><br />
+ {%- endfor -%}
+ </p>
+ {% endif -%}
+</body>
+</html>
« no previous file with comments | « sitescripts/reports/template/report.html ('k') | sitescripts/reports/utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld