aboutsummaryrefslogtreecommitdiff
path: root/src/main/webapp/WEB-INF/tags/common/head-element.tagx
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/webapp/WEB-INF/tags/common/head-element.tagx')
-rw-r--r--src/main/webapp/WEB-INF/tags/common/head-element.tagx34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/main/webapp/WEB-INF/tags/common/head-element.tagx b/src/main/webapp/WEB-INF/tags/common/head-element.tagx
new file mode 100644
index 0000000..5321612
--- /dev/null
+++ b/src/main/webapp/WEB-INF/tags/common/head-element.tagx
@@ -0,0 +1,34 @@
+<!--suppress JspAbsolutePathInspection -->
+<jsp:root version="2.0"
+ xmlns:c="http://java.sun.com/jsp/jstl/core"
+ xmlns:jsp="http://java.sun.com/JSP/Page">
+ <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>
+
+ <link type="text/css" rel="stylesheet" href="/external/bootstrap-2.2.2/css/bootstrap.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.js"},
+ {angularjs: "/external/angular-1.0.3/angular.js"},
+ {angularjsResource: "/external/angular-1.0.3/angular-resource.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>