java/nekurak.net-web/web/WEB-INF/tags/nekurak/komentareVypis.tag
changeset 128 24fbed5ba743
parent 127 2b6107e510d8
child 129 420d7024f6f4
     1.1 --- a/java/nekurak.net-web/web/WEB-INF/tags/nekurak/komentareVypis.tag	Tue Jun 08 02:37:04 2010 +0200
     1.2 +++ b/java/nekurak.net-web/web/WEB-INF/tags/nekurak/komentareVypis.tag	Tue Jun 08 03:18:12 2010 +0200
     1.3 @@ -10,21 +10,26 @@
     1.4  
     1.5      <div class="komentare">
     1.6  	<h3><fmt:message key="komentare.vypisNadpis"/></h3>
     1.7 +
     1.8 +	<!-- Zatím nikdo nekomentoval? -->
     1.9 +	<c:if test="${fn:length(podnik.komentare) == 0}">
    1.10 +	    <p><fmt:message key="komentare.zadneKomentare"/></p>
    1.11 +	</c:if>
    1.12 +
    1.13 +	<!-- Komentovat! -->
    1.14  	<c:choose>
    1.15  	    <c:when test="${prihlasenyUzivatel == null}">
    1.16  		<p><fmt:message key="komentare.prihlasitSe"/></p>
    1.17  	    </c:when>
    1.18  	    <c:otherwise>
    1.19 -		<p>Uživatel: <c:out value="${prihlasenyUzivatel}" /></p>
    1.20 +		<p><a href="javascript:komentare.zobrazFormular()"><fmt:message key="komentare.komentovat"/></a></p>
    1.21 +		<div id="formularKomentuj" style="display: none;">
    1.22 +		    <p>tady bude formulář</p>
    1.23 +		</div>
    1.24  	    </c:otherwise>
    1.25  	</c:choose>
    1.26  
    1.27 -	<c:if test="${fn:length(podnik.komentare) == 0}">
    1.28 -	    <p><fmt:message key="komentare.zadneKomentare"/></p>
    1.29 -	</c:if>
    1.30 -
    1.31 -
    1.32 -
    1.33 +	<!-- Výpis komentářů -->
    1.34  	<c:forEach var="k" items="${podnik.komentare}">
    1.35  	    <div class="komentar">
    1.36  		<h4>