diff --git a/changelog.html b/changelog.html index 12d9864b67..52e4bcfba6 100644 --- a/changelog.html +++ b/changelog.html @@ -71,6 +71,9 @@ Upcoming changes (issue 5577)
  • Making views more reusable outside the root object. +
  • + Added a new hudson.footerURL system property to tweak the link displayed at + the bottom of the UI diff --git a/core/src/main/java/hudson/Functions.java b/core/src/main/java/hudson/Functions.java index 7be7a79727..73a78c778b 100644 --- a/core/src/main/java/hudson/Functions.java +++ b/core/src/main/java/hudson/Functions.java @@ -2,7 +2,8 @@ * The MIT License * * Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi, - * Yahoo! Inc., Stephen Connolly, Tom Huybrechts, Alan Harder, Romain Seguy + * Yahoo! Inc., Stephen Connolly, Tom Huybrechts, Alan Harder, Manufacture + * Francaise des Pneumatiques Michelin, Romain Seguy * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -108,6 +109,7 @@ import java.util.logging.LogManager; import java.util.logging.LogRecord; import java.util.logging.SimpleFormatter; import java.util.regex.Pattern; +import org.apache.commons.lang.StringUtils; /** * Utility functions used in views. @@ -648,6 +650,20 @@ public class Functions { return buf.toString(); } + /** + * Returns the link to be displayed in the footer of the UI. + */ + public static String getFooterURL() { + if(footerURL == null) { + footerURL = System.getProperty("hudson.footerURL"); + if(StringUtils.isBlank(footerURL)) { + footerURL = "http://jenkins-ci.org/"; + } + } + return footerURL; + } + private static String footerURL = null; + public static List getJobPropertyDescriptors(Class clazz) { return JobPropertyDescriptor.getPropertyDescriptors(clazz); } diff --git a/core/src/main/resources/lib/layout/layout.jelly b/core/src/main/resources/lib/layout/layout.jelly index b5accbf54f..449eec7cbb 100644 --- a/core/src/main/resources/lib/layout/layout.jelly +++ b/core/src/main/resources/lib/layout/layout.jelly @@ -2,7 +2,8 @@ The MIT License Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi, -Daniel Dyer, Seiji Sogabe, Tom Huybrechts +Daniel Dyer, Seiji Sogabe, Tom Huybrechts, Manufacture Francaise des Pneumatiques +Michelin, Romain Seguy Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -259,7 +260,7 @@ THE SOFTWARE. ${%Page generated}: - Jenkins ver. ${h.version} + Jenkins ver. ${h.version}