<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>

<!DOCTYPE html>
<html lang="en">
    <head>
        <title>ScrumFriend</title>

        <!-- jquery -->
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>

        <!-- bootstrap -->
        <spring:url value="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" var="bootstrapCss" />
        <link rel="stylesheet" href="${bootstrapCss}" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">

        <spring:url value="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" var="bootstrapJs" />
        <script src="${bootstrapJs}" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>

        <!-- pages -->
        <spring:url value="/resources/static/js/header.js" var="headerJs" />
        <spring:url value="/resources/static/js/footer.js" var="footerJs" />
        <script src="${headerJs}"></script>
        <script src="${footerJs}"></script>

        <spring:url value="/resources/static/css/header.css" var="headerCss" />
        <spring:url value="/resources/static/css/footer.css" var="footerCss" />
        <link href="${headerCss}" rel="stylesheet" />
        <link href="${footerCss}" rel="stylesheet" />

        <!-- drag and drop -->
        <spring:url value="/resources/static/js/lib/jquery-ui/jquery-ui.min.js" var="jqueryUiJs" />
        <spring:url value="/resources/static/css/lib/jquery-ui/jquery-ui.min.css" var="jqueryUiCss" />
        <link href="${jqueryUiCss}" rel="stylesheet" />
        <script src="${jqueryUiJs}"></script>

        <!-- toolbar -->
        <link href="http://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.1/summernote.css" rel="stylesheet">
        <script src="http://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.1/summernote.js"></script>
    </head>

    <body>
        <tiles:insertAttribute name="header" />

        <div id="body">
            <tiles:insertAttribute name="body" />
        </div>

        <tiles:insertAttribute name="footer" />
    </body>
</html>