diff options
Diffstat (limited to 'src/main/resources/webapp/WEB-INF/tags')
3 files changed, 61 insertions, 0 deletions
diff --git a/src/main/resources/webapp/WEB-INF/tags/common/footer.tagx b/src/main/resources/webapp/WEB-INF/tags/common/footer.tagx new file mode 100644 index 0000000..7f686ee --- /dev/null +++ b/src/main/resources/webapp/WEB-INF/tags/common/footer.tagx @@ -0,0 +1,9 @@ +<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"> + <footer id="footer"> + <div class="container"> + + <p>Footer, yo!</p> + + </div> + </footer> +</jsp:root> diff --git a/src/main/resources/webapp/WEB-INF/tags/common/head.tagx b/src/main/resources/webapp/WEB-INF/tags/common/head.tagx new file mode 100755 index 0000000..f651c2b --- /dev/null +++ b/src/main/resources/webapp/WEB-INF/tags/common/head.tagx @@ -0,0 +1,42 @@ +<!--suppress JspAbsolutePathInspection --> +<jsp:root version="2.0" xmlns:jsp="http://java.sun.com/JSP/Page" + xmlns:c="http://java.sun.com/jsp/jstl/core"> + <jsp:output omit-xml-declaration="yes"/> + <jsp:directive.attribute name="title" type="java.lang.String" required="false"/> + <jsp:directive.attribute name="app" type="java.lang.String" required="false"/> + + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <title><c:if test="${not empty title }">${title } - </c:if>Yeah</title> + + <meta name="viewport" content="width=device-width, initial-scale=1.0"/> + <link type="text/css" rel="stylesheet" href="/external/bootstrap-2.2.2/css/bootstrap.css"/> + <link type="text/css" rel="stylesheet" href="/external/bootstrap-2.2.2/css/bootstrap-responsive.css"/> + <link type="text/css" rel="stylesheet" href="/external/angular-ui/ng-grid-1.5.0/ng-grid.css"/> + <link type="text/css" rel="stylesheet" href="/apps/app.css"/> + + <script type="text/javascript" src="/external/headjs-0.99/head.min.js"><!-- --></script> + <script type="text/javascript"> + head.js( + {jquery: "/external/jquery-1.8.3/jquery-1.8.3.js"}, + {angularjs: "/external/angular-1.0.3/angular.js"}, + {angularjsResource: "/external/angular-1.0.3/angular-resource.js"}, + {angularUiNgGrid: "/external/angular-ui/ng-grid-1.6.0/ng-grid-1.6.0.debug.js"}, + {underscore: "/external/underscore-1.4.3/underscore.js"}, + {datejs: "/external/datejs-Alpha1/date.js"}, + {app: "/apps/app.js"}, + {PagingTableService: "/apps/core/PagingTableService.js"} + ); + </script> + <script>var noCache = new Date().getTime();</script> + + <jsp:doBody/> + + <script type="text/javascript"> + head.ready(function() { + angular.bootstrap(document, [<c:out value="${app}"/>]); + }); + </script> + </head> + +</jsp:root> diff --git a/src/main/resources/webapp/WEB-INF/tags/common/headjs.tagx b/src/main/resources/webapp/WEB-INF/tags/common/headjs.tagx new file mode 100644 index 0000000..4e39e63 --- /dev/null +++ b/src/main/resources/webapp/WEB-INF/tags/common/headjs.tagx @@ -0,0 +1,10 @@ +<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" + xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"> + <jsp:directive.tag body-content="empty"/> + <jsp:directive.attribute name="label" type="java.lang.String" required="true"/> + <jsp:directive.attribute name="resource" type="java.lang.String" required="true"/> + + <script type="text/javascript"> + head.js({'${label}':'<c:out value="${resource}"/>?noCache=' + noCache}); + </script> +</jsp:root> |