|
1 | 1 | {%extends "base.html"%}
|
| 2 | +{%load commitfest %} |
2 | 3 | {%block contents%}
|
3 |
| - <p> |
4 |
| - First time user? <a href="/help">Here is a help page</a> for you to understand how this website works. |
5 |
| - </p> |
| 4 | + {% if not is_experienced_user %} |
| 5 | + <p> |
| 6 | + First time user? <a href="/help">Here is a help page</a> for you to understand how this website works. |
| 7 | + </p> |
| 8 | + {% endif %} |
| 9 | + |
| 10 | + <h3>CommitFests</h3> |
6 | 11 | <p>
|
7 | 12 | <table class="table" style="table-layout: auto; width: auto;">
|
8 | 13 | <style>
|
|
22 | 27 | <tr>
|
23 | 28 | <td><strong>Open:</strong></td>
|
24 | 29 | <td><a href="/{{cfs.open.id}}/">{{cfs.open}}</a></td>
|
25 |
| - <td>Now - {{cfs.open.last_open_date}}</td> |
| 30 | + <td>Now – {{cfs.open.last_open_date}}</td> |
26 | 31 | <td>{{cfs.open.periodstring}}</td>
|
27 | 32 | </tr>
|
28 | 33 | <tr>
|
|
41 | 46 | </td>
|
42 | 47 | <td>
|
43 | 48 | {%if cfs.in_progress %}
|
44 |
| - Now - {{cfs.in_progress.enddate}} |
| 49 | + Now – {{cfs.in_progress.enddate}} |
45 | 50 | {%endif%}
|
46 | 51 | </td>
|
47 | 52 | </tr>
|
|
54 | 59 | <tr>
|
55 | 60 | <td><strong>Draft:</strong></td>
|
56 | 61 | <td><a href="/{{cfs.draft.id}}/">{{cfs.draft}}</a></td>
|
57 |
| - <td>Now - {{cfs.draft.enddate}}</td> |
| 62 | + <td>Now – {{cfs.draft.enddate}}</td> |
58 | 63 | <td><span class="text-muted">N/A</span></td>
|
59 | 64 | </tr>
|
60 | 65 | <tr>
|
61 | 66 | <td><strong>Next open:</strong></td>
|
62 | 67 | <td>{{cfs.next_open}}</td>
|
63 |
| - <td>{{cfs.open.startdate}}- {{cfs.next_open.last_open_date}}</td> |
| 68 | + <td>{{cfs.open.startdate}} – {{cfs.next_open.last_open_date}}</td> |
64 | 69 | <td>{{cfs.next_open.periodstring}}</td>
|
65 | 70 | </tr>
|
66 | 71 | <tr>
|
|
74 | 79 | </td>
|
75 | 80 | <td>
|
76 | 81 | {%if cfs.final.status == 2 %}
|
77 |
| - Now - {{cfs.final.last_open_date}} |
| 82 | + Now – {{cfs.final.last_open_date}} |
78 | 83 | {%elif cfs.final.status == 3 %}
|
79 | 84 | <span class="text-muted">Not open anymore</span>
|
80 | 85 | {%else%}
|
81 |
| - {{cfs.final.startdate.year}}-01-01 - {{cfs.final.last_open_date}} |
| 86 | + {{cfs.final.startdate.year}}-01-01 – {{cfs.final.last_open_date}} |
82 | 87 | {%endif%}
|
83 | 88 | </td>
|
84 | 89 | <td>
|
|
88 | 93 | </tbody>
|
89 | 94 | </table>
|
90 | 95 | </p>
|
91 |
| - <h3>Search</h3> |
92 |
| - <form method="GET" action="/search/" class="d-flex gap-2"> |
93 |
| - <div class="form-group"> |
94 |
| - <input type="text" class="form-control" id="searchterm" name="searchterm" placeholder="Email Message-ID or keywords"> |
| 96 | + |
| 97 | + <hr> |
| 98 | + <h3>Your Dashboard</h3> |
| 99 | + |
| 100 | + {% if not user.is_authenticated %} |
| 101 | + <div class="my-4"> |
| 102 | + <a href="/account/login/?next=/" class="btn btn-primary btn-lg">Login to view your dashboard</a> |
95 | 103 | </div>
|
96 |
| - <button type="submit" class="btn btn-outline-secondary">Search</button> |
97 |
| - </form> |
98 |
| - <br/> |
| 104 | + {% endif %} |
| 105 | + |
| 106 | + {% if show_dashboard %} |
| 107 | + |
| 108 | + <button type="button" class="btn btn-outline-secondary{%if has_filter%} active{%endif%}" id="filterButton" onClick="togglePatchFilterButton('filterButton', 'collapseFilters')">Search/filter</button> |
| 109 | + |
| 110 | + <p> |
| 111 | + <br/> |
| 112 | + <b>Status summary: </b>{%for id,title,num in statussummary%}<a href="?status={{id}}">{{title}}</a>: {{num}}. {%endfor%} |
| 113 | + </p> |
| 114 | + |
| 115 | + |
| 116 | + {%include "filter_form.html" %} |
| 117 | + {%for p in patches %} |
| 118 | + {%ifchanged p.is_open%} |
| 119 | + {%if not forloop.first%} |
| 120 | + </tbody> |
| 121 | + </table> |
| 122 | + {%endif%} |
| 123 | + <h3>{%if user.is_authenticated%}Open patches you are subscribed to{%elif p.is_open%}Active patches in the current commitfest{%else%}Closed patches in the current commitfest{%endif%}</h3> |
| 124 | + <table class="table table-striped table-bordered table-hover"> |
| 125 | + <thead> |
| 126 | + <tr> |
| 127 | + <th><a href="#" style="color:#333333;" onclick="return sortpatches(5);">Patch</a>{%if sortkey == 5%}<div style="float:right;">↓</div>{%elif sortkey == -5%}<div style="float:right;">↑</div>{%endif%}</th> |
| 128 | + <th><a href="#" style="color:#333333;" onclick="return sortpatches(4);">ID</a>{%if sortkey == 4%}<div style="float:right;">↓</div>{%elif sortkey == -4%}<div style="float:right;">↑</div>{%endif%}</th> |
| 129 | + {%if user.is_authenticated %} |
| 130 | + <th><a href="#" style="color:#333333;" onclick="return sortpatches(8);">CF</a>{%if sortkey == 8%}<div style="float:right;">↓</div>{%elif sortkey == -8%}<div style="float:right;">↑</div>{%endif%}</th> |
| 131 | + {%endif%} |
| 132 | + <th>Status</th> |
| 133 | + <th>Tags</th> |
| 134 | + <th>Ver</th> |
| 135 | + <th><a href="#" style="color:#333333;" onclick="return sortpatches(7);">CI status</a>{%if sortkey == 7%}<div style="float:right;">↓</div>{%elif sortkey == -7%}<div style="float:right;">↑</div>{%endif%}</th> |
| 136 | + <th><a href="#" style="color:#333333;" onclick="return sortpatches(6);">Stats</a>{%if sortkey == 6%}<div style="float:right;">↓</div>{%elif sortkey == -6%}<div style="float:right;">↑</div>{%endif%}</th> |
| 137 | + <th>Author</th> |
| 138 | + <th>Reviewers</th> |
| 139 | + <th>Committer</th> |
| 140 | + <th><a href="#" style="color:#333333;" onclick="return sortpatches(3);">Num cfs</a>{%if sortkey == 3%}<div style="float:right;">↓</div>{%elif sortkey == -3%}<div style="float:right;">↑</div>{%endif%}</th> |
| 141 | + <th><a href="#" style="color:#333333;" onclick="return sortpatches(2);">Latest mail</a>{%if sortkey == 2%}<div style="float:right;">↓</div>{%elif sortkey == -2%}<div style="float:right;">↑</div>{%endif%}</th> |
| 142 | + </tr> |
| 143 | + </thead> |
| 144 | + <tbody> |
| 145 | + {%endifchanged%} |
| 146 | + |
| 147 | + {%if grouping%} |
| 148 | + {%ifchanged p.topic%} |
| 149 | + <tr><th colspan="{%if user.is_authenticated %}13{%else%}12{%endif%}">{{p.topic}}</th></tr> |
| 150 | + {%endifchanged%} |
| 151 | + {%endif%} |
| 152 | + <tr> |
| 153 | + <td><a href="/patch/{{p.id}}/">{{p.name}}</a></td> |
| 154 | + <td>{{p.id}}</td> |
| 155 | + {%if user.is_authenticated %} |
| 156 | + <td><a href="/{{p.cf_id}}/"><span class="badge bg-{{p.cf_status|commitfeststatuslabel}}">{{p.cf_name}}</span></a></td> |
| 157 | + {%endif%} |
| 158 | + <td><span class="badge bg-{{p.status|patchstatuslabel}}">{{p.status|patchstatusstring}}</span></td> |
| 159 | + <td style="width: min-content;"> |
| 160 | + {%for t in p.tag_ids%} |
| 161 | + <a href="?tag={{t}}"> |
| 162 | + <span class="badge" style="background-color: {{all_tags|tagcolor:t}};" title="{{all_tags|tagdescription:t}}">{{all_tags|tagname:t}}</span> |
| 163 | + </a> |
| 164 | + {%endfor%} |
| 165 | + </td> |
| 166 | + <td>{%if p.targetversion%}<span class="badge bg-secondary">{{p.targetversion}}</span>{%endif%}</td> |
| 167 | + <td class="cfbot-summary"> |
| 168 | + {%with p.cfbot_results as cfb%} |
| 169 | + {%if not cfb %} |
| 170 | + <span class="badge bg-secondary">Not processed</span> |
| 171 | + {%elif p.needs_rebase_since %} |
| 172 | + <a href="{{cfb.apply_url}}" title="View git apply logs. Needs rebase {% cfsince p.needs_rebase_since %}. {%if p.failing_since and p.failing_since != p.needs_rebase_since %}Failing {% cfsince p.failing_since %}.{%endif%}"> |
| 173 | + <span class="badge bg-warning">Needs rebase!</span> |
| 174 | + </a> |
| 175 | + {%else%} |
| 176 | + <a href="https://github.com/postgresql-cfbot/postgresql/compare/cf/{{p.id}}~1...cf/{{p.id}}" title="View last patch set on GitHub"><img class="github-logo" src="/media/commitfest/github-mark.svg"/></a> |
| 177 | + <a href="https://cirrus-ci.com/github/postgresql-cfbot/postgresql/cf%2F{{p.id}}" |
| 178 | + title="View CI history. {%if p.failing_since%}Failing {% cfsince p.failing_since %}. {%endif%}{%if cfb.failed_task_names %}Failed jobs: {{cfb.failed_task_names}}{%endif%}"> |
| 179 | + {%if cfb.failed > 0 or cfb.branch_status == 'failed' or cfb.branch_status == 'timeout' %} |
| 180 | + <img src="/media/commitfest/new_failure.svg"/> |
| 181 | + {%elif cfb.completed < cfb.total %} |
| 182 | + <img src="/media/commitfest/running.svg"/> |
| 183 | + {%else%} |
| 184 | + <img src="/media/commitfest/new_success.svg"/> |
| 185 | + {%endif%} |
| 186 | + <span class="run-counters"> |
| 187 | + {{cfb.completed}}/{{cfb.total}} |
| 188 | + </span> |
| 189 | + </a> |
| 190 | + {%endif%} |
| 191 | + </td> |
| 192 | + <td> |
| 193 | + {%if cfb and cfb.all_additions is not none %} |
| 194 | + <span class="additions">+{{ cfb.all_additions }}</span><span class="deletions">−{{ cfb.all_deletions }}</span> |
| 195 | + {%endif%} |
| 196 | + </td> |
| 197 | + {%endwith%} |
| 198 | + <td>{{p.author_names|default:''}}</td> |
| 199 | + <td>{{p.reviewer_names|default:''}}</td> |
| 200 | + <td>{{p.committer|default:''}}</td> |
| 201 | + <td>{{p.num_cfs}}</td> |
| 202 | + <td style="white-space: nowrap;" title="{{p.lastmail}}">{%if p.lastmail and userprofile.show_relative_timestamps %}{% cfwhen p.lastmail %}{%elif p.lastmail %}{{p.lastmail|date:"Y-m-d"}}<br/>{{p.lastmail|date:"H:i"}}{%endif%}</td> |
| 203 | + </tr> |
| 204 | + {%if forloop.last%} |
| 205 | + </tbody> |
| 206 | + </table> |
| 207 | + {%endif%} |
| 208 | + {%endfor%} |
| 209 | + {% endif %} |
| 210 | +{%endblock%} |
| 211 | +{%block morescript%} |
| 212 | + {% if show_dashboard %} |
| 213 | + {% include "selectize_js.html" %} |
| 214 | + {% endif %} |
99 | 215 | {%endblock%}
|
0 commit comments