1 <%@attribute name="title" required="false"%>
2 <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
3 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
4 <%@ tag import="com.google.gson.Gson" %>
9 <base href="${config.issuer}">
11 <meta charset="utf-8">
12 <title>Simple Web App - ${title}</title>
13 <meta name="viewport" content="width=device-width, initial-scale=1.0">
14 <meta name="description" content="">
15 <meta name="author" content="">
18 <link href="static/oid-connect/bootstrap2/css/bootstrap.css" rel="stylesheet">
19 <link href="static/oid-connect/bootstrap2/css/bootstrap-responsive.css" rel="stylesheet">
21 <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
23 <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
26 <!-- Load jQuery up here so that we can use in-page functions -->
27 <script type="text/javascript" src="static/oid-connect/js/lib/jquery.js"></script>
28 <script type="text/javascript">
29 // safely set the title of the application
30 function setPageTitle(title) {
31 document.title = "${config.topbarTitle} - " + title;
34 // get the info of the current user, if available (null otherwise)
35 function getUserInfo() {
36 return ${userInfoJson};
39 // get the authorities of the current user, if available (null otherwise)
40 function getUserAuthorities() {
41 return ${userAuthorities};
44 // is the current user an admin?
45 // NOTE: this is just for
47 var auth = getUserAuthorities();
48 if (auth && _.contains(auth, "ROLE_ADMIN")) {