Skip to content

Commit efa6de6

Browse files
authored
feat(admin): add visibility for description (#14083)
1 parent 99219ec commit efa6de6

File tree

1 file changed

+37
-8
lines changed

1 file changed

+37
-8
lines changed

warehouse/admin/templates/admin/projects/release_detail.html

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,6 @@ <h3>Metadata</h3>
136136
<td>Summary</td>
137137
<td><code>{{ release.summary }}</code></td>
138138
</tr>
139-
<tr>
140-
<td>Description</td>
141-
<td><code>{{ release.description.raw }}</code></td>
142-
</tr>
143-
<tr>
144-
<td>Description-Content-Type</td>
145-
<td><code>{{ release.description.content_type }}</code></td>
146-
</tr>
147139
<tr>
148140
<td>Keywords</td>
149141
<td><code>{{ release.keywords }}</code></td>
@@ -225,4 +217,41 @@ <h3>Metadata</h3>
225217
</table>
226218
</div>
227219
</div>
220+
<div class="card">
221+
<div class="card-header">
222+
<h3>Description Rendering</h3>
223+
</div>
224+
<div class="card-body table-responsive">
225+
<table class="table table-hover">
226+
<tr>
227+
<td>Rendered By Version</td>
228+
<td><code>{{ release.description.rendered_by }}</code></td>
229+
</tr>
230+
<tr>
231+
<td>Detected Content-Type</td>
232+
<td><code>{{ release.description.content_type }}</code></td>
233+
</tr>
234+
<tr>
235+
<td>Raw Input</td>
236+
<td><code>{{ release.description.raw }}</code></td>
237+
</tr>
238+
<tr>
239+
<td>Stored Output</td>
240+
<td><code>{{ release.description.html }}</code></td>
241+
<tr>
242+
<td>Database ID</td>
243+
<td><code>{{ release.description.id }}</code></td>
244+
</tr>
245+
</table>
246+
</div>
247+
{# TODO: Implement re-render task kick-off.
248+
# Look at `warehouse.packaging.tasks.update_description_html`
249+
# and `warehouse.admin.views.projects.reindex_project`
250+
<div class="card-footer">
251+
<p>
252+
<a href="#" class="btn btn-primary">Re-render</a>
253+
</p>
254+
</div>
255+
#}
256+
</div>
228257
{% endblock content %}

0 commit comments

Comments
 (0)