blob: 74971cf482aaade084981bd75ee87504364bf231 [file] [log] [blame]
Wyatt Allen60ea95f2016-06-03 09:35:07 -07001<!--
Dave Borowitz8cdc76b2018-03-26 10:04:27 -04002@license
Wyatt Allen60ea95f2016-06-03 09:35:07 -07003Copyright (C) 2016 The Android Open Source Project
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16-->
17
Ole Rehmsen31640742019-05-16 11:24:47 +020018<link rel="import" href="/bower_components/polymer/polymer.html">
Ben Rohlfs540a5fe2019-06-17 12:45:45 +020019<link rel="import" href="/bower_components/iron-input/iron-input.html">
Kasper Nilssonce523fa2018-05-14 17:01:36 -070020
Wyatt Allen12a36022016-11-28 11:28:10 -080021<link rel="import" href="../../../behaviors/docs-url-behavior/docs-url-behavior.html">
Ole Rehmsen31640742019-05-16 11:24:47 +020022<link rel="import" href="/bower_components/paper-toggle-button/paper-toggle-button.html">
Paladox none44b3a7c2019-08-06 14:36:29 +000023
Viktar Donich17c02262017-12-21 15:46:02 -080024<link rel="import" href="../../../styles/gr-form-styles.html">
Paladox none5b3746d2017-06-21 15:30:03 +000025<link rel="import" href="../../../styles/gr-menu-page-styles.html">
Becky Siegele7833592017-07-14 16:50:08 -070026<link rel="import" href="../../../styles/gr-page-nav-styles.html">
Viktar Donich17c02262017-12-21 15:46:02 -080027<link rel="import" href="../../../styles/shared-styles.html">
28<link rel="import" href="../../plugins/gr-endpoint-decorator/gr-endpoint-decorator.html">
Paladox none5b3746d2017-06-21 15:30:03 +000029<link rel="import" href="../../settings/gr-change-table-editor/gr-change-table-editor.html">
30<link rel="import" href="../../shared/gr-button/gr-button.html">
31<link rel="import" href="../../shared/gr-date-formatter/gr-date-formatter.html">
Paladox none7a2280c2019-02-19 22:07:54 +000032<link rel="import" href="../../shared/gr-diff-preferences/gr-diff-preferences.html">
Paladox none5b3746d2017-06-21 15:30:03 +000033<link rel="import" href="../../shared/gr-page-nav/gr-page-nav.html">
34<link rel="import" href="../../shared/gr-rest-api-interface/gr-rest-api-interface.html">
35<link rel="import" href="../../shared/gr-select/gr-select.html">
Wyatt Allen767b7602016-06-15 16:51:20 -070036<link rel="import" href="../gr-account-info/gr-account-info.html">
Kasper Nilsson78497502017-06-26 14:37:04 -070037<link rel="import" href="../gr-agreements-list/gr-agreements-list.html">
Paladox noneca191942018-01-03 21:24:47 +000038<link rel="import" href="../gr-edit-preferences/gr-edit-preferences.html">
Wyatt Allencf028422016-06-14 17:44:30 -070039<link rel="import" href="../gr-email-editor/gr-email-editor.html">
Paladox none4f534272017-10-31 21:29:08 +000040<link rel="import" href="../gr-gpg-editor/gr-gpg-editor.html">
Wyatt Allen64056502016-06-16 14:53:01 -070041<link rel="import" href="../gr-group-list/gr-group-list.html">
Wyatt Allen31958fcb2016-06-17 10:21:59 -070042<link rel="import" href="../gr-http-password/gr-http-password.html">
Paladox none404ac542017-10-21 16:19:54 +000043<link rel="import" href="../gr-identities/gr-identities.html">
Wyatt Allend14895b2016-06-06 12:37:24 -070044<link rel="import" href="../gr-menu-editor/gr-menu-editor.html">
Wyatt Allenbe9869c2016-06-20 15:50:37 -070045<link rel="import" href="../gr-ssh-editor/gr-ssh-editor.html">
Wyatt Allenbd472172016-06-09 17:44:51 -070046<link rel="import" href="../gr-watched-projects-editor/gr-watched-projects-editor.html">
Wyatt Allen767b7602016-06-15 16:51:20 -070047
Wyatt Allen60ea95f2016-06-03 09:35:07 -070048<dom-module id="gr-settings-view">
49 <template>
Becky Siegelb159a7f2017-06-01 15:31:55 -070050 <style include="shared-styles">
Kasper Nilsson45e9c0d2018-04-16 11:34:59 +020051 :host {
52 color: var(--primary-text-color);
53 }
Ben Rohlfs540a5fe2019-06-17 12:45:45 +020054 .newEmailInput {
Wyatt Allencf028422016-06-14 17:44:30 -070055 width: 20em;
56 }
Kasper Nilssona856c402017-06-23 15:35:55 -070057 #email {
Ben Rohlfsb3d95cf2019-10-20 19:26:48 +020058 margin-bottom: var(--spacing-l);
Kasper Nilssona856c402017-06-23 15:35:55 -070059 }
Kasper Nilssonfb5b7112018-11-15 11:46:17 -080060 main section.darkToggle {
61 display: block;
62 }
Kasper Nilssonce523fa2018-05-14 17:01:36 -070063 .filters p,
64 .darkToggle p {
Ben Rohlfsb3d95cf2019-10-20 19:26:48 +020065 margin-bottom: var(--spacing-l);
Wyatt Allen12a36022016-11-28 11:28:10 -080066 }
67 .queryExample em {
68 color: violet;
69 }
Kasper Nilssonce523fa2018-05-14 17:01:36 -070070 .toggle {
71 align-items: center;
72 display: flex;
Ben Rohlfsb3d95cf2019-10-20 19:26:48 +020073 margin-bottom: var(--spacing-l);
74 margin-right: var(--spacing-l);
Kasper Nilssonce523fa2018-05-14 17:01:36 -070075 }
Wyatt Allen60ea95f2016-06-03 09:35:07 -070076 </style>
Becky Siegeld7b26e72017-05-24 10:18:50 -070077 <style include="gr-form-styles"></style>
Becky Siegele5191a52017-06-13 15:19:28 -070078 <style include="gr-menu-page-styles"></style>
Becky Siegele7833592017-07-14 16:50:08 -070079 <style include="gr-page-nav-styles"></style>
Wyatt Allen60ea95f2016-06-03 09:35:07 -070080 <div class="loading" hidden$="[[!_loading]]">Loading...</div>
81 <div hidden$="[[_loading]]" hidden>
Becky Siegele7833592017-07-14 16:50:08 -070082 <gr-page-nav class="navStyles">
Wyatt Allen3eab24d2016-06-21 16:00:41 -070083 <ul>
84 <li><a href="#Profile">Profile</a></li>
85 <li><a href="#Preferences">Preferences</a></li>
86 <li><a href="#DiffPreferences">Diff Preferences</a></li>
Paladox noneca191942018-01-03 21:24:47 +000087 <li><a href="#EditPreferences">Edit Preferences</a></li>
Becky Siegel03a690b2016-12-21 10:41:45 -080088 <li><a href="#Menu">Menu</a></li>
89 <li><a href="#ChangeTableColumns">Change Table Columns</a></li>
Wyatt Allen3eab24d2016-06-21 16:00:41 -070090 <li><a href="#Notifications">Notifications</a></li>
91 <li><a href="#EmailAddresses">Email Addresses</a></li>
Paladox none301430a2019-10-28 16:40:40 +000092 <template is="dom-if" if="[[_showHttpAuth(_serverConfig)]]">
93 <li><a href="#HTTPCredentials">HTTP Credentials</a></li>
94 </template>
Wyatt Allen3eab24d2016-06-21 16:00:41 -070095 <li hidden$="[[!_serverConfig.sshd]]"><a href="#SSHKeys">
96 SSH Keys
97 </a></li>
Paladox none4f534272017-10-31 21:29:08 +000098 <li hidden$="[[!_serverConfig.receive.enable_signed_push]]"><a href="#GPGKeys">
99 GPG Keys
100 </a></li>
Wyatt Allen3eab24d2016-06-21 16:00:41 -0700101 <li><a href="#Groups">Groups</a></li>
Paladox none404ac542017-10-21 16:19:54 +0000102 <li><a href="#Identities">Identities</a></li>
Kasper Nilsson674e9782017-06-27 11:21:16 -0700103 <template is="dom-if" if="[[_serverConfig.auth.use_contributor_agreements]]">
104 <li>
105 <a href="#Agreements">Agreements</a>
106 </li>
107 </template>
Wyatt Allen12a36022016-11-28 11:28:10 -0800108 <li><a href="#MailFilters">Mail Filters</a></li>
Viktar Donich17c02262017-12-21 15:46:02 -0800109 <gr-endpoint-decorator name="settings-menu-item">
110 </gr-endpoint-decorator>
Wyatt Allen3eab24d2016-06-21 16:00:41 -0700111 </ul>
Becky Siegele5191a52017-06-13 15:19:28 -0700112 </gr-page-nav>
Becky Siegeld7b26e72017-05-24 10:18:50 -0700113 <main class="gr-form-styles">
Wyatt Allen8fee90b2016-06-04 18:21:01 -0700114 <h1>User Settings</h1>
Kasper Nilssonce523fa2018-05-14 17:01:36 -0700115 <section class="darkToggle">
116 <div class="toggle">
117 <paper-toggle-button
118 checked="[[_isDark]]"
119 on-change="_handleToggleDark"></paper-toggle-button>
120 <div>Dark theme (alpha)</div>
121 </div>
122 <p>
123 Gerrit's dark theme is in early alpha, and almost definitely will
124 not play nicely with themes set by specific Gerrit hosts. Filing
125 feedback via the link in the app footer is strongly encouraged!
126 </p>
127 </section>
Wyatt Allen3eab24d2016-06-21 16:00:41 -0700128 <h2
129 id="Profile"
130 class$="[[_computeHeaderClass(_accountInfoChanged)]]">Profile</h2>
Wyatt Allend14895b2016-06-06 12:37:24 -0700131 <fieldset id="profile">
Wyatt Allen767b7602016-06-15 16:51:20 -0700132 <gr-account-info
133 id="accountInfo"
Paladox nonefbe932e2017-04-26 21:36:06 +0000134 mutable="{{_accountNameMutable}}"
Wyatt Allen767b7602016-06-15 16:51:20 -0700135 has-unsaved-changes="{{_accountInfoChanged}}"></gr-account-info>
136 <gr-button
Milutin Kristofic63cf95d2019-09-27 15:41:53 +0200137 on-click="_handleSaveAccountInfo"
Becky Siegel07c8a162017-03-13 14:23:48 -0700138 disabled="[[!_accountInfoChanged]]">Save changes</gr-button>
Wyatt Allen8fee90b2016-06-04 18:21:01 -0700139 </fieldset>
Wyatt Allen3eab24d2016-06-21 16:00:41 -0700140 <h2
141 id="Preferences"
142 class$="[[_computeHeaderClass(_prefsChanged)]]">Preferences</h2>
Wyatt Allend14895b2016-06-06 12:37:24 -0700143 <fieldset id="preferences">
Wyatt Allen8fee90b2016-06-04 18:21:01 -0700144 <section>
Becky Siegel07c8a162017-03-13 14:23:48 -0700145 <span class="title">Changes per page</span>
Wyatt Allen8fee90b2016-06-04 18:21:01 -0700146 <span class="value">
Becky Siegel8e174ab2017-07-05 14:12:44 -0700147 <gr-select
Wyatt Allend14895b2016-06-06 12:37:24 -0700148 bind-value="{{_localPrefs.changes_per_page}}">
Becky Siegel8e174ab2017-07-05 14:12:44 -0700149 <select>
150 <option value="10">10 rows per page</option>
151 <option value="25">25 rows per page</option>
152 <option value="50">50 rows per page</option>
153 <option value="100">100 rows per page</option>
154 </select>
155 </gr-select>
Wyatt Allen8fee90b2016-06-04 18:21:01 -0700156 </span>
157 </section>
158 <section>
Becky Siegel07c8a162017-03-13 14:23:48 -0700159 <span class="title">Date/time format</span>
Wyatt Allen8fee90b2016-06-04 18:21:01 -0700160 <span class="value">
Becky Siegel8e174ab2017-07-05 14:12:44 -0700161 <gr-select
Wyatt Allend14895b2016-06-06 12:37:24 -0700162 bind-value="{{_localPrefs.date_format}}">
Becky Siegel8e174ab2017-07-05 14:12:44 -0700163 <select>
164 <option value="STD">Jun 3 ; Jun 3, 2016</option>
165 <option value="US">06/03 ; 06/03/16</option>
166 <option value="ISO">06-03 ; 2016-06-03</option>
167 <option value="EURO">3. Jun ; 03.06.2016</option>
168 <option value="UK">03/06 ; 03/06/2016</option>
169 </select>
170 </gr-select>
171 <gr-select
Wyatt Allend14895b2016-06-06 12:37:24 -0700172 bind-value="{{_localPrefs.time_format}}">
Becky Siegel8e174ab2017-07-05 14:12:44 -0700173 <select>
174 <option value="HHMM_12">4:10 PM</option>
175 <option value="HHMM_24">16:10</option>
176 </select>
177 </gr-select>
Wyatt Allen8fee90b2016-06-04 18:21:01 -0700178 </span>
179 </section>
180 <section>
Becky Siegel07c8a162017-03-13 14:23:48 -0700181 <span class="title">Email notifications</span>
Wyatt Allen8fee90b2016-06-04 18:21:01 -0700182 <span class="value">
Becky Siegel8e174ab2017-07-05 14:12:44 -0700183 <gr-select
Wyatt Allend14895b2016-06-06 12:37:24 -0700184 bind-value="{{_localPrefs.email_strategy}}">
Becky Siegel8e174ab2017-07-05 14:12:44 -0700185 <select>
186 <option value="CC_ON_OWN_COMMENTS">Every comment</option>
187 <option value="ENABLED">Only comments left by others</option>
188 <option value="DISABLED">None</option>
189 </select>
190 </gr-select>
Wyatt Allen8fee90b2016-06-04 18:21:01 -0700191 </span>
192 </section>
Patrick Hiesel006578f2017-02-27 16:26:33 +0100193 <section hidden$="[[!_localPrefs.email_format]]">
Becky Siegel07c8a162017-03-13 14:23:48 -0700194 <span class="title">Email format</span>
Patrick Hiesel006578f2017-02-27 16:26:33 +0100195 <span class="value">
Becky Siegel8e174ab2017-07-05 14:12:44 -0700196 <gr-select
Patrick Hiesel006578f2017-02-27 16:26:33 +0100197 bind-value="{{_localPrefs.email_format}}">
Becky Siegel8e174ab2017-07-05 14:12:44 -0700198 <select>
199 <option value="HTML_PLAINTEXT">HTML and plaintext</option>
200 <option value="PLAINTEXT">Plaintext only</option>
201 </select>
202 </gr-select>
Patrick Hiesel006578f2017-02-27 16:26:33 +0100203 </span>
204 </section>
Paladox nonee1980c92019-02-14 01:11:48 +0000205 <section hidden$="[[!_localPrefs.default_base_for_merges]]">
206 <span class="title">Default Base For Merges</span>
207 <span class="value">
208 <gr-select
209 bind-value="{{_localPrefs.default_base_for_merges}}">
210 <select>
211 <option value="AUTO_MERGE">Auto Merge</option>
212 <option value="FIRST_PARENT">First Parent</option>
213 </select>
214 </gr-select>
215 </span>
216 </section>
Wyatt Allen8fee90b2016-06-04 18:21:01 -0700217 <section>
Paladox none8101d172019-02-22 19:30:22 +0000218 <span class="title">Show Relative Dates In Changes Table</span>
219 <span class="value">
220 <input
221 id="relativeDateInChangeTable"
222 type="checkbox"
223 checked$="[[_localPrefs.relative_date_in_change_table]]"
224 on-change="_handleRelativeDateInChangeTable">
225 </span>
226 </section>
227 <section>
Becky Siegel07c8a162017-03-13 14:23:48 -0700228 <span class="title">Diff view</span>
Wyatt Allen8fee90b2016-06-04 18:21:01 -0700229 <span class="value">
Becky Siegel8e174ab2017-07-05 14:12:44 -0700230 <gr-select
Wyatt Allend14895b2016-06-06 12:37:24 -0700231 bind-value="{{_localPrefs.diff_view}}">
Becky Siegel8e174ab2017-07-05 14:12:44 -0700232 <select>
233 <option value="SIDE_BY_SIDE">Side by side</option>
234 <option value="UNIFIED_DIFF">Unified diff</option>
235 </select>
236 </gr-select>
Wyatt Allen8fee90b2016-06-04 18:21:01 -0700237 </span>
238 </section>
Becky Siegel0c1cbbf2016-12-16 12:59:26 -0800239 <section>
Wyatt Allen6ce492d2018-02-01 15:50:40 -0800240 <span class="title">Show size bars in file list</span>
241 <span class="value">
242 <input
243 id="showSizeBarsInFileList"
244 type="checkbox"
245 checked$="[[_localPrefs.size_bar_in_change_table]]"
246 on-change="_handleShowSizeBarsInFileListChanged">
247 </span>
248 </section>
249 <section>
Dave Borowitzd6ee48e2017-04-27 10:32:42 -0400250 <span class="title">Publish comments on push</span>
251 <span class="value">
252 <input
253 id="publishCommentsOnPush"
254 type="checkbox"
255 checked$="[[_localPrefs.publish_comments_on_push]]"
256 on-change="_handlePublishCommentsOnPushChanged">
257 </span>
258 </section>
Paladox none79c08152017-08-04 12:32:56 +0000259 <section>
David Ostrovsky821c5322018-06-10 16:36:42 +0200260 <span class="title">Set new changes to "work in progress" by default</span>
261 <span class="value">
262 <input
263 id="workInProgressByDefault"
264 type="checkbox"
265 checked$="[[_localPrefs.work_in_progress_by_default]]"
266 on-change="_handleWorkInProgressByDefault">
267 </span>
268 </section>
269 <section>
Paladox none79c08152017-08-04 12:32:56 +0000270 <span class="title">
271 Insert Signed-off-by Footer For Inline Edit Changes
272 </span>
273 <span class="value">
274 <input
275 id="insertSignedOff"
276 type="checkbox"
277 checked$="[[_localPrefs.signed_off_by]]"
278 on-change="_handleInsertSignedOff">
279 </span>
280 </section>
Wyatt Allen8fee90b2016-06-04 18:21:01 -0700281 <gr-button
282 id="savePrefs"
Milutin Kristofic63cf95d2019-09-27 15:41:53 +0200283 on-click="_handleSavePreferences"
Becky Siegel07c8a162017-03-13 14:23:48 -0700284 disabled="[[!_prefsChanged]]">Save changes</gr-button>
Wyatt Allen8fee90b2016-06-04 18:21:01 -0700285 </fieldset>
Wyatt Allen3eab24d2016-06-21 16:00:41 -0700286 <h2
287 id="DiffPreferences"
288 class$="[[_computeHeaderClass(_diffPrefsChanged)]]">
Wyatt Allen649fa8a2016-06-13 21:31:26 -0700289 Diff Preferences
290 </h2>
291 <fieldset id="diffPreferences">
Paladox none7a2280c2019-02-19 22:07:54 +0000292 <gr-diff-preferences
293 id="diffPrefs"
294 has-unsaved-changes="{{_diffPrefsChanged}}"></gr-diff-preferences>
Wyatt Allen649fa8a2016-06-13 21:31:26 -0700295 <gr-button
296 id="saveDiffPrefs"
Milutin Kristofic63cf95d2019-09-27 15:41:53 +0200297 on-click="_handleSaveDiffPreferences"
Becky Siegel07c8a162017-03-13 14:23:48 -0700298 disabled$="[[!_diffPrefsChanged]]">Save changes</gr-button>
Wyatt Allen649fa8a2016-06-13 21:31:26 -0700299 </fieldset>
Paladox noneca191942018-01-03 21:24:47 +0000300 <h2
301 id="EditPreferences"
302 class$="[[_computeHeaderClass(_editPrefsChanged)]]">
303 Edit Preferences
304 </h2>
305 <fieldset id="editPreferences">
306 <gr-edit-preferences
307 id="editPrefs"
308 has-unsaved-changes="{{_editPrefsChanged}}"></gr-edit-preferences>
309 <gr-button
310 id="saveEditPrefs"
Milutin Kristofic63cf95d2019-09-27 15:41:53 +0200311 on-click="_handleSaveEditPreferences"
Paladox noneca191942018-01-03 21:24:47 +0000312 disabled$="[[!_editPrefsChanged]]">Save changes</gr-button>
313 </fieldset>
Becky Siegel03a690b2016-12-21 10:41:45 -0800314 <h2 id="Menu" class$="[[_computeHeaderClass(_menuChanged)]]">Menu</h2>
Wyatt Allend14895b2016-06-06 12:37:24 -0700315 <fieldset id="menu">
Paladox none8f4dd282018-02-16 12:32:35 +0000316 <gr-menu-editor
317 menu-items="{{_localMenu}}"></gr-menu-editor>
Wyatt Allend14895b2016-06-06 12:37:24 -0700318 <gr-button
319 id="saveMenu"
Milutin Kristofic63cf95d2019-09-27 15:41:53 +0200320 on-click="_handleSaveMenu"
Becky Siegel07c8a162017-03-13 14:23:48 -0700321 disabled="[[!_menuChanged]]">Save changes</gr-button>
Paladox none8f4dd282018-02-16 12:32:35 +0000322 <gr-button
323 id="resetMenu"
324 link
Milutin Kristofic63cf95d2019-09-27 15:41:53 +0200325 on-click="_handleResetMenuButton">Reset</gr-button>
Wyatt Allend14895b2016-06-06 12:37:24 -0700326 </fieldset>
Becky Siegel03a690b2016-12-21 10:41:45 -0800327 <h2 id="ChangeTableColumns"
328 class$="[[_computeHeaderClass(_changeTableChanged)]]">
Becky Siegel1a44b342016-11-14 08:37:06 -0800329 Change Table Columns
330 </h2>
331 <fieldset id="changeTableColumns">
332 <gr-change-table-editor
Wyatt Allen5cb40d12017-09-18 15:47:22 -0700333 show-number="{{_showNumber}}"
Becky Siegel14aa6ab2017-02-23 16:06:18 -0800334 displayed-columns="{{_localChangeTableColumns}}">
Becky Siegel1a44b342016-11-14 08:37:06 -0800335 </gr-change-table-editor>
336 <gr-button
337 id="saveChangeTable"
Milutin Kristofic63cf95d2019-09-27 15:41:53 +0200338 on-click="_handleSaveChangeTable"
Becky Siegel07c8a162017-03-13 14:23:48 -0700339 disabled="[[!_changeTableChanged]]">Save changes</gr-button>
Becky Siegel1a44b342016-11-14 08:37:06 -0800340 </fieldset>
Wyatt Allen3eab24d2016-06-21 16:00:41 -0700341 <h2
342 id="Notifications"
343 class$="[[_computeHeaderClass(_watchedProjectsChanged)]]">
Wyatt Allen2dc5c362016-06-13 21:05:45 -0700344 Notifications
345 </h2>
Wyatt Allenbd472172016-06-09 17:44:51 -0700346 <fieldset id="watchedProjects">
347 <gr-watched-projects-editor
Wyatt Allen330bb862016-06-15 14:43:35 -0700348 has-unsaved-changes="{{_watchedProjectsChanged}}"
349 id="watchedProjectsEditor"></gr-watched-projects-editor>
Wyatt Allenbd472172016-06-09 17:44:51 -0700350 <gr-button
Milutin Kristofic63cf95d2019-09-27 15:41:53 +0200351 on-click="_handleSaveWatchedProjects"
Wyatt Allenbd472172016-06-09 17:44:51 -0700352 disabled$="[[!_watchedProjectsChanged]]"
Becky Siegel07c8a162017-03-13 14:23:48 -0700353 id="_handleSaveWatchedProjects">Save changes</gr-button>
Wyatt Allenbd472172016-06-09 17:44:51 -0700354 </fieldset>
Wyatt Allen3eab24d2016-06-21 16:00:41 -0700355 <h2
356 id="EmailAddresses"
357 class$="[[_computeHeaderClass(_emailsChanged)]]">
Wyatt Allencf028422016-06-14 17:44:30 -0700358 Email Addresses
359 </h2>
360 <fieldset id="email">
361 <gr-email-editor
362 id="emailEditor"
363 has-unsaved-changes="{{_emailsChanged}}"></gr-email-editor>
364 <gr-button
Milutin Kristofic63cf95d2019-09-27 15:41:53 +0200365 on-click="_handleSaveEmails"
Becky Siegel07c8a162017-03-13 14:23:48 -0700366 disabled$="[[!_emailsChanged]]">Save changes</gr-button>
Wyatt Allencf028422016-06-14 17:44:30 -0700367 </fieldset>
368 <fieldset id="newEmail">
369 <section>
Becky Siegel07c8a162017-03-13 14:23:48 -0700370 <span class="title">New email address</span>
Wyatt Allencf028422016-06-14 17:44:30 -0700371 <span class="value">
Ben Rohlfs540a5fe2019-06-17 12:45:45 +0200372 <iron-input
373 class="newEmailInput"
Becky Siegel10de1032017-07-18 21:27:54 +0000374 bind-value="{{_newEmail}}"
Becky Siegel10de1032017-07-18 21:27:54 +0000375 type="text"
376 disabled="[[_addingEmail]]"
377 on-keydown="_handleNewEmailKeydown"
378 placeholder="email@example.com">
Ben Rohlfs540a5fe2019-06-17 12:45:45 +0200379 <input
380 class="newEmailInput"
381 bind-value="{{_newEmail}}"
382 is="iron-input"
383 type="text"
384 disabled="[[_addingEmail]]"
385 on-keydown="_handleNewEmailKeydown"
386 placeholder="email@example.com">
387 </iron-input>
Wyatt Allencf028422016-06-14 17:44:30 -0700388 </span>
389 </section>
390 <section
391 id="verificationSentMessage"
392 hidden$="[[!_lastSentVerificationEmail]]">
393 <p>
394 A verification email was sent to
395 <em>[[_lastSentVerificationEmail]]</em>. Please check your inbox.
396 </p>
397 </section>
398 <gr-button
399 disabled="[[!_computeAddEmailButtonEnabled(_newEmail, _addingEmail)]]"
Milutin Kristofic63cf95d2019-09-27 15:41:53 +0200400 on-click="_handleAddEmailButton">Send verification</gr-button>
Wyatt Allencf028422016-06-14 17:44:30 -0700401 </fieldset>
Paladox none4a116292019-06-14 18:50:53 +0000402 <template is="dom-if" if="[[_showHttpAuth(_serverConfig)]]">
403 <div>
404 <h2 id="HTTPCredentials">HTTP Credentials</h2>
405 <fieldset>
406 <gr-http-password id="httpPass"></gr-http-password>
407 </fieldset>
408 </div>
409 </template>
Wyatt Allenbe9869c2016-06-20 15:50:37 -0700410 <div hidden$="[[!_serverConfig.sshd]]">
Wyatt Allen3eab24d2016-06-21 16:00:41 -0700411 <h2
412 id="SSHKeys"
Becky Siegel07c8a162017-03-13 14:23:48 -0700413 class$="[[_computeHeaderClass(_keysChanged)]]">SSH keys</h2>
Wyatt Allenbe9869c2016-06-20 15:50:37 -0700414 <gr-ssh-editor
415 id="sshEditor"
416 has-unsaved-changes="{{_keysChanged}}"></gr-ssh-editor>
417 </div>
Paladox none4f534272017-10-31 21:29:08 +0000418 <div hidden$="[[!_serverConfig.receive.enable_signed_push]]">
419 <h2
420 id="GPGKeys"
421 class$="[[_computeHeaderClass(_gpgKeysChanged)]]">GPG keys</h2>
422 <gr-gpg-editor
423 id="gpgEditor"
424 has-unsaved-changes="{{_gpgKeysChanged}}"></gr-gpg-editor>
425 </div>
Wyatt Allen3eab24d2016-06-21 16:00:41 -0700426 <h2 id="Groups">Groups</h2>
Wyatt Allen64056502016-06-16 14:53:01 -0700427 <fieldset>
428 <gr-group-list id="groupList"></gr-group-list>
429 </fieldset>
Paladox none404ac542017-10-21 16:19:54 +0000430 <h2 id="Identities">Identities</h2>
431 <fieldset>
Paladox none6d6e4ff2019-07-15 14:33:41 +0000432 <gr-identities id="identities" server-config="[[_serverConfig]]"></gr-identities>
Paladox none404ac542017-10-21 16:19:54 +0000433 </fieldset>
Kasper Nilsson674e9782017-06-27 11:21:16 -0700434 <template is="dom-if" if="[[_serverConfig.auth.use_contributor_agreements]]">
Paladox none5b3746d2017-06-21 15:30:03 +0000435 <h2 id="Agreements">Agreements</h2>
436 <fieldset>
437 <gr-agreements-list id="agreementsList"></gr-agreements-list>
438 </fieldset>
Kasper Nilsson674e9782017-06-27 11:21:16 -0700439 </template>
Wyatt Allen12a36022016-11-28 11:28:10 -0800440 <h2 id="MailFilters">Mail Filters</h2>
441 <fieldset class="filters">
442 <p>
443 Gerrit emails include metadata about the change to support
444 writing mail filters.
445 </p>
446 <p>
447 Here are some example Gmail queries that can be used for filters or
448 for searching through archived messages. View the
449 <a href$="[[_getFilterDocsLink(_docsBaseUrl)]]"
450 target="_blank"
451 rel="nofollow">Gerrit documentation</a>
452 for the complete set of footers.
453 </p>
454 <table>
455 <tbody>
456 <tr><th>Name</th><th>Query</th></tr>
457 <tr>
458 <td>Changes requesting my review</td>
459 <td>
460 <code class="queryExample">
461 "Gerrit-Reviewer: <em>Your Name</em>
462 &lt;<em>your.email@example.com</em>&gt;"
463 </code>
464 </td>
465 </tr>
466 <tr>
467 <td>Changes from a specific owner</td>
468 <td>
469 <code class="queryExample">
470 "Gerrit-Owner: <em>Owner name</em>
471 &lt;<em>owner.email@example.com</em>&gt;"
472 </code>
473 </td>
474 </tr>
475 <tr>
476 <td>Changes targeting a specific branch</td>
477 <td>
478 <code class="queryExample">
479 "Gerrit-Branch: <em>branch-name</em>"
480 </code>
481 </td>
482 </tr>
483 <tr>
484 <td>Changes in a specific project</td>
485 <td>
486 <code class="queryExample">
487 "Gerrit-Project: <em>project-name</em>"
488 </code>
489 </td>
490 </tr>
491 <tr>
492 <td>Messages related to a specific Change ID</td>
493 <td>
494 <code class="queryExample">
495 "Gerrit-Change-Id: <em>Change ID</em>"
496 </code>
497 </td>
498 </tr>
499 <tr>
500 <td>Messages related to a specific change number</td>
501 <td>
502 <code class="queryExample">
503 "Gerrit-Change-Number: <em>change number</em>"
504 </code>
505 </td>
506 </tr>
507 </tbody>
508 </table>
509 </fieldset>
Viktar Donich17c02262017-12-21 15:46:02 -0800510 <gr-endpoint-decorator name="settings-screen">
511 </gr-endpoint-decorator>
Wyatt Allen8fee90b2016-06-04 18:21:01 -0700512 </main>
Wyatt Allen60ea95f2016-06-03 09:35:07 -0700513 </div>
514 <gr-rest-api-interface id="restAPI"></gr-rest-api-interface>
515 </template>
516 <script src="../../../scripts/util.js"></script>
517 <script src="gr-settings-view.js"></script>
518</dom-module>