PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/src/main/webapp/WEB-INF/jsp/projects/show.jsp

http://thoughtsite.googlecode.com/
JavaServer Pages | 121 lines | 117 code | 4 blank | 0 comment | 0 complexity | 9fb51f644daa074ad86158386c34c7e3 MD5 | raw file
  1<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
  2<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
  3<%@page import="com.google.ie.web.controller.WebConstants"%>
  4<html>
  5<head>
  6  <title>Project Detail</title>
  7    <!-- Load the list js file. -->
  8    <script type='text/javascript' src='<%=request.getContextPath()%>/public/js/lib/jquery.limit.js'></script>
  9    <script type="text/javascript" src="<%=request.getContextPath()%>/public/js/projects/show.js"></script>
 10    <script type="text/javascript" src="http://api.recaptcha.net/js/recaptcha_ajax.js"></script>
 11    <meta name="currentPage" content="project" />
 12</head>
 13<body>
 14  <div id="internal-pg-content">
 15    <c:if test="${'error' eq viewStatus.status}">
 16      <div class="ie-left-mar-10 ie-rd" id="errDisplay"><c:out value="${viewStatus.messages['error']}"/></div>
 17    </c:if>
 18    <c:if test="${'success' eq viewStatus.status}">
 19    <c:set var="projectDetail" value="${viewStatus.data['project']}"/>
 20    <div class="ie-overview-main">
 21	    <c:set var="project" value="${projectDetail['project']}"/>
 22	    <c:if test="${'Deleted' eq project.status}">
 23        <span class="global-error">The project you want to view is deleted by site Administrator.</span><br /><br />
 24	    </c:if>
 25      <c:if test="${'Deleted' != project.status}">
 26	    	<c:set var="user" value="${projectDetail.user}"></c:set>
 27    		<c:set var="creation_date" value="${project.createdOn}" />
 28    		
 29              <div class="ie-overview-desc ie-text">
 30              <!-- discreption -->
 31                <div class="ie-bottom-mar-10">
 32	                <span class="ie-left-mar-5 ie-top-mar-10 ie-right-mar-10"><h2><strong class="blu-heading"><c:out value="${project.name}"/></strong></h2></span>	                
 33	                <span class="ie-top-mar-10 ie-right-mar-10" id='editIdea'  <c:if test="${false eq projectDetail.projectEditable}">style='display:none'</c:if>><a href="<c:out value='/projects/editProject/${project.key}'/>" class="ie-nm-blu" >Edit Project</a></span>
 34	                
 35	            </div>
 36	            <div class="ie-bottom-mar-10">
 37	            <c:if test="${not empty project.ideaKey}">
 38	            	Idea: <a href="<c:out value='/ideas/show/${project.ideaKey}'/>"  class="ie-nm-blu"><c:out value="${projectDetail.ideaTitle}"/> </a><br />
 39	            </c:if>
 40	            <c:if test="${empty project.ideaKey}">
 41	            	<span class="global-error">The idea related to this project was either deleted or marked objectionable by site Administrator.</span><br /><br />
 42	            </c:if>
 43	                <!-- Owner:   <a href="<c:out value='/users/profile/${user.userKey}'/>" class="ie-nm-blu"><c:out value="${user.displayName}"/></a><br />
 44	                 -->
 45	                Created on: <fmt:formatDate value="${creation_date}" type="date" timeStyle="full" 
 46                  					dateStyle="long" timeZone="IST" pattern="MMMM dd, yyyy z"/> 
 47	                 <!--<c:out value="${project.createdOn}"/>--><br />
 48	                  <br />
 49	                  <strong>Description</strong><br />              
 50	                   <c:out value="${project.description}"/><br /><br />
 51	                  <strong>Developers (<c:out value="${projectDetail.developerCount}"/>)</strong><br />
 52	                 <c:if test="${not empty projectDetail.developers}">
 53	                 <c:set var="count" value="${projectDetail.developerCount}"></c:set>
 54	                 <c:set var="counter" value="0"></c:set>
 55			   		 <c:forEach items="${projectDetail.developers}" var="developer" >
 56			   		 <c:set var="counter" value="${counter + 1}"></c:set>
 57			   		 <c:if test="${not empty developer.userKey}">
 58			   		  <a href="<c:out value='/users/profile/${developer.userKey}'/>" class="ie-nm-blu"><c:out value="${developer.name}"/></a>
 59			   		 </c:if>
 60			   		 <c:if test="${empty developer.userKey}">
 61			   		  <c:out value="${developer.name}"/>
 62			   		 </c:if>	
 63			   		 <c:if test="${count gt counter}">
 64			   		 ,
 65			   		 </c:if>		   		 			   		 
 66	                  </c:forEach>
 67	                  </c:if>
 68                 </div>
 69                  <br />
 70               </div> 
 71            </div>
 72    <!-- close comment section -->
 73    <div class="ie-overview-main" style='display:none' id='postComment'>
 74      <div class="ie-overview-heading ie-top-mar-10">Post Your Comments</div>
 75      <!-- comment -->
 76      <div class="ie-left-mar-10 ie-top-mar-5 ie-rd" id="errComment"></div>
 77      <div class="ie-overview-desc ie-text">
 78        <ul class="ie-hm">
 79          <li class="ie-hm">Comment:</li>
 80          <li class="ie-hm">
 81            <textarea name="comment" cols="130" rows="5"  id="comment" ></textarea>
 82          </li>
 83          <li class="ie-hm">
 84            <div id="charsLeft"></div> chars left.
 85          </li>
 86          <li class="ie-hm">
 87            <input type="button" name="btnPostComment" id="btnPostComment" value="Post" class="ie-button" />
 88          </li>
 89        </ul>
 90      
 91        <div class="divider"> &nbsp;&nbsp;
 92        </div>
 93      </div>
 94      <!-- close-->
 95    </div>
 96    <!--  block 5 -->
 97    <div class="ie-overview-main">
 98      <div class="ie-overview-heading ie-top-mar-10  ie-bottom-mar-10"> 
 99        <div class="ie-left">Comments</div>
100        <div class="ie-right ie-right-mar-10"> <a href="javascript:void(0);" id='expandLink' class="link-plus">-</a> </div>
101      </div>
102      <!-- comment -->
103      <div id="commentLayer" style="display:none">
104        <div id="commentData"></div>
105        <!-- comment -->
106        <div id= "pagination" class="ie-right"></div>
107        <div style="clear:both"></div>
108      </div>
109      <!-- close-->
110    </div>
111    <!-- start pagination -->
112    <!-- close pagination -->
113    <br />
114    </c:if>
115	</c:if>
116  </div>
117  
118  <input type="hidden" value="<c:out value='${idea.key}'/>" id="ideaKey">
119  <input type="hidden" value="<c:out value='${project.key}'/>" id="projectKey">
120</body>
121</html>