OLD | NEW |
(Empty) | |
| 1 [# This is used in the issue search form and issue advanced search page. We wan
t to show the same options in both contexts.] |
| 2 |
| 3 <option disabled="disabled">Search within:</option> |
| 4 <option value="1" [is can "1"]selected=selected[end] |
| 5 title="All issues in the project"> All issues</option> |
| 6 <option value="2" [is can "2"]selected=selected[end] |
| 7 title="All issues except ones with a closed status"> Open issues</o
ption> |
| 8 |
| 9 [if-any logged_in_user] |
| 10 [define username][logged_in_user.email][end] |
| 11 [is arg0 "admin"][define username]logged-in-user[end][end] |
| 12 <option value="3" [is can "3"]selected=selected[end] |
| 13 title="[[]Open issues] owner=[username]"> Open and owned by me</op
tion> |
| 14 <option value="4" [is can "4"]selected=selected[end] |
| 15 title="[[]Open issues] reporter=[username]"> Open and reported by
me</option> |
| 16 <option value="5" [is can "5"]selected=selected[end] |
| 17 title="[[]Open issues] starredby:[username]"> Open and starred by
me</option> |
| 18 <option value="8" [is can "8"]selected=selected[end] |
| 19 title="[[]Open issues] commentby:[username]"> Open with comment by
me</option> |
| 20 [end] |
| 21 |
| 22 [# TODO(jrobbins): deprecate these and tell projects to define canned queries in
stead.] |
| 23 <option value="6" [is can "6"]selected=selected[end] |
| 24 title="[[]Open issues] status=New"> New issues</option> |
| 25 <option value="7" [is can "7"]selected=selected[end] |
| 26 title="[[]All issues] status=fixed,done"> Issues to verify</option
> |
| 27 |
| 28 [is arg0 "admin"][else] |
| 29 [define first]Yes[end] |
| 30 [for canned_queries] |
| 31 [is first "Yes"] |
| 32 [define first]No[end] |
| 33 <option disabled="disabled">----</option> |
| 34 [end] |
| 35 [# TODO(jrobbins): canned query visibility conditions, e.g., members only. ] |
| 36 <option value="[canned_queries.query_id]" |
| 37 [is can canned_queries.query_id]selected=selected[end] |
| 38 title="[canned_queries.docstring]" |
| 39 > [canned_queries.name]</option> |
| 40 [end] |
| 41 [if-any perms.EditProject][if-any is_cross_project][else] |
| 42 [is first "Yes"] |
| 43 [define first]No[end] |
| 44 <option disabled="disabled">----</option> |
| 45 [end] |
| 46 <option value="manageprojectqueries" |
| 47 > Manage project queries...</option> |
| 48 [end][end] |
| 49 |
| 50 [if-any logged_in_user] |
| 51 [define first]Yes[end] |
| 52 [for saved_queries] |
| 53 [is first "Yes"] |
| 54 [define first]No[end] |
| 55 <option disabled="disabled">----</option> |
| 56 [end] |
| 57 <option value="[saved_queries.query_id]" |
| 58 [is can saved_queries.query_id]selected=selected[end] |
| 59 title="[saved_queries.docstring]" |
| 60 > [saved_queries.name]</option> |
| 61 [end] |
| 62 [is first "Yes"] |
| 63 [define first]No[end] |
| 64 <option disabled="disabled">----</option> |
| 65 [end] |
| 66 <option value="managemyqueries" |
| 67 > Manage my saved queries...</option> |
| 68 [end][# end if logged in] |
| 69 |
| 70 [end][# end not "admin"] |
OLD | NEW |