mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 14:02:22 +00:00
The default view is now configurable.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19667 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
b527174b82
commit
104ea7654d
6 files changed
+40
-1
No files matched your search
@@ -51,6 +51,11 @@ public class AllView extends View {
|
||||
return Hudson.getInstance().getDescription();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEditable() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean contains(TopLevelItem item) {
|
||||
return true;
|
||||
|
||||
@@ -2181,6 +2181,8 @@ public final class Hudson extends Node implements ItemGroup<TopLevelItem>, Stapl
|
||||
} else {
|
||||
setCrumbIssuer(null);
|
||||
}
|
||||
|
||||
primaryView = json.has("primaryView") ? json.getString("primaryView") : getViews().iterator().next().getViewName();
|
||||
|
||||
noUsageStatistics = json.has("usageStatisticsCollected") ? null : true;
|
||||
|
||||
|
||||
@@ -172,6 +172,17 @@ public abstract class View extends AbstractModelObject implements AccessControll
|
||||
return getViewName();
|
||||
}
|
||||
|
||||
/**
|
||||
* By default, return true to render the "Edit view" link on the page.
|
||||
* This method is really just for the default "All" view to hide the edit link
|
||||
* so that the default Hudson top page remains the same as before 1.316.
|
||||
*
|
||||
* @since 1.316
|
||||
*/
|
||||
public boolean isEditable() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the {@link Widget}s registered on this object.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user