File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -324,6 +324,10 @@ function filter_signoffs() {
324
324
/* start with all rows, and then remove ones we shouldn't show */
325
325
var rows = $ ( '#tbody_signoffs' ) . children ( ) ,
326
326
all_rows = rows ;
327
+ /* apply the filters, cheaper ones first */
328
+ if ( $ ( '#id_mine_only' ) . is ( ':checked' ) ) {
329
+ rows = rows . filter ( '.mine' ) ;
330
+ }
327
331
/* apply arch and repo filters */
328
332
$ ( '#signoffs_filter .arch_filter' ) . add (
329
333
'#signoffs_filter .repo_filter' ) . each ( function ( ) {
@@ -352,6 +356,7 @@ function filter_signoffs() {
352
356
function filter_signoffs_reset ( ) {
353
357
$ ( '#signoffs_filter .arch_filter' ) . prop ( 'checked' , true ) ;
354
358
$ ( '#signoffs_filter .repo_filter' ) . prop ( 'checked' , true ) ;
359
+ $ ( '#id_mine_only' ) . prop ( 'checked' , false ) ;
355
360
$ ( '#id_pending' ) . prop ( 'checked' , false ) ;
356
361
filter_signoffs ( ) ;
357
362
}
Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ <h3>Filter Displayed Signoffs</h3>
26
26
< div > < label for ="id_repo_{{ repo_name|lower }} " title ="Target Repository {{ repo_name }} "> [{{ repo_name|lower }}]</ label >
27
27
< input type ="checkbox " name ="repo_{{ repo_name|lower }} " id ="id_repo_{{ repo_name|lower }} " class ="repo_filter " value ="{{ repo_name|lower }} " checked ="checked "/> </ div >
28
28
{% endfor %}
29
+ {% if user.is_authenticated %}
30
+ < div > < label for ="id_mine_only " title ="Show only packages packaged by me "> Only Mine</ label >
31
+ < input type ="checkbox " name ="mine_only " id ="id_mine_only " value ="mine_only "/> </ div >
32
+ {% endif %}
29
33
< div > < label for ="id_pending " title ="Packages with not enough signoffs "> Only Pending Approval</ label >
30
34
< input type ="checkbox " name ="pending " id ="id_pending " value ="pending "/> </ div >
31
35
< div > < label > </ label > < input title ="Reset search criteria " type ="button " id ="criteria_reset " value ="Reset "/> </ div >
@@ -50,7 +54,8 @@ <h3>Filter Displayed Signoffs</h3>
50
54
</ tr >
51
55
</ thead >
52
56
< tbody id ="tbody_signoffs ">
53
- {% for group in signoff_groups %}< tr class ="{{ group.arch.name }} {{ group.target_repo|lower }} ">
57
+ {% for group in signoff_groups %}
58
+ < tr class ="{% if user == group.packager %} mine{% endif %} {{ group.arch.name }} {{ group.target_repo|lower }} ">
54
59
< td > {% pkg_details_link group.package %} {{ group.version }}</ td >
55
60
< td > {{ group.arch.name }}</ td >
56
61
< td > {{ group.target_repo }}</ td >
You can’t perform that action at this time.
0 commit comments