summaryrefslogtreecommitdiff
path: root/templates/mirrors/error_table.html.jinja
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-04-16 01:16:52 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-04-16 01:16:52 -0400
commit7aabbe788bb4e26ee9c7cfc0e18692b487e11099 (patch)
treee1032beb86e35caafb164e694d2aa7e2e9664de2 /templates/mirrors/error_table.html.jinja
parent046e6c8b6152a8142ed838e5c406cc04c18f2533 (diff)
parent155bf43a28e404f327a7bcff214c22e212627673 (diff)
Merge branch 'archweb-generic'
Diffstat (limited to 'templates/mirrors/error_table.html.jinja')
-rw-r--r--templates/mirrors/error_table.html.jinja22
1 files changed, 22 insertions, 0 deletions
diff --git a/templates/mirrors/error_table.html.jinja b/templates/mirrors/error_table.html.jinja
new file mode 100644
index 00000000..52f68135
--- /dev/null
+++ b/templates/mirrors/error_table.html.jinja
@@ -0,0 +1,22 @@
+<table id="errorlog_mirrors" class="results">
+ <thead>
+ <tr>
+ <th>Mirror URL</th>
+ <th>Protocol</th>
+ <th>Country</th>
+ <th>Error Message</th>
+ <th>Last Occurred</th>
+ <th>Occurrences (last {{ cutoff|hours }})</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for log in error_logs %}<tr class="{{ loop.cycle('odd', 'even') }}">
+ <td>{{ log.url__url }}</td>
+ <td>{{ log.url__protocol__protocol }}</td>
+ <td class="country">{{ country_flag(log.country) }}{{ log.country.name }}</td>
+ <td class="wrap">{{ log.error|linebreaksbr }}</td>
+ <td>{{ log.last_occurred|date('Y-m-d H:i') }}</td>
+ <td>{{ log.error_count }}</td>
+ </tr>{% endfor %}
+ </tbody>
+</table>