2012-06-30 14:20:09 -03:00
|
|
|
<%@ page import="com.wisemapping.security.Utils" %>
|
|
|
|
<%@ page import="com.wisemapping.model.User" %>
|
2012-06-30 02:26:21 -03:00
|
|
|
<%@page pageEncoding="UTF-8" %>
|
|
|
|
<%@ include file="/jsp/init.jsp" %>
|
|
|
|
|
2012-04-02 14:11:28 -03:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
|
2012-08-15 21:28:51 -03:00
|
|
|
<%--@elvariable id="mindmap" type="com.wisemapping.model.Mindmap"--%>
|
2009-06-07 18:59:43 +00:00
|
|
|
<%--@elvariable id="editorTryMode" type="java.lang.Boolean"--%>
|
2012-04-05 14:18:13 -03:00
|
|
|
<%--@elvariable id="editorTryMode" type="java.lang.String"--%>
|
|
|
|
<%--@elvariable id="mapXml" type="com.wisemapping.model.User"--%>
|
2009-06-07 18:59:43 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
2012-06-24 20:03:25 -03:00
|
|
|
<base href="${baseURL}/">
|
2012-04-02 14:11:28 -03:00
|
|
|
<title><spring:message code="SITE.TITLE"/> - ${mindmap.title} </title>
|
2011-03-13 16:24:26 +00:00
|
|
|
<!--[if lt IE 9]>
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
|
|
|
<![endif]-->
|
2012-02-20 11:32:37 -03: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 18:59:43 +00:00
|
|
|
|
2012-02-20 11:32:37 -03: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 12:22:09 -03:00
|
|
|
|
2011-10-15 02:52:44 -03:00
|
|
|
<script type="text/javascript">
|
2011-10-02 12:22:09 -03:00
|
|
|
|
2012-07-01 17:56:31 -03:00
|
|
|
$(document).addEvent('loadcomplete', function (resource) {
|
2012-02-04 12:51:50 -03:00
|
|
|
var mapId = '${mindmap.id}';
|
2012-04-05 14:18:13 -03:00
|
|
|
var mapXml = '${mindmap.xmlAsJsLiteral}';
|
2012-02-04 12:51:50 -03:00
|
|
|
|
|
|
|
// Configure designer options ...
|
|
|
|
var options = loadDesignerOptions();
|
2012-07-04 02:15:55 -03:00
|
|
|
options.persistenceManager = new mindplot.RESTPersistenceManager("service/maps/{id}/document","service/maps/{id}/history/latest");
|
2012-02-04 12:51:50 -03:00
|
|
|
var userOptions = ${mindmap.properties};
|
|
|
|
options.zoom = userOptions.zoom;
|
2012-06-17 12:24:09 -03:00
|
|
|
options.readOnly = ${!!readOnlyMode};
|
2012-07-01 17:54:46 -03:00
|
|
|
options.locale = '${locale}';
|
2012-02-04 12:51:50 -03:00
|
|
|
|
2012-04-05 00:01:51 -03:00
|
|
|
// Set map id ...
|
|
|
|
options.mapId = mapId;
|
|
|
|
|
2012-02-04 12:51:50 -03:00
|
|
|
// Build designer ...
|
|
|
|
var designer = buildDesigner(options);
|
|
|
|
|
|
|
|
// Load map from XML ...
|
2012-05-27 18:15:46 -03:00
|
|
|
var parser = new DOMParser();
|
|
|
|
var domDocument = parser.parseFromString(mapXml, "text/xml");
|
|
|
|
|
2012-07-06 00:46:54 -03:00
|
|
|
var mindmap = mindplot.PersistenceManager.loadFromDom(mapId, domDocument);
|
2012-02-04 12:51:50 -03:00
|
|
|
designer.loadMap(mindmap);
|
2011-10-02 12:22:09 -03:00
|
|
|
});
|
2012-02-04 12:51:50 -03:00
|
|
|
</script>
|
2009-06-07 18:59:43 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
2011-10-02 21:05:17 -03:00
|
|
|
<div id="actionsContainer"></div>
|
2009-06-07 18:59:43 +00:00
|
|
|
|
2011-10-14 22:56:20 -03:00
|
|
|
<div id="header">
|
|
|
|
<div id="headerInfo">
|
|
|
|
<div id="headerActions">
|
|
|
|
|
2012-07-02 00:06:26 -03: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>
|
2009-06-11 17:43:45 +00:00
|
|
|
</div>
|
2012-06-17 21:43:34 -03:00
|
|
|
<a href="c/maps/">
|
2011-10-15 02:52:44 -03:00
|
|
|
<div id="headerLogo"></div>
|
|
|
|
</a>
|
|
|
|
|
2012-06-30 16:26:31 -03:00
|
|
|
<div id="headerMapTitle"><spring:message code="NAME"/>: <span>${mindmap.title}</span></div>
|
2011-10-14 22:56:20 -03:00
|
|
|
</div>
|
2012-06-17 02:51:01 -03:00
|
|
|
<%@ include file="/jsp/mindmapEditorToolbar.jsf" %>
|
2011-10-14 22:56:20 -03:00
|
|
|
</div>
|
2009-06-07 18:59:43 +00:00
|
|
|
|
2012-06-24 21:51:04 -03:00
|
|
|
<div id="mindplot" onselectstart="return false;"></div>
|
2012-02-20 11:32:37 -03:00
|
|
|
<script type="text/javascript" src="js/editor.js"></script>
|
2009-06-07 18:59:43 +00:00
|
|
|
</body>
|
|
|
|
</html>
|