Skip to content

Commit

Permalink
feat(admin): surface trusted publisher via admin
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Fiedler <[email protected]>
  • Loading branch information
miketheman committed Oct 10, 2023
1 parent 9768629 commit 0d245b8
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions warehouse/admin/templates/admin/projects/release_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@ <h3>Details</h3>
<td>Created via</td>
<td><code>{{ release.uploaded_via }}</code></td>
</tr>
<tr>
<td>Trusted Published?</td>
<td>
{% if release.trusted_published %}
<i class="fa fa-fw fa-check text-green"></i>
{% else %}
<i class="fa fa-fw fa-times text-red"></i>
<span>
<i class="fa fa-info-circle" data-bs-toggle="tooltip" title="All Files of a Release must be TP for this to be True"></i>
</span>
{% endif %}
</tr>
<tr>
<td>Yanked</td>
<td>{{ release.yanked }}</td>
Expand All @@ -70,6 +82,7 @@ <h3>Files</h3>
<th>Package Type</th>
<th>Python Version</th>
<th>Uploaded via</th>
<th>Trusted Publisher?</th>
</tr>
</thead>
<tbody>
Expand All @@ -79,6 +92,13 @@ <h3>Files</h3>
<td>{{ file.packagetype }}</td>
<td>{{ file.python_version }}</td>
<td><code>{{ file.uploaded_via }}</code></td>
<td>
{% if file.uploaded_via_trusted_publisher %}
<i class="fa fa-fw fa-check text-green"></i>
{% else %}
<i class="fa fa-fw fa-times text-red"></i>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
Expand Down

0 comments on commit 0d245b8

Please sign in to comment.