diff options
Diffstat (limited to 'src/main/resources/webapp/WEB-INF/tags/common/head.tagx')
-rwxr-xr-x | src/main/resources/webapp/WEB-INF/tags/common/head.tagx | 42 |
1 files changed, 42 insertions, 0 deletions
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> |