Commits

Juan Carlos Picado Herrera  committed c4ed65e

Added custom css on 404 page

  • Participants
  • Parent commits f6cc41e

Comments (0)

Files changed (5)

File enme-war/enme-views/src/main/webapp/WEB-INF/layouts/standard/page.jsp

     <footer id="footer" class="">
 
     </footer>
-  </div>
+  </div>s
   <div id="footer-f">
      <tiles:insertAttribute name="footer" />
   </div>

File enme-war/enme-views/src/main/webapp/WEB-INF/views/error/mobile/404.jsp

 <%@ include file="/WEB-INF/jsp/includes/taglibs.jsp"%>
-<div>404 Page Not Found</div>
+<div id="web-user-actions-form-wrapper" class="enme-auto-center">
+    <div class="web-form-wrapper sign-in-form" id="web-form-wrapper">
+        <article>
+            <section class="web-user-confirm-message">
+                <article class="web-message-center">
+                    <h1>
+                    	 <spring:message code="error.pagenotfound" />
+                   	</h1>
+                </article>
+            </section>
+        </article>
+    </div>
+</div>

File enme-war/enme-views/src/main/webapp/WEB-INF/views/error/mobile/css.jsp

+<%@ include file="/WEB-INF/jsp/includes/taglibs.jsp"%>
+<c:if test="${!development}">
+	<link rel="stylesheet"  href="<c:url value="/resources/css/home.min.web.css" />" />
+</c:if>
+
+<c:if test="${development}">
+	<link rel="stylesheet"  href="<c:url value="/resources/dev/sections/web/home.css" />" />
+</c:if>

File enme-war/enme-views/src/main/webapp/WEB-INF/views/error/tiles.xml

     <definition name="404" extends="page">
         <put-attribute name="title" value="Page not Found | encuestame" />
         <put-attribute name="content" expression="/WEB-INF/views/error/${detectedDevice ? 'mobile/' : 'web/'}404.jsp" />
+        <put-attribute name="css_module" expression="/WEB-INF/views/error/${detectedDevice ? 'mobile/' : 'web/'}css.jsp" />
     </definition>
 
      <definition name="error" extends="errorPage">
         <put-attribute name="title" value="Error | encuestame" />
         <put-attribute name="content" expression="/WEB-INF/views/error/${detectedDevice ? 'mobile/' : 'web/'}error.jsp" />
+        <put-attribute name="css_module" expression="/WEB-INF/views/error/${detectedDevice ? 'mobile/' : 'web/'}css.jsp" />
     </definition>
 
      <definition name="error/denied" extends="errorPage">
         <put-attribute name="title" value="Error | encuestame" />
         <put-attribute name="content" expression="/WEB-INF/views/error/${detectedDevice ? 'mobile/' : 'web/'}denied.jsp" />
+        <put-attribute name="css_module" expression="/WEB-INF/views/error/${detectedDevice ? 'mobile/' : 'web/'}css.jsp" />
     </definition>
 
 </tiles-definitions>

File enme-war/enme-views/src/main/webapp/WEB-INF/views/error/web/css.jsp

+<%@ include file="/WEB-INF/jsp/includes/taglibs.jsp"%>
+<c:if test="${!development}">
+	<link rel="stylesheet"  href="<c:url value="/resources/css/home.min.web.css" />" />
+</c:if>
+
+<c:if test="${development}">
+	<link rel="stylesheet"  href="<c:url value="/resources/dev/sections/web/home.css" />" />
+</c:if>