-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created an HTML table-based "package releases" view. (#157)
* Created an HTML table-based "package releases" view. * Adapted test to prior changes.
- Loading branch information
1 parent
517c2ae
commit 6f2a5e1
Showing
4 changed files
with
65 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{% extends 'base.html' %} | ||
|
||
{% block head %} | ||
<link rel="stylesheet" type="text/css" href="/static/style.css"> | ||
{% endblock %} | ||
|
||
{% block body %} | ||
{% if releases|length != 1 %} | ||
<p>Retrieved {{ releases|length }} versions.</p> | ||
{% else %} | ||
<p>Retrieved 1 version.</p> | ||
{% endif %} | ||
|
||
<table> | ||
<colgroup> | ||
<col style="width: 160px"> | ||
<col style="width: 160px"> | ||
<col style="width: 160px"> | ||
</colgroup> | ||
<thead> | ||
<tr> | ||
<th>Version</th> | ||
<th>Upload Timestamp</th> | ||
<th>Artifacts</th> | ||
</tr> | ||
</thead> | ||
{% for key, value in releases.items() %} | ||
<tr> | ||
{% if value|length > 0 %} | ||
<td><a href="./{{ key }}">{{ key }}</a></td> | ||
<td>{{ value[0]['upload_time'] }}</td> | ||
<td>{{ value|length }}</td> | ||
{% else %} | ||
<td>{{ key }}</td> | ||
<td><span class="no-entries"><i>Not Available</i></span></td> | ||
<td><span class="no-entries"><i>Not Available</i></span></td> | ||
{% endif %} | ||
</tr> | ||
{% endfor %} | ||
<tbody> | ||
</tbody> | ||
|
||
</table> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters