--- a/server/src/main/webapp/WEB-INF/templates/renkanIndex.html Mon Mar 18 00:00:45 2013 +0100
+++ b/server/src/main/webapp/WEB-INF/templates/renkanIndex.html Mon Mar 18 02:23:37 2013 +0100
@@ -12,9 +12,11 @@
<script src="../../lib/underscore-min.js" th:src="@{/static/lib/underscore-min.js}" ></script>
<script src="../../js/main.js" th:src="@{/static/js/main.js}" ></script>
+ <link href="../../static/css/style.css" rel="stylesheet" th:href="@{/static/css/style.css}"/>
<link href="../../static/css/index.css" rel="stylesheet" th:href="@{/static/css/index.css}"/>
</head>
<body>
+ <div id="container">
<div id="wrapper">
<h1 th:text="#{renkanIndex.renkan_spaces}">Renkan Spaces</h1>
<div id="inner">
@@ -59,39 +61,43 @@
</tbody>
</table>
</div>
- <script th:inline="javascript" >
- /*<![CDATA[*/
-
- function go2Title()
- {
- var renkantitle = $("#renkantitle").val();
- if(renkantitle.length == 0) {
- var alert_message = /*[[#{renkanIndex.js.empty_name_error}]]*/"Please enter a title";
- alert(alert_message);
- return false;
- }
-
- new_space = {
- title: renkantitle,
- description: "(empty description)",
- uri: null
- };
-
- var post_url = /*[[@{/rest/spaces/}]]*/"/rest/spaces/";
- $.ajax(post_url, {
- data:JSON.stringify(new_space),
- type: "POST",
- dataType: "json",
- contentType: "application/json; charset=UTF-8"
- }).done(function(space){
- var template_url = /*[[@{'/s/<%=space_id%>'}]]*/"s/<%=space_id%>";
- window.location = _.template(template_url, {space_id: space.id});
- });
-
- //? window.location = "p/" + renkantitle : alert(/*[[#{renkanIndex.js.empty_name_error}]]*/"Please enter a name");
- }
-
- /*]]>*/
- </script>
+ <div id="footer" th:include="fragment/pageFragment :: footerFragment">
+ <div id="version">© <span class="version-date">2013</span> <a href="http://www.iri.centrepompidou.fr" target="_blanck">IRI</a> - Version <span class="version-version">0.0</span></div>
+ </div>
+ </div>
+ <script th:inline="javascript" >
+ /*<![CDATA[*/
+
+ function go2Title()
+ {
+ var renkantitle = $("#renkantitle").val();
+ if(renkantitle.length == 0) {
+ var alert_message = /*[[#{renkanIndex.js.empty_name_error}]]*/"Please enter a title";
+ alert(alert_message);
+ return false;
+ }
+
+ new_space = {
+ title: renkantitle,
+ description: "(empty description)",
+ uri: null
+ };
+
+ var post_url = /*[[@{/rest/spaces/}]]*/"/rest/spaces/";
+ $.ajax(post_url, {
+ data:JSON.stringify(new_space),
+ type: "POST",
+ dataType: "json",
+ contentType: "application/json; charset=UTF-8"
+ }).done(function(space){
+ var template_url = /*[[@{'/s/<%=space_id%>'}]]*/"s/<%=space_id%>";
+ window.location = _.template(template_url, {space_id: space.id});
+ });
+
+ //? window.location = "p/" + renkantitle : alert(/*[[#{renkanIndex.js.empty_name_error}]]*/"Please enter a name");
+ }
+
+ /*]]>*/
+ </script>
</body>
</html>