mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-02 22:55:53 +00:00
Breadcrumb is reworked to show descendants to provide additional navigational shortcuts.
Object that implements ModelObjectWithChildren can expose its children in the breadcrumb.
This commit is contained in:
1 parent
0f6b02bd18
commit
b2cd4120ec
12 files changed
+103
-14
No files matched your search
@@ -127,6 +127,7 @@ import jenkins.model.GlobalConfiguration;
|
||||
import jenkins.model.GlobalConfigurationCategory;
|
||||
import jenkins.model.GlobalConfigurationCategory.Unclassified;
|
||||
import jenkins.model.Jenkins;
|
||||
import jenkins.model.ModelObjectWithChildren;
|
||||
import jenkins.model.ModelObjectWithContextMenu;
|
||||
|
||||
import org.acegisecurity.providers.anonymous.AnonymousAuthenticationToken;
|
||||
@@ -183,6 +184,10 @@ public class Functions {
|
||||
return o instanceof ModelObjectWithContextMenu;
|
||||
}
|
||||
|
||||
public static boolean isModelWithChildren(Object o) {
|
||||
return o instanceof ModelObjectWithChildren;
|
||||
}
|
||||
|
||||
public static String xsDate(Calendar cal) {
|
||||
return Util.XS_DATETIME_FORMATTER.format(cal.getTime());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user