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

Side by Side Diff: appengine/monorail/templates/sitewide/unified-settings.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 [# common form fields for changing user settings ]
2 <input type="hidden" name="token" value="[form_token]">
3
4
5 <h4>Privacy</h4>
6 <div style="margin:0 0 2em 2em">
7 <input type="checkbox" name="obscure_email" id="obscure_email" value="1"
8 [if-any read_only]disabled="disabled"[end]
9 [if-any settings_user_pb.obscure_email_bool]checked="checked"[end] >
10 <label for="obscure_email">
11 When [if-any self]I participate[else]this user participates[end]
12 in projects, show non-members [if-any self]my[else]this user's[end] email add ress as
13 "[settings_user.obscured_username]...@[settings_user.domain]", instead of
14 showing the full address.
15 </label>
16
17 <br><br>
18 </div>
19
20 <h4>Issue tracker</h4>
21 <div style="margin:0 0 2em 2em">
22 [# TODO(jrobbins): re-implement issue preview on hover in polymer.]
23
24 <p>
25 Whenever an issue is changed by another user, send
26 [if-any self]me[else]this user[end] an email:
27 </p>
28 <input type="checkbox" name="notify" id="notify" value="1"
29 [if-any read_only]disabled="disabled"[end]
30 [if-any settings_user_pb.notify_issue_change_bool]checked="checked"[end] >
31 <label for="notify">If [if-any self]I am[else]this user is[end] in the issue's
32 <b>owner</b> or <b>CC</b> fields.</label><br>
33 <input type="checkbox" name="notify_starred" id="notify_starred" value="1"
34 [if-any read_only]disabled="disabled"[end]
35 [if-any settings_user_pb.notify_starred_issue_change_bool]checked="check ed"[end] >
36 <label for="notify_starred">
37 If [if-any self]I[else]this user[end] <b>starred</b> the issue.
38 </label>
39 <br><br>
40 </div>
41
42 [if-any perms._EditOtherUsers]
43 <h4>Banned for abuse</h4>
44 <div style="margin:0 0 2em 2em">
45 <input type="checkbox" name="banned" id="banned" value="1"
46 [if-any settings_user_is_banned]checked="checked"[end] >
47 <label for="banned">This user is banned because:</label>
48 <input type="text" size="50" name="banned_reason" id="banned_reason" value="[ settings_user_pb.banned]">
49 </div>
50
51 <h4>Action limits</h4>
52 <div style="margin:0 0 2em 2em; width:50em">
53 <input type="checkbox" name="ignore_action_limits" id="ignore_action_limits" value="1"
54 [if-any settings_user_ignore_action_limits]checked="checked"[end] >
55 <label for="ignore_action_limits">
56 [if-any self]I am[else]This user is[end]
57 trusted to not spam, so ignore action limits</label>
58 <br><br>
59
60 <div class="help" style="width:75em">
61 <table cellpadding="6" cellspacing="0" style="padding:4px" width="100%">
62 <tr>
63 <th align="left">Project creation:</th>
64 <td>
65 [is settings_user_pb.project_creation_limit.recent_count "0"]
66 None
67 [else]
68 <label for="reset_project_creation">Reset</label>
69 <input type="checkbox" name="reset_project_creation" id="reset_project_c reation" value="1">
70 [settings_user_pb.project_creation_limit.recent_count] since [project_cr eation_reset]
71 [end]
72 </td>
73 <td>
74 Period soft limit: <input name="project_creation_soft_limit" value="[proje ct_creation_soft_limit]" size="4">
75 hard limit: <input name="project_creation_hard_limit" value="[project_crea tion_hard_limit]" size="4">
76 </td>
77 <td>
78 [settings_user_pb.project_creation_limit.lifetime_count]
79 out of <input name="project_creation_lifetime_limit" value="[project_crea tion_lifetime_limit]" size="4">
80 in lifetime.
81 </td>
82 </tr>
83
84 <tr>
85 <th align="left">Issue comment:</th>
86 <td>
87 [is settings_user_pb.issue_comment_limit.recent_count "0"]
88 None
89 [else]
90 <label for="reset_issue_comment_creation">Reset</label>
91 <input type="checkbox" name="reset_issue_comment" id="reset_issue_commen t" value="1">
92 [settings_user_pb.issue_comment_limit.recent_count] since [issue_comment _reset]
93 [end]
94 </td>
95 <td>
96 Period soft limit: <input name="issue_comment_soft_limit" value="[issue_co mment_soft_limit]" size="4">
97 hard limit: <input name="issue_comment_hard_limit" value="[issue_comment_h ard_limit]" size="4">
98 </td>
99 <td>
100 [settings_user_pb.issue_comment_limit.lifetime_count]
101 out of <input name="issue_comment_lifetime_limit" value="[issue_comment_l ifetime_limit]" size="4">
102 in lifetime.
103 </td>
104 </tr>
105
106 <tr>
107 <th align="left">Issue attachment:</th>
108 <td>
109 [is settings_user_pb.issue_attachment_limit.recent_count "0"]
110 None
111 [else]
112 <label for="reset_issue_attachment">Reset</label>
113 <input type="checkbox" name="reset_issue_attachment" id="reset_issue_att achment" value="1">
114 [settings_user_pb.issue_attachment_limit.recent_count] since [issue_atta chment_reset].
115 [end]
116 </td>
117 <td>
118 Period soft limit: <input name="issue_attachment_soft_limit" value="[issue _attachment_soft_limit]" size="4">
119 hard limit: <input name="issue_attachment_hard_limit" value="[issue_attach ment_hard_limit]" size="4">
120 </td>
121 <td>
122 [settings_user_pb.issue_attachment_limit.lifetime_count]
123 out of <input name="issue_attachment_lifetime_limit" value="[issue_attach ment_lifetime_limit]" size="4">
124 in lifetime.
125 </td>
126 </tr>
127
128 <tr>
129 <th align="left">Issue bulk edit:</th>
130 <td>
131 [is settings_user_pb.issue_bulk_edit_limit.recent_count "0"]
132 None
133 [else]
134 <label for="reset_issue_bulk_edit">Reset</label>
135 <input type="checkbox" name="reset_issue_bulk_edit" id="reset_issue_bulk " value="1">
136 [settings_user_pb.issue_bulk_edit_limit.recent_count] since [issue_bulk_ edit_reset]
137 [end]
138 </td>
139 <td>
140 Period soft limit: <input name="issue_bulk_edit_soft_limit" value="[issue_ bulk_edit_soft_limit]" size="4">
141 hard limit: <input name="issue_bulk_edit_hard_limit" value="[issue_bulk_ed it_hard_limit]" size="4">
142 </td>
143 <td>
144 [settings_user_pb.issue_bulk_edit_limit.lifetime_count]
145 out of <input name="issue_bulk_edit_lifetime_limit" value="[issue_bulk_ed it_lifetime_limit]" size="4">
146 in lifetime.
147 </td>
148 </tr>
149
150 <tr>
151 <th align="left">API request:</th>
152 <td>
153 [is settings_user_pb.api_request_limit.recent_count "0"]
154 None
155 [else]
156 <label for="reset_api_request">Reset</label>
157 <input type="checkbox" name="reset_api_request" id="reset_api_request" v alue="1">
158 [settings_user_pb.api_request_limit.recent_count] since [api_request_res et].
159 [end]
160 </td>
161 <td>
162 Period soft limit: <input name="api_request_soft_limit" value="[api_reques t_soft_limit]" size="4">
163 hard limit: <input name="api_request_hard_limit" value="[api_request_hard_ limit]" size="4">
164 </td>
165 <td>
166 [settings_user_pb.api_request_limit.lifetime_count]
167 out of <input name="api_request_lifetime_limit" value="[api_request_lifet ime_limit]" size="6">
168 in lifetime.
169 </td>
170 </tr>
171
172 </table>
173 </div>
174 </div>
175
176 [end]
177
178 <script type="text/javascript" nonce="[nonce]">
179 runOnLoad(function() {
180 $("banned_reason").addEventListener("keyup", function() {
181 $("banned").checked = $("banned_reason").value != "";
182 });
183 });
184 </script>
185
186 [include "../framework/footer-script.ezt"]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698