diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 21 | ||||
-rw-r--r-- | templates/list.html | 4 |
2 files changed, 21 insertions, 4 deletions
diff --git a/templates/base.html b/templates/base.html index 8f8fb3d..66ecd2f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -19,9 +19,16 @@ $('#external-pane').hide(); $('#external-pane-content').corners('bottom 8px'); - $('#filter-assignee').click(function() { + $('#filter-assignee').click(function(e) { $('#external-pane-content').html($('#assignees').html()); $('#external-pane').fadeIn('fast'); + e.preventDefault(); + }); + + $('#filter-target').click(function(e) { + $('#external-pane-content').html($('#targets').html()); + $('#external-pane').fadeIn('fast'); + e.preventDefault(); }); $('table tr:odd').addClass('stripe'); @@ -43,8 +50,8 @@ Just show me: <a href="/">Open</a> <a href="/?status=closed">Closed</a> - <a href="#" id="filter-assignee">Assigned to...</a> - <a href="#">Scheduled for...</a> + <a href="" id="filter-assignee">Assigned to...</a> + <a href="" id="filter-target">Scheduled for...</a> </span> <span id="create"> <a href="fixme">+ Create a new bug</a> @@ -76,5 +83,13 @@ {% endfor %} </p> </div> + <div id="targets"> + <p> + <a href="/?target=None">Unscheduled</a><br /><br /> + {% for target in targets %} + <a href="/?target={{ target }}">{{ target }}</a><br /> + {% endfor %} + </p> + </div> </body> </html> diff --git a/templates/list.html b/templates/list.html index 34e28d3..3dd4a70 100644 --- a/templates/list.html +++ b/templates/list.html @@ -10,13 +10,15 @@ <th>ID</th> <th>Summary</th> <th>Status</th> + <th>Target</th> <th>Assigned To</th> </tr> {% for bug in bugs %} <tr> <td>{{ bd.bug_shortname(bug) }}</td> - <td>{{ bug.summary|e|truncate(60) }}</td> + <td>{{ bug.summary|e|truncate(65) }}</td> <td>{{ bug.status }}</td> + <td>{{ bug.target }}</td> <td>{{ bug.assigned|striptags }}</td> </tr> {% endfor %} |