Remove the "show site header" preference
This was only used in the GWT UI, which has been removed. Change-Id: I9d7a13aa6ba663055716f108f880049384ed24e7
This commit is contained in:
@@ -185,8 +185,6 @@ link:intro-user.html#preferences[general],
|
|||||||
link:user-review-ui.html#diff-preferences[diff] and edit preferences:
|
link:user-review-ui.html#diff-preferences[diff] and edit preferences:
|
||||||
|
|
||||||
----
|
----
|
||||||
[general]
|
|
||||||
showSiteHeader = false
|
|
||||||
[diff]
|
[diff]
|
||||||
hideTopMenu = true
|
hideTopMenu = true
|
||||||
[edit]
|
[edit]
|
||||||
|
@@ -1250,7 +1250,6 @@ any account.
|
|||||||
)]}'
|
)]}'
|
||||||
{
|
{
|
||||||
"changes_per_page": 25,
|
"changes_per_page": 25,
|
||||||
"show_site_header": true,
|
|
||||||
"download_command": "CHECKOUT",
|
"download_command": "CHECKOUT",
|
||||||
"date_format": "STD",
|
"date_format": "STD",
|
||||||
"time_format": "HHMM_12",
|
"time_format": "HHMM_12",
|
||||||
@@ -1305,7 +1304,6 @@ link:#preferences-input[PreferencesInput] entity.
|
|||||||
|
|
||||||
{
|
{
|
||||||
"changes_per_page": 50,
|
"changes_per_page": 50,
|
||||||
"show_site_header": true,
|
|
||||||
"expand_inline_diffs": true,
|
"expand_inline_diffs": true,
|
||||||
"download_command": "CHECKOUT",
|
"download_command": "CHECKOUT",
|
||||||
"date_format": "STD",
|
"date_format": "STD",
|
||||||
@@ -1355,7 +1353,6 @@ link:#preferences-info[PreferencesInfo] entity.
|
|||||||
)]}'
|
)]}'
|
||||||
{
|
{
|
||||||
"changes_per_page": 50,
|
"changes_per_page": 50,
|
||||||
"show_site_header": true,
|
|
||||||
"expand_inline_diffs": true,
|
"expand_inline_diffs": true,
|
||||||
"download_command": "CHECKOUT",
|
"download_command": "CHECKOUT",
|
||||||
"date_format": "STD",
|
"date_format": "STD",
|
||||||
@@ -2719,8 +2716,6 @@ The `PreferencesInfo` entity contains information about a user's preferences.
|
|||||||
|`changes_per_page` ||
|
|`changes_per_page` ||
|
||||||
The number of changes to show on each page.
|
The number of changes to show on each page.
|
||||||
Allowed values are `10`, `25`, `50`, `100`.
|
Allowed values are `10`, `25`, `50`, `100`.
|
||||||
|`show_site_header` |not set if `false`|
|
|
||||||
Whether the site header should be shown.
|
|
||||||
|`expand_inline_diffs` |not set if `false`|
|
|`expand_inline_diffs` |not set if `false`|
|
||||||
Whether to expand diffs inline instead of opening as separate page
|
Whether to expand diffs inline instead of opening as separate page
|
||||||
(PolyGerrit only).
|
(PolyGerrit only).
|
||||||
@@ -2791,8 +2786,6 @@ user preferences. Fields which are not set will not be updated.
|
|||||||
|`changes_per_page` |optional|
|
|`changes_per_page` |optional|
|
||||||
The number of changes to show on each page.
|
The number of changes to show on each page.
|
||||||
Allowed values are `10`, `25`, `50`, `100`.
|
Allowed values are `10`, `25`, `50`, `100`.
|
||||||
|`show_site_header` |optional|
|
|
||||||
Whether the site header should be shown.
|
|
||||||
|`expand_inline_diffs` |not set if `false`|
|
|`expand_inline_diffs` |not set if `false`|
|
||||||
Whether to expand diffs inline instead of opening as separate page
|
Whether to expand diffs inline instead of opening as separate page
|
||||||
(PolyGerrit only).
|
(PolyGerrit only).
|
||||||
|
@@ -1054,7 +1054,6 @@ PreferencesInfo] is returned.
|
|||||||
)]}'
|
)]}'
|
||||||
{
|
{
|
||||||
"changes_per_page": 25,
|
"changes_per_page": 25,
|
||||||
"show_site_header": true,
|
|
||||||
"download_command": "CHECKOUT",
|
"download_command": "CHECKOUT",
|
||||||
"date_format": "STD",
|
"date_format": "STD",
|
||||||
"time_format": "HHMM_12",
|
"time_format": "HHMM_12",
|
||||||
@@ -1132,7 +1131,6 @@ PreferencesInfo] is returned.
|
|||||||
)]}'
|
)]}'
|
||||||
{
|
{
|
||||||
"changes_per_page": 50,
|
"changes_per_page": 50,
|
||||||
"show_site_header": true,
|
|
||||||
"download_command": "CHECKOUT",
|
"download_command": "CHECKOUT",
|
||||||
"date_format": "STD",
|
"date_format": "STD",
|
||||||
"time_format": "HHMM_12",
|
"time_format": "HHMM_12",
|
||||||
|
@@ -131,8 +131,6 @@ public class GeneralPreferencesInfo {
|
|||||||
|
|
||||||
/** Number of changes to show in a screen. */
|
/** Number of changes to show in a screen. */
|
||||||
public Integer changesPerPage;
|
public Integer changesPerPage;
|
||||||
/** Should the site header be displayed when logged in ? */
|
|
||||||
public Boolean showSiteHeader;
|
|
||||||
/** Type of download URL the user prefers to use. */
|
/** Type of download URL the user prefers to use. */
|
||||||
public String downloadScheme;
|
public String downloadScheme;
|
||||||
/** Type of download command the user prefers to use. */
|
/** Type of download command the user prefers to use. */
|
||||||
@@ -207,7 +205,6 @@ public class GeneralPreferencesInfo {
|
|||||||
public static GeneralPreferencesInfo defaults() {
|
public static GeneralPreferencesInfo defaults() {
|
||||||
GeneralPreferencesInfo p = new GeneralPreferencesInfo();
|
GeneralPreferencesInfo p = new GeneralPreferencesInfo();
|
||||||
p.changesPerPage = DEFAULT_PAGESIZE;
|
p.changesPerPage = DEFAULT_PAGESIZE;
|
||||||
p.showSiteHeader = true;
|
|
||||||
p.downloadScheme = null;
|
p.downloadScheme = null;
|
||||||
p.downloadCommand = DownloadCommand.CHECKOUT;
|
p.downloadCommand = DownloadCommand.CHECKOUT;
|
||||||
p.dateFormat = DateFormat.STD;
|
p.dateFormat = DateFormat.STD;
|
||||||
|
@@ -65,8 +65,6 @@ import org.eclipse.jgit.lib.Repository;
|
|||||||
* <p>The config file has separate sections for general, diff and edit preferences:
|
* <p>The config file has separate sections for general, diff and edit preferences:
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* [general]
|
|
||||||
* showSiteHeader = false
|
|
||||||
* [diff]
|
* [diff]
|
||||||
* hideTopMenu = true
|
* hideTopMenu = true
|
||||||
* [edit]
|
* [edit]
|
||||||
|
@@ -73,7 +73,6 @@ public class GeneralPreferencesIT extends AbstractDaemonTest {
|
|||||||
|
|
||||||
// change all default values
|
// change all default values
|
||||||
i.changesPerPage *= -1;
|
i.changesPerPage *= -1;
|
||||||
i.showSiteHeader ^= true;
|
|
||||||
i.downloadCommand = DownloadCommand.REPO_DOWNLOAD;
|
i.downloadCommand = DownloadCommand.REPO_DOWNLOAD;
|
||||||
i.dateFormat = DateFormat.US;
|
i.dateFormat = DateFormat.US;
|
||||||
i.timeFormat = TimeFormat.HHMM_24;
|
i.timeFormat = TimeFormat.HHMM_24;
|
||||||
|
Reference in New Issue
Block a user