@@ -35,6 +35,7 @@ import org.sonar.db.dialect.H2; | |||
import org.sonar.server.ui.PageRepository; | |||
import static org.sonar.api.CoreProperties.RATING_GRID; | |||
import static org.sonar.core.config.WebConstants.SONARQUBE_DOT_COM_ENABLED; | |||
import static org.sonar.core.config.WebConstants.SONAR_LF_ENABLE_GRAVATAR; | |||
import static org.sonar.core.config.WebConstants.SONAR_LF_GRAVATAR_SERVER_URL; | |||
import static org.sonar.core.config.WebConstants.SONAR_LF_LOGO_URL; | |||
@@ -49,6 +50,7 @@ public class GlobalAction implements NavigationWsAction { | |||
SONAR_LF_ENABLE_GRAVATAR, | |||
SONAR_LF_GRAVATAR_SERVER_URL, | |||
SONAR_UPDATECENTER_ACTIVATE, | |||
SONARQUBE_DOT_COM_ENABLED, | |||
RATING_GRID); | |||
private final PageRepository pageRepository; |
@@ -88,6 +88,7 @@ public class GlobalActionTest { | |||
settings.setProperty("sonar.lf.logoWidthPx", 135); | |||
settings.setProperty("sonar.lf.gravatarServerUrl", "https://secure.gravatar.com/avatar/{EMAIL_MD5}.jpg?s={SIZE}&d=identicon"); | |||
settings.setProperty("sonar.lf.enableGravatar", true); | |||
settings.setProperty("sonar.lf.sonarqube.com.enabled", true); | |||
settings.setProperty("sonar.updatecenter.activate", false); | |||
settings.setProperty("sonar.technicalDebt.ratingGrid", "0.05,0.1,0.2,0.5"); | |||
// This setting should be ignored as it's not needed |
@@ -4,6 +4,7 @@ | |||
"sonar.lf.logoWidthPx": "135", | |||
"sonar.lf.gravatarServerUrl": "https://secure.gravatar.com/avatar/{EMAIL_MD5}.jpg?s={SIZE}&d=identicon", | |||
"sonar.lf.enableGravatar": "true", | |||
"sonar.lf.sonarqube.com.enabled": "true", | |||
"sonar.updatecenter.activate": "false", | |||
"sonar.technicalDebt.ratingGrid": "0.05,0.1,0.2,0.5" | |||
} |
@@ -192,7 +192,7 @@ public class CorePropertyDefinitions { | |||
.category(CoreProperties.CATEGORY_GENERAL) | |||
.subCategory(CoreProperties.SUBCATEGORY_LOOKNFEEL) | |||
.build(), | |||
PropertyDefinition.builder("sonar.lf.aboutText") | |||
PropertyDefinition.builder(WebConstants.SONAR_LF_ABOUT_TEXT) | |||
.name("About page text") | |||
.description("Optional text that is displayed on the About page. Supports html.") | |||
.category(CoreProperties.CATEGORY_GENERAL) |
@@ -29,7 +29,9 @@ public final class WebConstants { | |||
public static final String SONAR_LF_GRAVATAR_SERVER_URL = "sonar.lf.gravatarServerUrl"; | |||
public static final String SONAR_LF_LOGO_URL = "sonar.lf.logoUrl"; | |||
public static final String SONAR_LF_LOGO_WIDTH_PX = "sonar.lf.logoWidthPx"; | |||
public static final String SONAR_LF_ABOUT_TEXT = "sonar.lf.aboutText"; | |||
public static final String SONAR_UPDATECENTER_ACTIVATE = "sonar.updatecenter.activate"; | |||
public static final String SONARQUBE_DOT_COM_ENABLED = "sonar.lf.sonarqube.com.enabled"; | |||
private WebConstants() { | |||
} |