fix: Format NomCom feedback table per suggestion of @richsalz (#4625)

Also makes table header alignment the same as for columns, site-wide.

Fixes #4529
This commit is contained in:
Lars Eggert 2022-10-21 19:04:10 +03:00 committed by GitHub
parent 26e2e23418
commit 5ac3874ce9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 9 deletions

View file

@ -86,10 +86,9 @@ $(document)
$(header_row)
.children("[data-sort]")
.addClass("sort");
// $(header_row)
// .children("th, td")
// .wrapInner('<span class="tablesorter-th"></span>');
// // .each((i, e) => field_magic(i, e, fields));
$(header_row)
.children("th, td")
.each((i, e) => field_magic(i, e, fields));
if ($(header_row)
.text()

View file

@ -8,7 +8,7 @@
{% block nomcom_content %}
{% origin %}
<h2 class="mt-3">Nomination status</h2>
<table class="table table-sm table-striped table-hover tablesorter">
<table class="table table-sm table-striped-columns table-hover tablesorter">
<thead class="wrap-anywhere">
<tr>
<th scope="col" data-sort="position">Position</th>
@ -156,7 +156,7 @@
<i class="bi bi-check"></i>
</th>
{% endif %}
<th scope="col" data-sort="nominee" colspan="2">
<th scope="col" data-sort="nominee">
Nominee
</th>
<th scope="col" data-sort="position">
@ -194,9 +194,7 @@
<a href="{% url 'ietf.person.views.profile' email_or_name=np.nominee.name %}">
{{ np.nominee.email.name_and_email }}
</a>
</td>
<td>
<a class="btn btn-primary btn-sm"
<a class="btn btn-primary btn-sm float-end"
href="{% url 'ietf.nomcom.views.view_feedback_nominee' year=year nominee_id=np.nominee.id %}#comment">
View feedback
</a>