Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: appengine/monorail/templates/tracker/issue-can-widget.ezt

Issue 1868553004: Open Source Monorail (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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">&nbsp;All issues</option>
6 <option value="2" [is can "2"]selected=selected[end]
7 title="All issues except ones with a closed status">&nbsp;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]">&nbsp;Open and owned by me</op tion>
14 <option value="4" [is can "4"]selected=selected[end]
15 title="[[]Open issues] reporter=[username]">&nbsp;Open and reported by me</option>
16 <option value="5" [is can "5"]selected=selected[end]
17 title="[[]Open issues] starredby:[username]">&nbsp;Open and starred by me</option>
18 <option value="8" [is can "8"]selected=selected[end]
19 title="[[]Open issues] commentby:[username]">&nbsp;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">&nbsp;New issues</option>
25 <option value="7" [is can "7"]selected=selected[end]
26 title="[[]All issues] status=fixed,done">&nbsp;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 >&nbsp;[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 >&nbsp;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 >&nbsp;[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 >&nbsp;Manage my saved queries...</option>
68 [end][# end if logged in]
69
70 [end][# end not "admin"]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698