789c17427c1421acfd6280bdd525b9e1295a96dc
[vfc/nfvo/wfengine.git] /
1 <%--
2 /*******************************************************************************
3  * Copyright (c) 2013 University of Stuttgart.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * and the Apache License 2.0 which both accompany this distribution,
7  * and are available at http://www.eclipse.org/legal/epl-v10.html
8  * and http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Contributors:
11  *    Oliver Kopp - initial API and implementation and/or initial documentation
12  *******************************************************************************/
13 --%>
14 <%@page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
15 <%@page buffer="none" %>
16
17 <%@page import="org.eclipse.winery.common.interfaces.IWineryRepository"%>
18 <%@page import="org.eclipse.winery.repository.Prefs" %>
19 <%@page import="org.eclipse.winery.repository.client.WineryRepositoryClientFactory"%>
20 <%@page import="org.eclipse.winery.repository.client.IWineryRepositoryClient"%>
21 <%@page import="org.eclipse.winery.repository.client.WineryRepositoryClient"%>
22
23 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
24 <%@taglib prefix="t" tagdir="/WEB-INF/tags" %>
25 <%@taglib prefix="w" uri="http://www.eclipse.org/winery/repository/functions"%>
26
27 <html>
28 <head>
29         <meta name="application-name" content="Winery" />
30         <meta charset="UTF-8">
31         <link rel="icon" href="${w:topologyModelerURI()}/favicon.png" type="image/png">
32
33         <link rel="stylesheet" href="${pageContext.request.contextPath}/components/bootstrap/dist/css/bootstrap.css" />
34         <link rel="stylesheet" href="${pageContext.request.contextPath}/components/bootstrap/dist/css/bootstrap-theme.css" />
35
36         <script type='text/javascript' src='${pageContext.request.contextPath}/components/requirejs/require.js'></script>
37
38         <!-- jquery and jquery UI have to be loaded using the old fashioned way to avoid incompatibilities with bootstrap v3 -->
39         <script type='text/javascript' src='${pageContext.request.contextPath}/components/jquery/jquery.js'></script>
40         <script type='text/javascript' src='${pageContext.request.contextPath}/3rdparty/jquery-ui/js/jquery-ui.js'></script>
41         <script type='text/javascript' src='${pageContext.request.contextPath}/components/bootstrap/dist/js/bootstrap.js'></script>
42         <script>
43                 require.config({
44                         baseUrl: "${pageContext.request.contextPath}/js",
45                         paths: {
46                                 "datatables": "../components/datatables/media/js/jquery.dataTables",
47                                 "jquery": "../components/jquery/jquery",
48
49                                 // required for jsplumb
50                                 "jquery.ui": "../3rdparty/jquery-ui/js/jquery-ui",
51
52                                 "jsplumb": "../components/jsPlumb/dist/js/jquery.jsPlumb-1.5.4",
53
54                                 "winery-sugiyamaLayouter": "${w:topologyModelerURI()}/js/winery-sugiyamaLayouter"
55                         }
56                 });
57         </script>
58         <c:if test="${not empty it.additionalScript}">
59         <script type='text/javascript' src='${it.additionalScript}'></script>
60         </c:if>
61 </head>
62 <body>
63
64 <t:topologyTemplateRenderer topology="${it.topologyTemplate}" repositoryURL="<%=Prefs.INSTANCE.getResourcePath()%>" client="${it.client}" fullscreen="true" additonalCSS="${it.additonalCSS}" autoLayoutOnLoad="${it.autoLayoutOnLoad}"/>
65
66 </body>
67 </html>