diff -r eb5f2313ce2b -r 4f458e6d32bd client/js/renderer/scene.js
--- a/client/js/renderer/scene.js Sat Apr 18 16:55:15 2015 +0200
+++ b/client/js/renderer/scene.js Sat Apr 18 16:56:37 2015 +0200
@@ -10,7 +10,7 @@
this.renkan = _renkan;
this.$ = $(".Rk-Render");
this.representations = [];
- this.$.html(this.template(_renkan));
+ this.$.html(_renkan.options.templates['templates/scene.html'](_renkan));
this.onStatusChange();
this.canvas_$ = this.$.find(".Rk-Canvas");
this.labels_$ = this.$.find(".Rk-Labels");
@@ -29,7 +29,7 @@
this.buttons_layer = new paper.Layer();
this.delete_list = [];
this.redrawActive = true;
-
+
if (_renkan.options.show_minimap) {
this.minimap = {
background_layer: new paper.Layer(),
@@ -489,37 +489,6 @@
};
_(Scene.prototype).extend({
- template: _.template(
- '<% if (options.show_top_bar) { %>
<% if (!options.editor_mode) { %>
<%- project.get("title") || translate("Untitled project")%>
' +
- '<% } else { %>
" placeholder="<%-translate("Untitled project")%>" /><% } %>' +
- '<% if (options.show_user_list) { %>
<% if (options.show_user_color) { %>
<% if (options.user_color_editable) { %><% } %>' +
- '<% if (options.user_color_editable) { print(colorPicker) } %>
<% } %>
<unknown user><% } %>' +
- '<% if (options.home_button_url) {%>
<% } %>' +
- '<% if (options.show_fullscreen_button) { %>
<% } %>' +
- '<% if (options.editor_mode) { %>' +
- '<% if (options.show_addnode_button) { %>
<% } %>' +
- '<% if (options.show_addedge_button) { %>
<% } %>' +
- '<% if (options.show_export_button) { %>
<% } %>' +
- '<% if (options.show_save_button) { %>
<% } %>' +
- '<% if (options.show_open_button) { %>
<% } %>' +
- '<% if (options.show_bookmarklet) { %>
<% } %>' +
- '<% } else { %>' +
- '<% if (options.show_export_button) { %>
<% } %>' +
- '<% };' +
- 'if (options.show_search_field) { %>' +
- '
<% } %>
<% } %>' +
- '