Skip to content

Commit 0341041

Browse files
authored
Show "Latest email" column as a relative time (#50)
Exact dates of the last email are usually not super useful when looking at the commitfest page. This instead starts showing a relative time since. For the rare cases where the exact date & time is needed, the tooltip will show the exact date & time. When this gets deployed to prod a small change also needs to be made to the cfbot, because this breaks the cfbot its html scraping.
1 parent 49fd358 commit 0341041

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pgcommitfest/commitfest/templates/commitfest.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ <h3>{{p.is_open|yesno:"Active patches,Closed patches"}}</h3>
124124
<td>{{p.reviewer_names|default:''}}</td>
125125
<td>{{p.committer|default:''}}</td>
126126
<td>{{p.num_cfs}}</td>
127-
<td style="white-space: nowrap;">{{p.lastmail|date:"Y-m-d"}}<br/>{{p.lastmail|date:"H:i"}}</td>
127+
<td style="white-space: nowrap;" title="{{p.lastmail}}">{%if p.lastmail %}{{p.lastmail|timesince}} ago{%endif%}</td>
128128
{%if user.is_staff%}
129129
<td style="white-space: nowrap;"><input type="checkbox" class="sender_checkbox" id="send_authors_{{p.id}}">Author<br/><input type="checkbox" class="sender_checkbox" id="send_reviewers_{{p.id}}">Reviewer</td>
130130
{%endif%}

0 commit comments

Comments
 (0)