server/java/renkan-web/src/main/webapp/WEB-INF/templates/renkanProjectEdit.html
author rougeronj
Mon, 22 Dec 2014 12:38:16 +0100
changeset 350 0b6f2883a67b
parent 316 242510015401
child 394 1e60ba9ae38b
permissions -rw-r--r--
update path to the new lib folders
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
47
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
<!DOCTYPE html>
224
0167b777ad15 remove deprecated warnings + fix date picker default langauge
ymh <ymh.work@gmail.com>
parents: 127
diff changeset
     2
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" th:lang="${#ctx.getLocale().toLanguageTag()}">
47
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
    <head>
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
        <meta charset="utf-8" />
51
3247fccfbd3f update on renkan
ymh <ymh.work@gmail.com>
parents: 47
diff changeset
     5
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
47
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
127
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents: 126
diff changeset
     7
        
59
69924ca1b233 add a favicon
ymh <ymh.work@gmail.com>
parents: 58
diff changeset
     8
        <title>RENKAN</title>
47
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
        <meta name="description" content="" />
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
        <meta name="author" content="Institut de Recherche et d'Innovation" />
127
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents: 126
diff changeset
    11
        <link rel="icon" href="../../static/img/favicon.ico" th:href="@{/static/img/favicon.ico}" type="image/x-icon" />
350
0b6f2883a67b update path to the new lib folders
rougeronj
parents: 316
diff changeset
    12
        <script src="lib/jquery/jquery.js" th:src="@{/static/lib/jquery/jquery.js}" ></script>
0b6f2883a67b update path to the new lib folders
rougeronj
parents: 316
diff changeset
    13
        <script src="lib/jquery-mousewheel/jquery.mousewheel.js" th:src="@{/static/lib/jquery-mousewheel/jquery.mousewheel.js}"></script>
0b6f2883a67b update path to the new lib folders
rougeronj
parents: 316
diff changeset
    14
        <script src="lib/underscore/underscore.js" th:src="@{/static/lib/underscore/underscore.js}"></script>
0b6f2883a67b update path to the new lib folders
rougeronj
parents: 316
diff changeset
    15
        <script src="lib/backbone/backbone.js" th:src="@{/static/lib/backbone/backbone.js}"></script>
0b6f2883a67b update path to the new lib folders
rougeronj
parents: 316
diff changeset
    16
        <script src="lib/backbone-relational/backbone-relational.js" th:src="@{/static/lib/backbone-relational/backbone-relational.js}"></script>
0b6f2883a67b update path to the new lib folders
rougeronj
parents: 316
diff changeset
    17
        <script src="lib/paper/paper-full.js" th:src="@{/static/lib/paper/paper-full.js}"></script>
290
8a6eb26ac87f move client build to Grunt and relocate it into client folder. Adjust server to work with the new build.
ymh <ymh.work@gmail.com>
parents: 257
diff changeset
    18
        <script type="text/javascript" th:inline="javascript">
8a6eb26ac87f move client build to Grunt and relocate it into client folder. Adjust server to work with the new build.
ymh <ymh.work@gmail.com>
parents: 257
diff changeset
    19
        /*<![CDATA[*/
8a6eb26ac87f move client build to Grunt and relocate it into client folder. Adjust server to work with the new build.
ymh <ymh.work@gmail.com>
parents: 257
diff changeset
    20
            var require = {
8a6eb26ac87f move client build to Grunt and relocate it into client folder. Adjust server to work with the new build.
ymh <ymh.work@gmail.com>
parents: 257
diff changeset
    21
                baseUrl: /*[[@{/static/js/}]]*/""
8a6eb26ac87f move client build to Grunt and relocate it into client folder. Adjust server to work with the new build.
ymh <ymh.work@gmail.com>
parents: 257
diff changeset
    22
            };
8a6eb26ac87f move client build to Grunt and relocate it into client folder. Adjust server to work with the new build.
ymh <ymh.work@gmail.com>
parents: 257
diff changeset
    23
        /*]]>*/
8a6eb26ac87f move client build to Grunt and relocate it into client folder. Adjust server to work with the new build.
ymh <ymh.work@gmail.com>
parents: 257
diff changeset
    24
        </script>
8a6eb26ac87f move client build to Grunt and relocate it into client folder. Adjust server to work with the new build.
ymh <ymh.work@gmail.com>
parents: 257
diff changeset
    25
        <script src="js/config.js" th:src="@{/static/js/config.js}"></script>
109
b6b20e8c4a1a configuration changes
ymh <ymh.work@gmail.com>
parents: 97
diff changeset
    26
        <script type="text/javascript" th:inline="javascript">
b6b20e8c4a1a configuration changes
ymh <ymh.work@gmail.com>
parents: 97
diff changeset
    27
            var cowebConfig = {
257
6bf1126c5add add header to go back to space
ymh <ymh.work@gmail.com>
parents: 240
diff changeset
    28
                baseUrl: window.location.protocol + '//' + window.location.host,
6bf1126c5add add header to go back to space
ymh <ymh.work@gmail.com>
parents: 240
diff changeset
    29
                adminUrl : dojoConfig.baseUrl+'ocw_admin',
6bf1126c5add add header to go back to space
ymh <ymh.work@gmail.com>
parents: 240
diff changeset
    30
                debug: /*[[${coweb_debug}]]*/false,
6bf1126c5add add header to go back to space
ymh <ymh.work@gmail.com>
parents: 240
diff changeset
    31
                useWebSockets: /*[[${coweb_websockets}]]*/false
6bf1126c5add add header to go back to space
ymh <ymh.work@gmail.com>
parents: 240
diff changeset
    32
            };
109
b6b20e8c4a1a configuration changes
ymh <ymh.work@gmail.com>
parents: 97
diff changeset
    33
        </script>
54
43c35d6ca3f0 change initialization order.
ymh <ymh.work@gmail.com>
parents: 51
diff changeset
    34
        <script type="text/javascript" src="lib/dojo/dojo.js" data-dojo-config="isDebug: true, parseOnLoad: true" th:src="@{/static/lib/dojo/dojo.js}"></script>                
47
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    35
        <script type="text/javascript" th:inline="javascript">
290
8a6eb26ac87f move client build to Grunt and relocate it into client folder. Adjust server to work with the new build.
ymh <ymh.work@gmail.com>
parents: 257
diff changeset
    36
        /*<![CDATA[*/
8a6eb26ac87f move client build to Grunt and relocate it into client folder. Adjust server to work with the new build.
ymh <ymh.work@gmail.com>
parents: 257
diff changeset
    37
            function startRenkan() {
77
4f2511a70880 add bin config from spaces.
ymh <ymh.work@gmail.com>
parents: 59
diff changeset
    38
            	var renkan_config = {
47
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    39
                    static_url : /*[[@{/static/}]]*/ "",
124
c04232f8cc53 First implementation of status change.
ymh <ymh.work@gmail.com>
parents: 123
diff changeset
    40
                    read_only: true,
47
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    41
                    bins: [
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    42
                        {
80
5295e118320b add link for publish
ymh <ymh.work@gmail.com>
parents: 77
diff changeset
    43
                            type: "Wikipedia",
47
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    44
                            lang: "en",
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    45
                            search: "Digital Humanities"
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    46
                        },
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    47
                        {
80
5295e118320b add link for publish
ymh <ymh.work@gmail.com>
parents: 77
diff changeset
    48
                            type: "Wikipedia",
47
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    49
                            lang: "ja",
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    50
                            search: "Digital Humanities"
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    51
                        },
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    52
                        {
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    53
                            title: "LDT Project",
80
5295e118320b add link for publish
ymh <ymh.work@gmail.com>
parents: 77
diff changeset
    54
                            type: "Ldt",
5295e118320b add link for publish
ymh <ymh.work@gmail.com>
parents: 77
diff changeset
    55
                            ldt_type: "Project",
47
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    56
                            project_id: "67280b1c-ff30-11e0-a82d-00145ea49a02",
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    57
                            ldt_platform: "http://ldt.iri.centrepompidou.fr/"
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    58
                        }
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    59
                    ],
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    60
                    search: [
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    61
                        {
80
5295e118320b add link for publish
ymh <ymh.work@gmail.com>
parents: 77
diff changeset
    62
                            type: "Wikipedia",
47
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    63
                            lang: "fr"
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    64
                        }, 
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    65
                        {
80
5295e118320b add link for publish
ymh <ymh.work@gmail.com>
parents: 77
diff changeset
    66
                            type: "Wikipedia",
47
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    67
                            lang: "en"
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    68
                        }, 
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    69
                        {
80
5295e118320b add link for publish
ymh <ymh.work@gmail.com>
parents: 77
diff changeset
    70
                            type: "Wikipedia",
47
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    71
                            lang: "ja"
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    72
                        }
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    73
                    ],
80
5295e118320b add link for publish
ymh <ymh.work@gmail.com>
parents: 77
diff changeset
    74
                    property_files: [
5295e118320b add link for publish
ymh <ymh.work@gmail.com>
parents: 77
diff changeset
    75
                        /*[[@{/static/data/properties.json}]]*/ "data/properties.json",
5295e118320b add link for publish
ymh <ymh.work@gmail.com>
parents: 77
diff changeset
    76
                    ],
77
4f2511a70880 add bin config from spaces.
ymh <ymh.work@gmail.com>
parents: 59
diff changeset
    77
                };
257
6bf1126c5add add header to go back to space
ymh <ymh.work@gmail.com>
parents: 240
diff changeset
    78
                var space_config = /*[[${space.binConfig}?${space.binConfig}:'{}']]*/"{}";
6bf1126c5add add header to go back to space
ymh <ymh.work@gmail.com>
parents: 240
diff changeset
    79
                space_config = JSON.parse(space_config || "{}");
77
4f2511a70880 add bin config from spaces.
ymh <ymh.work@gmail.com>
parents: 59
diff changeset
    80
                var _renkan = new Rkns.Renkan($.extend({}, renkan_config, space_config));
54
43c35d6ca3f0 change initialization order.
ymh <ymh.work@gmail.com>
parents: 51
diff changeset
    81
                var corenkanConfig = {
257
6bf1126c5add add header to go back to space
ymh <ymh.work@gmail.com>
parents: 240
diff changeset
    82
                    projectId: /*[[${project.id}]]*/"new_project",
6bf1126c5add add header to go back to space
ymh <ymh.work@gmail.com>
parents: 240
diff changeset
    83
                    renkan : _renkan
6bf1126c5add add header to go back to space
ymh <ymh.work@gmail.com>
parents: 240
diff changeset
    84
                };
54
43c35d6ca3f0 change initialization order.
ymh <ymh.work@gmail.com>
parents: 51
diff changeset
    85
257
6bf1126c5add add header to go back to space
ymh <ymh.work@gmail.com>
parents: 240
diff changeset
    86
                require({corenkanConfig: corenkanConfig}, ["corenkan"], function(corenkan) {
54
43c35d6ca3f0 change initialization order.
ymh <ymh.work@gmail.com>
parents: 51
diff changeset
    87
                    corenkan.app.onStatusChange = function(status) {
43c35d6ca3f0 change initialization order.
ymh <ymh.work@gmail.com>
parents: 51
diff changeset
    88
                    };
43c35d6ca3f0 change initialization order.
ymh <ymh.work@gmail.com>
parents: 51
diff changeset
    89
                });
290
8a6eb26ac87f move client build to Grunt and relocate it into client folder. Adjust server to work with the new build.
ymh <ymh.work@gmail.com>
parents: 257
diff changeset
    90
            }
8a6eb26ac87f move client build to Grunt and relocate it into client folder. Adjust server to work with the new build.
ymh <ymh.work@gmail.com>
parents: 257
diff changeset
    91
        /*]]>*/
47
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    92
        </script>
290
8a6eb26ac87f move client build to Grunt and relocate it into client folder. Adjust server to work with the new build.
ymh <ymh.work@gmail.com>
parents: 257
diff changeset
    93
        <script src="js/renkan.js" th:src="@{/static/js/renkan.js}"></script>
257
6bf1126c5add add header to go back to space
ymh <ymh.work@gmail.com>
parents: 240
diff changeset
    94
        <link rel="stylesheet" href="css/renkan.css" th:href="@{/static/css/renkan.css}"/>
6bf1126c5add add header to go back to space
ymh <ymh.work@gmail.com>
parents: 240
diff changeset
    95
        <link rel="stylesheet" href="../../static/css/style.css" th:href="@{/static/css/style.css}"/>
6bf1126c5add add header to go back to space
ymh <ymh.work@gmail.com>
parents: 240
diff changeset
    96
        <link rel="stylesheet" href="../../static/css/renkanProject.css" th:href="@{/static/css/renkanProject.css}"/>
47
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    97
    </head>
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    98
    <body>
257
6bf1126c5add add header to go back to space
ymh <ymh.work@gmail.com>
parents: 240
diff changeset
    99
        <header><a href="/" th:href="@{/}">RENKAN</a>&nbsp;&gt;&nbsp;<a href=".." th:href="@{'/s/'+${space.id}}">Space</a></header>
6bf1126c5add add header to go back to space
ymh <ymh.work@gmail.com>
parents: 240
diff changeset
   100
        <div id="renkan-wrapper">
6bf1126c5add add header to go back to space
ymh <ymh.work@gmail.com>
parents: 240
diff changeset
   101
            <div id="renkan-container">
6bf1126c5add add header to go back to space
ymh <ymh.work@gmail.com>
parents: 240
diff changeset
   102
                <div id="renkan"></div>
6bf1126c5add add header to go back to space
ymh <ymh.work@gmail.com>
parents: 240
diff changeset
   103
            </div>
6bf1126c5add add header to go back to space
ymh <ymh.work@gmail.com>
parents: 240
diff changeset
   104
        </div>
6bf1126c5add add header to go back to space
ymh <ymh.work@gmail.com>
parents: 240
diff changeset
   105
        <footer id="footer" th:include="fragment/pageFragment :: footerFragment">
6bf1126c5add add header to go back to space
ymh <ymh.work@gmail.com>
parents: 240
diff changeset
   106
            <div id="version">© <span class="version-date">2014</span> <a href="http://www.iri.centrepompidou.fr" target="_blanck">IRI</a> - Version <span class="version-version">0.0</span></div>
6bf1126c5add add header to go back to space
ymh <ymh.work@gmail.com>
parents: 240
diff changeset
   107
        </footer>
47
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
   108
    </body>
267d67791e05 first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff changeset
   109
</html>