Skip to content

Commit

Permalink
Show version and ABI before filename in files table on project pages
Browse files Browse the repository at this point in the history
  • Loading branch information
bennuttall committed Mar 21, 2019
1 parent ebf9346 commit 9bac240
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions piwheels/master/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,10 +397,10 @@ def get_project_versions(self, package):
(self._versions.c.skip != '')
).label('skipped'),
func.coalesce(func.string_agg(
distinct(self._builds.c.abi_tag), ','
distinct(self._builds.c.abi_tag), ', '
).filter(self._builds.c.status), '').label('builds_succeeded'),
func.coalesce(func.string_agg(
distinct(self._builds.c.abi_tag), ','
distinct(self._builds.c.abi_tag), ', '
).filter(~self._builds.c.status), '').label('builds_failed'),
]).
select_from(self._packages.join(self._versions.outerjoin(self._builds))).
Expand Down
5 changes: 3 additions & 2 deletions piwheels/master/templates/project.pt
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,12 @@ sudo pip3 install ${package}</pre>
<div class="small-12 columns">
<h3>Files</h3>
<table tal:condition="files">
<tr><th>Filename</th><th>ABI</th><th>Size</th></tr>
<tr><th>Version</th><th>ABI</th><th>Filename</th><th>Size</th></tr>
<span tal:repeat="row files" tal:omit-tag="True">
<tr class="${'hidden-file' if repeat.row.number > 5 else ''}">
<td><a href="${url(row.filename, row.filehash)}">${row.filename}</a></td>
<td>${row.version}</td>
<td>${row.abi_tag}</td>
<td><a href="${url(row.filename, row.filehash)}">${row.filename}</a></td>
<td>${format_size(row.filesize)}</td>
</tr>
</span>
Expand Down

0 comments on commit 9bac240

Please sign in to comment.