in server/src/jetbrains/buildServer/staticUIExtensions/web/RulePageExtension.java [23:58]
public RulePageExtension(@NotNull final PagePlaces pagePlaces,
@NotNull final PluginDescriptor descriptor,
@NotNull final ControllerPaths paths,
@NotNull final Rule rule) {
super(pagePlaces);
myRule = rule;
setPlaceId(rule.getPlace());
setPluginName(descriptor.getPluginName() + rule.getRuleId());
final StaticContent content = rule.getContent();
String includeUrl = paths.getResourceControllerBasePath();
final String html = content.getHTML();
if (html != null) {
includeUrl = paths.addHtmlToResourceControllerPath(includeUrl, html);
}
final String js = content.getJS();
if (js != null) {
includeUrl = paths.addJsToResourceControllerPath(includeUrl, js);
}
final String css = content.getCSS();
if (css != null) {
includeUrl = paths.addCssToResourceControllerPath(includeUrl, css);
}
if (html == null && js == null && css == null) {
includeUrl = paths.addEmptyContentControllerPath(includeUrl);
}
setIncludeUrl(includeUrl);
}