orangesite/view/index.html

66 lines
1.6 KiB
HTML
Raw Normal View History

2020-03-25 00:49:19 +00:00
{% extends "page.html" %}
{% block content %}
<div class="col-lg-12">
2020-03-25 03:55:03 +00:00
<h2>Links Exiting The Front Page <small>(last 24h)</small></h2>
2020-03-25 03:55:03 +00:00
<table class="table table-striped table-hover">
<thead class="thead-dark">
<tr>
<th scope="col">Hang Time</th>
<th scope="col">Title</th>
<th scope="col">Highest Rank</th>
<th scope="col">Time Since <a
href="https://www.youtube.com/watch?v=p13yZAjhU0M">Wipeout</a></th>
2020-03-25 03:55:03 +00:00
</tr>
</thead>
<tbody>
{% for exit in exits %}
<!--
{{ exit|stringformat:'%#v'}}
-->
<tr>
{% if exit.DurationSecs < 1800 %}
<td scope="row" class="text-danger">{{exit.Duration}}</th>
{% else %}
<td scope="row">{{exit.Duration}}</th>
{% endif %}
<td><a href="{{exit.URL}}">{{exit.Title}}</a> <small>({{exit.Score}}
points, <a
2020-03-25 03:55:03 +00:00
href="https://news.ycombinator.com/item?id={{exit.HNID}}">comments</a>)</small></td>
<td>{{exit.HighestRank}}</td>
<td>{{exit.TimeGone}}</td>
</tr>
{% endfor %}
</tbody>
</table>
<h2>Current Top30</h2>
<table class="table table-striped table-hover">
<thead class="thead-dark">
<tr>
<th scope="col">Hang Time</th>
<th scope="col">Title</th>
<th scope="col">Highest Rank</th>
</tr>
</thead>
<tbody>
{% for i in current %}
<tr>
<td scope="row">{{i.Duration}}</th>
<td><a href="{{i.URL}}">{{i.Title}}</a> <small>({{i.Score}} points, <a
2020-03-25 03:55:03 +00:00
href="https://news.ycombinator.com/item?id={{i.HNID}}">comments</a>)</small></td>
<td>{{i.HighestRank}}</td>
</tr>
{% endfor %}
</tbody>
</table>
2020-03-25 00:49:19 +00:00
</div>
{% endblock %}