mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-07 00:55:59 +00:00
Added a new extension point called "PageDecorator" to add HTML fragments to all pages.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11223 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
4678d49657
commit
862b79ccf1
5 files changed
+111
No files matched your search
@@ -17,6 +17,7 @@ import hudson.model.Project;
|
||||
import hudson.model.Run;
|
||||
import hudson.model.TopLevelItem;
|
||||
import hudson.model.View;
|
||||
import hudson.model.PageDecorator;
|
||||
import hudson.search.SearchableModelObject;
|
||||
import hudson.security.AccessControlled;
|
||||
import hudson.security.AuthorizationStrategy;
|
||||
@@ -932,5 +933,12 @@ public class Functions {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets all the {@link PageDecorator}s.
|
||||
*/
|
||||
public static List<PageDecorator> getPageDecorators() {
|
||||
return (List)PageDecorator.ALL;
|
||||
}
|
||||
|
||||
private static final Pattern SCHEME = Pattern.compile("[a-z]+://.+");
|
||||
}
|
||||
Reference in new issue
Block a user