fix TW-58428: make health report sound as recommendation rather than error
[teamcity/git-plugin.git] / git-server / resources / buildServerResources / health / gitGcErrorsReport.jsp
1 <%@ page import="jetbrains.buildServer.web.openapi.healthStatus.HealthStatusItemDisplayMode" %>
2 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
3 <c:set var="inplaceMode" value="<%=HealthStatusItemDisplayMode.IN_PLACE%>"/>
4 <jsp:useBean id="showMode" type="jetbrains.buildServer.web.openapi.healthStatus.HealthStatusItemDisplayMode" scope="request"/>
5 <c:set var="errorsBlockId" value="gitGcErrors_${showMode}"/>
6 <jsp:useBean id="errors" type="java.util.Map<java.lang.String, java.lang.String>" scope="request"/>
7
8 <div>
9   Errors while running git garbage collection
10   <c:if test="${showMode == inplaceMode}"><a href="javascript:;" onclick="$j('#${errorsBlockId}').toggle();">Show details &raquo;</a></c:if>
11 </div>
12 <div id="${errorsBlockId}" style="margin-left: 1em; display: ${showMode == inplaceMode ? 'none' : ''}">
13   <c:forEach var="error" items="${errors}">
14     <div>
15       <b><c:out value="${error.key}"/></b> (clone dir <c:out value="${error.value.first}"/>): <c:out value="${error.value.second}"/>
16     </div>
17   </c:forEach>
18 </div>