diff --git a/core/src/main/java/hudson/model/View.java b/core/src/main/java/hudson/model/View.java index 0d531ea86e..0ceb57c20c 100644 --- a/core/src/main/java/hudson/model/View.java +++ b/core/src/main/java/hudson/model/View.java @@ -374,6 +374,15 @@ public abstract class View extends AbstractModelObject implements AccessControll return true; } + /** + * Enables or disables automatic refreshes of the view. + * By default, automatic refreshes are enabled. + * @since TODO: define a version + */ + public boolean isAutomaticRefreshEnabled() { + return true; + } + /** * If true, only show relevant executors */ diff --git a/core/src/main/resources/hudson/model/View/index.jelly b/core/src/main/resources/hudson/model/View/index.jelly index 464262f320..b74f00dc4d 100644 --- a/core/src/main/resources/hudson/model/View/index.jelly +++ b/core/src/main/resources/hudson/model/View/index.jelly @@ -24,7 +24,7 @@ THE SOFTWARE. - + diff --git a/core/src/main/resources/lib/layout/breadcrumbBar.jelly b/core/src/main/resources/lib/layout/breadcrumbBar.jelly index f00fb45e99..ef1b411328 100644 --- a/core/src/main/resources/lib/layout/breadcrumbBar.jelly +++ b/core/src/main/resources/lib/layout/breadcrumbBar.jelly @@ -40,7 +40,7 @@ THE SOFTWARE.
- +
diff --git a/core/src/main/resources/lib/layout/layout.jelly b/core/src/main/resources/lib/layout/layout.jelly index 6f5a223b61..a8466f3d6c 100644 --- a/core/src/main/resources/lib/layout/layout.jelly +++ b/core/src/main/resources/lib/layout/layout.jelly @@ -34,7 +34,7 @@ THE SOFTWARE. Title of the HTML page. Rendered into <title> tag. - If non-null, auto refresh is disabled on this page. + If non-null and not "false", auto refresh is disabled on this page. This is necessary for pages that include forms. @@ -68,8 +68,7 @@ ${h.initPageVariables(context)} which I suspect can end up creating sessions for wrong resource types (such as static resources.) --> - - + ${h.advertiseHeaders(response)}