java/nekurak.net-web/web/index.jsp
changeset 40 67d332d48562
parent 39 ea342cf8c15a
child 41 2c3451cc396c
     1.1 --- a/java/nekurak.net-web/web/index.jsp	Thu Feb 25 02:41:57 2010 +0100
     1.2 +++ b/java/nekurak.net-web/web/index.jsp	Thu Feb 25 08:26:46 2010 +0100
     1.3 @@ -30,19 +30,26 @@
     1.4  		</div>
     1.5  
     1.6  		<ul id="nabidka">
     1.7 -		    <li><a href="#">Úvod</a></li>
     1.8 -		    <li><a href="#">Přidat podnik</a></li>
     1.9 -		    <li><a href="#">Přihlásit se</a></li>
    1.10 +		    <li><a href="?">Úvod</a></li>
    1.11 +		    <li><a href="${pageContext.servletContext.contextPath}/sprava">Správa</a></li>
    1.12 +		    <c:if test="${pageContext.request.userPrincipal.name != null}">
    1.13 +			<li><a href="?akce=pridatPodnik">Přidat podnik</a></li>
    1.14 +			<li id="prihlasenyUzivatel">Přihlášený uživatel: ${pageContext.request.userPrincipal.name}</li>
    1.15 +		    </c:if>
    1.16 +
    1.17  		</ul>
    1.18  
    1.19  		<div id="obsah">
    1.20  
    1.21  		    <c:choose>
    1.22  			<c:when test="${param.akce == 'detail'}">
    1.23 -
    1.24 +			    <jsp:include page="/WEB-INF/casti/detail.jsp" flush="false"/>
    1.25 +			</c:when>
    1.26 +			<c:when test="${param.akce == 'pridatPodnik'}">
    1.27 +			    <jsp:include page="/WEB-INF/casti/pridatPodnik.jsp" flush="false"/>
    1.28  			</c:when>
    1.29  			<c:otherwise>
    1.30 -			    <jsp:include page="WEB-INF/casti/uvod.jsp" flush="false"/>
    1.31 +			    <jsp:include page="/WEB-INF/casti/uvod.jsp" flush="false"/>
    1.32  			</c:otherwise>
    1.33  		    </c:choose>
    1.34  
    1.35 @@ -51,8 +58,8 @@
    1.36  		<div id="paticka">
    1.37  		    <p>
    1.38  			© 2010 nekurak.net. Licence: Affero GPL.
    1.39 -			<a href="nekurak.net-src.zip">nekurak.net-src.zip</a>
    1.40 -			<a href="nekurak.net-src.zip.SHA-512">.</a>
    1.41 +			<a href="${pageContext.servletContext.contextPath}/nekurak.net-src.zip">nekurak.net-src.zip</a>
    1.42 +			<a href="${pageContext.servletContext.contextPath}/nekurak.net-src.zip.SHA-512">.</a>
    1.43  		    </p>
    1.44  		</div>
    1.45