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
11 * Oliver Kopp - initial API and implementation and/or initial documentation
12 *******************************************************************************/
14 <%@page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
15 <%@page buffer="none" %>
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"%>
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"%>
29 <meta name="application-name" content="Winery" />
30 <meta charset="UTF-8">
31 <link rel="icon" href="${w:topologyModelerURI()}/favicon.png" type="image/png">
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" />
36 <script type='text/javascript' src='${pageContext.request.contextPath}/components/requirejs/require.js'></script>
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>
44 baseUrl: "${pageContext.request.contextPath}/js",
46 "datatables": "../components/datatables/media/js/jquery.dataTables",
47 "jquery": "../components/jquery/jquery",
49 // required for jsplumb
50 "jquery.ui": "../3rdparty/jquery-ui/js/jquery-ui",
52 "jsplumb": "../components/jsPlumb/dist/js/jquery.jsPlumb-1.5.4",
54 "winery-sugiyamaLayouter": "${w:topologyModelerURI()}/js/winery-sugiyamaLayouter"
58 <c:if test="${not empty it.additionalScript}">
59 <script type='text/javascript' src='${it.additionalScript}'></script>
64 <t:topologyTemplateRenderer topology="${it.topologyTemplate}" repositoryURL="<%=Prefs.INSTANCE.getResourcePath()%>" client="${it.client}" fullscreen="true" additonalCSS="${it.additonalCSS}" autoLayoutOnLoad="${it.autoLayoutOnLoad}"/>