Skip to content

Commit d14dfe2

Browse files
JelteFmhagander
authored andcommitted
Make homepage more useful
A long list of ancient commitfests isn't super useful. This puts a few links at the top of the page that cover the most common usages of the commitfest app.
1 parent 07bf0e1 commit d14dfe2

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed
Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,31 @@
11
{%extends "base.html"%}
22
{%block contents%}
33
<p>
4-
The following commitfests exist in the system.
5-
{%if inprogresscf%}Current review work is done in commitfest <a href="/{{inprogresscf.id}}/">{{inprogresscf}}</a>.{%endif%}
6-
{%if opencf%}New patches should be submitted to commitfest <a href="/{{opencf.id}}/">{{opencf}}</a>.{%endif%}
4+
{%if inprogresscf%}A commitfest is currently in progress: <a href="/{{inprogresscf.id}}/">{{inprogresscf}}</a>.{%endif%}
5+
</p>
6+
<p>
7+
Useful links that you can use and bookmark:
78
</p>
89
<ul>
9-
{%for c in commitfests%}
10-
<li><a href="/{{c.id}}/">{{c}}</a> ({{c.statusstring}}{%if c.startdate%} - {{c.periodstring}}{%endif%})</li>
11-
{%endfor%}
10+
<li><a href="/current/">All patches in the current commitfest</a></li>
11+
<li><a href="/open/">All patches in the open commitfest</a></li>
12+
<li><a href="/open/new/">Create a new commitfest entry</a></li>
13+
<li><a href="/current/?author=-3">Your entries in the current commitfest</a></li>
14+
<li><a href="/open/?author=-3">Your entries in the open commitfest</a></li>
15+
<li><a href="/current/?reviewer=-3">Entries that you are reviewing in current commitfest</a></li>
1216
</ul>
13-
<br/>
1417
<h3>Commands</h3>
1518
<form method="GET" action="/search/" class="form-inline">
1619
<div class="form-group">
1720
<input type="text" class="form-control" id="searchterm" name="searchterm" placeholder="Global search">
1821
</div>
1922
<button type="submit" class="btn btn-default">Search</button>
2023
</form>
24+
<h3>List of commitfests</h3>
25+
<ul>
26+
{%for c in commitfests%}
27+
<li><a href="/{{c.id}}/">{{c}}</a> ({{c.statusstring}}{%if c.startdate%} - {{c.periodstring}}{%endif%})</li>
28+
{%endfor%}
29+
</ul>
30+
<br/>
2131
{%endblock%}

0 commit comments

Comments
 (0)