src/main/webapp/WEB-INF/jspf/project-header.jspf

changeset 134
f47e82cd6077
parent 115
c27638a50c92
child 181
502a10e24b85
     1.1 --- a/src/main/webapp/WEB-INF/jspf/project-header.jspf	Sat Oct 17 15:21:56 2020 +0200
     1.2 +++ b/src/main/webapp/WEB-INF/jspf/project-header.jspf	Sat Oct 17 19:56:50 2020 +0200
     1.3 @@ -1,5 +1,6 @@
     1.4  <%--
     1.5  project: Project
     1.6 +component: Component (optional)
     1.7  --%>
     1.8  <div class="table project-attributes">
     1.9      <div class="row">
    1.10 @@ -21,4 +22,19 @@
    1.11              </c:if>
    1.12          </div>
    1.13      </div>
    1.14 +    <c:if test="${not empty component and component.id gt 0}">
    1.15 +        <div class="row">
    1.16 +            <div class="caption"><fmt:message key="component"/>:</div>
    1.17 +            <div><c:out value="${component.name}"/></div>
    1.18 +            <div class="caption"><fmt:message key="component.lead"/>:</div>
    1.19 +            <div>
    1.20 +                <c:if test="${not empty component.lead}">
    1.21 +                    <c:out value="${component.lead.displayname}"/>
    1.22 +                </c:if>
    1.23 +                <c:if test="${empty component.lead}">
    1.24 +                    <fmt:message key="placeholder.null-lead"/>
    1.25 +                </c:if>
    1.26 +            </div>
    1.27 +        </div>
    1.28 +    </c:if>
    1.29  </div>

mercurial