Skip to content

Commit f6d2396

Browse files
committed
Add tags to dashboard
1 parent 7122202 commit f6d2396

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

pgcommitfest/commitfest/templates/me.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ <h3>{%if user.is_authenticated%}Open patches you are subscribed to{%elif p.is_op
6565
<td><a href="/{{p.cf_id}}/"><span class="label label-{{p.cf_status|commitfeststatuslabel}}">{{p.cf_name}}</span></a></td>
6666
{%endif%}
6767
<td><span class="label label-{{p.status|patchstatuslabel}}">{{p.status|patchstatusstring}}</span></td>
68+
<td style="width: min-content;">
69+
{%for t in p.tag_ids%}
70+
<a href="?tag={{t}}">
71+
<span class="label" style="background: {{all_tags|tagcolor:t}};" title="{{all_tags|tagdescription:t}}">{{all_tags|tagname:t}}</span>
72+
</a>
73+
{%endfor%}
74+
</td>
6875
<td>{%if p.targetversion%}<span class="label label-default">{{p.targetversion}}</span>{%endif%}</td>
6976
<td class="cfbot-summary">
7077
{%with p.cfbot_results as cfb%}

pgcommitfest/commitfest/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ def me(request):
142142
"title": "Personal Dashboard",
143143
"patches": patch_list.patches,
144144
"statussummary": statussummary,
145+
"all_tags": {t.id: t for t in Tag.objects.all()},
145146
"has_filter": patch_list.has_filter,
146147
"grouping": patch_list.sortkey == 0,
147148
"sortkey": patch_list.sortkey,

0 commit comments

Comments
 (0)