2012-06-30 19:20:09 +02:00
|
|
|
<%@ page import="com.wisemapping.security.Utils" %>
|
|
|
|
<%@ page import="com.wisemapping.model.User" %>
|
2012-06-30 07:26:21 +02:00
|
|
|
<%@page pageEncoding="UTF-8" %>
|
|
|
|
<%@ include file="/jsp/init.jsp" %>
|
|
|
|
|
2012-04-02 19:11:28 +02:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
|
2012-08-16 02:28:51 +02:00
|
|
|
<%--@elvariable id="mindmap" type="com.wisemapping.model.Mindmap"--%>
|
2009-06-07 20:59:43 +02:00
|
|
|
<%--@elvariable id="editorTryMode" type="java.lang.Boolean"--%>
|
2012-04-05 19:18:13 +02:00
|
|
|
<%--@elvariable id="editorTryMode" type="java.lang.String"--%>
|
|
|
|
<%--@elvariable id="mapXml" type="com.wisemapping.model.User"--%>
|
2012-11-10 21:19:28 +01:00
|
|
|
<%--@elvariable id="lockInfo" type="com.wisemapping.service.LockInfo"--%>
|
2009-06-07 20:59:43 +02:00
|
|
|
<html>
|
|
|
|
<head>
|
2012-11-04 22:17:32 +01:00
|
|
|
<base href="${requestScope['site.baseurl']}/">
|
2012-08-30 01:17:35 +02:00
|
|
|
<title><spring:message code="SITE.TITLE"/> - <c:out value="${mindmap.title}"/></title>
|
2011-03-13 17:24:26 +01:00
|
|
|
<!--[if lt IE 9]>
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
|
|
|
<![endif]-->
|
2012-02-20 15:32:37 +01:00
|
|
|
<link rel="stylesheet/less" type="text/css" href="css/editor.less"/>
|
|
|
|
<script type='text/javascript' src='js/mootools-core.js'></script>
|
|
|
|
<script type='text/javascript' src='js/mootools-more.js'></script>
|
|
|
|
<script type='text/javascript' src='js/core.js'></script>
|
|
|
|
<script type='text/javascript' src='js/less.js'></script>
|
2009-06-07 20:59:43 +02:00
|
|
|
|
2012-02-20 15:32:37 +01:00
|
|
|
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
|
|
|
|
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
|
2011-10-02 17:22:09 +02:00
|
|
|
|
2011-10-15 07:52:44 +02:00
|
|
|
<script type="text/javascript">
|
2011-10-02 17:22:09 +02:00
|
|
|
|
2012-07-01 22:56:31 +02:00
|
|
|
$(document).addEvent('loadcomplete', function (resource) {
|
2012-09-23 02:34:43 +02:00
|
|
|
try {
|
|
|
|
var mapId = '${mindmap.id}';
|
|
|
|
var mapXml = '${mindmap.xmlAsJsLiteral}';
|
2012-02-04 16:51:50 +01:00
|
|
|
|
2012-09-23 02:34:43 +02:00
|
|
|
// Configure designer options ...
|
|
|
|
var options = loadDesignerOptions();
|
2012-10-05 01:28:59 +02:00
|
|
|
<c:if test="${!memoryPersistence && !readOnlyMode}">
|
|
|
|
options.persistenceManager = new mindplot.RESTPersistenceManager(
|
|
|
|
{
|
2012-11-10 21:19:28 +01:00
|
|
|
saveUrl:"c/restful/maps/{id}/document",
|
|
|
|
revertUrl:"c/restful/maps/{id}/history/latest",
|
|
|
|
lockUrl:"c/restful/maps/{id}/lock",
|
2012-10-05 01:28:59 +02:00
|
|
|
timestamp: ${lockTimestamp},
|
|
|
|
session: ${lockSession}
|
|
|
|
}
|
|
|
|
);
|
2012-11-10 21:19:28 +01:00
|
|
|
|
2012-08-24 03:07:37 +02:00
|
|
|
</c:if>
|
2012-09-23 02:34:43 +02:00
|
|
|
var userOptions = ${mindmap.properties};
|
|
|
|
options.zoom = userOptions.zoom;
|
|
|
|
options.readOnly = ${!!readOnlyMode};
|
|
|
|
options.locale = '${locale}';
|
2012-02-04 16:51:50 +01:00
|
|
|
|
2012-09-23 02:34:43 +02:00
|
|
|
// Set map id ...
|
|
|
|
options.mapId = mapId;
|
2012-04-05 05:01:51 +02:00
|
|
|
|
2012-09-23 02:34:43 +02:00
|
|
|
// Build designer ...
|
|
|
|
var designer = buildDesigner(options);
|
2012-02-04 16:51:50 +01:00
|
|
|
|
2012-09-23 02:34:43 +02:00
|
|
|
// Load map from XML ...
|
|
|
|
var parser = new DOMParser();
|
|
|
|
var domDocument = parser.parseFromString(mapXml, "text/xml");
|
2012-05-27 23:15:46 +02:00
|
|
|
|
2012-09-23 02:34:43 +02:00
|
|
|
var mindmap = mindplot.PersistenceManager.loadFromDom(mapId, domDocument);
|
|
|
|
designer.loadMap(mindmap);
|
|
|
|
} catch (e) {
|
|
|
|
logStackTrace(e);
|
|
|
|
throw e;
|
|
|
|
}
|
2012-11-08 00:14:07 +01:00
|
|
|
|
|
|
|
<c:if test="${mindmapLocked}">
|
2012-11-10 21:19:28 +01:00
|
|
|
$notify("<spring:message code="MINDMAP_LOCKED" arguments="${lockInfo.user.fullName},${lockInfo.user.email}"/>", false);
|
2012-11-08 00:14:07 +01:00
|
|
|
</c:if>
|
2011-10-02 17:22:09 +02:00
|
|
|
});
|
2012-11-08 00:14:07 +01:00
|
|
|
|
2012-02-04 16:51:50 +01:00
|
|
|
</script>
|
2012-09-23 15:26:26 +02:00
|
|
|
<%@ include file="/jsp/googleAnalytics.jsf" %>
|
2009-06-07 20:59:43 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
2011-10-03 02:05:17 +02:00
|
|
|
<div id="actionsContainer"></div>
|
2009-06-07 20:59:43 +02:00
|
|
|
|
2011-10-15 03:56:20 +02:00
|
|
|
<div id="header">
|
|
|
|
<div id="headerInfo">
|
|
|
|
<div id="headerActions">
|
2012-08-27 19:13:27 +02:00
|
|
|
<c:if test="${!memoryPersistence}">
|
2011-10-15 03:56:20 +02:00
|
|
|
|
2012-08-27 19:13:27 +02:00
|
|
|
<spring:message code="WELCOME"/>, ${principal.firstname} |
|
|
|
|
<span><a href="c/maps/"><spring:message code="MY_WISEMAPS"/></a></span> |
|
|
|
|
<span><a href="c/keyboard" id="keyboardShortcuts"><spring:message code="SHORTCUTS"/></a></span> |
|
|
|
|
<span><a href="c/logout" title="<spring:message code="LOGOUT"/>"><spring:message
|
|
|
|
code="LOGOUT"/></a></span>
|
|
|
|
</c:if>
|
|
|
|
<c:if test="${memoryPersistence}">
|
|
|
|
<span><a href="c/keyboard" id="keyboardShortcuts"><spring:message code="SHORTCUTS"/></a></span> |
|
2012-08-30 01:17:35 +02:00
|
|
|
<span><a href="c/user/registration" title="<spring:message code="REGISTER"/>"><spring:message
|
|
|
|
code="REGISTER"/></a></span>
|
2012-08-27 19:13:27 +02:00
|
|
|
</c:if>
|
2009-06-11 19:43:45 +02:00
|
|
|
</div>
|
2012-09-01 19:30:32 +02:00
|
|
|
<a href="${requestScope['site.homepage']}">
|
2011-10-15 07:52:44 +02:00
|
|
|
<div id="headerLogo"></div>
|
|
|
|
</a>
|
|
|
|
|
2012-08-30 01:17:35 +02:00
|
|
|
<div id="headerMapTitle"><spring:message code="NAME"/>: <span><c:out value="${mindmap.title}"/></span></div>
|
2011-10-15 03:56:20 +02:00
|
|
|
</div>
|
2012-06-17 07:51:01 +02:00
|
|
|
<%@ include file="/jsp/mindmapEditorToolbar.jsf" %>
|
2011-10-15 03:56:20 +02:00
|
|
|
</div>
|
2009-06-07 20:59:43 +02:00
|
|
|
|
2012-06-25 02:51:04 +02:00
|
|
|
<div id="mindplot" onselectstart="return false;"></div>
|
2012-02-20 15:32:37 +01:00
|
|
|
<script type="text/javascript" src="js/editor.js"></script>
|
2012-11-08 00:14:07 +01:00
|
|
|
|
2012-11-17 19:57:02 +01:00
|
|
|
<c:if test="${requestScope['google.ads.enabled'] && !memoryPersistence && !readOnlyMode}">
|
2012-11-17 21:47:11 +01:00
|
|
|
<div style="position: absolute;width:470px;height: 62px;z-index: 100;right: 10px; bottom: 10px">
|
|
|
|
<script type="text/javascript"><!--
|
|
|
|
google_ad_client = "ca-pub-7564778578019285";
|
|
|
|
/* Wisemapping Editor Banner */
|
|
|
|
google_ad_slot = "6147489273";
|
|
|
|
google_ad_width = 468;
|
|
|
|
google_ad_height = 60;
|
|
|
|
//-->
|
2012-11-17 19:43:06 +01:00
|
|
|
</script>
|
2012-11-17 21:47:11 +01:00
|
|
|
<div>
|
|
|
|
<script type="text/javascript"
|
|
|
|
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
|
|
|
|
</script>
|
|
|
|
</div>
|
2012-11-17 19:43:06 +01:00
|
|
|
</div>
|
2012-11-17 21:47:11 +01:00
|
|
|
</c:if>
|
2009-06-07 20:59:43 +02:00
|
|
|
</body>
|
|
|
|
</html>
|