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) {%>
' + - '<%- translate(options.home_button_title) %>
<% } %>' + - '<% if (options.show_fullscreen_button) { %>
<%-translate("Full Screen")%>
<% } %>' + - '<% if (options.editor_mode) { %>' + - '<% if (options.show_addnode_button) { %>
' + - '
<%-translate("Add Node")%>
<% } %>' + - '<% if (options.show_addedge_button) { %>
' + - '
<%-translate("Add Edge")%>
<% } %>' + - '<% if (options.show_export_button) { %>
<%-translate("Download Project")%>
<% } %>' + - '<% if (options.show_save_button) { %>
<% } %>' + - '<% if (options.show_open_button) { %>
<%-translate("Open Project")%>
<% } %>' + - '<% if (options.show_bookmarklet) { %>
' + - '<%-translate("Renkan \'Drag-to-Add\' bookmarklet")%>
<% } %>' + - '<% } else { %>' + - '<% if (options.show_export_button) { %>
<%-translate("Download Project")%>
<% } %>' + - '<% };' + - 'if (options.show_search_field) { %>' + - '
" />
<% } %>
<% } %>' + - '
' + - '
resize="" <% } %>>
' + - '<% if (options.show_bins) { %>
«
<% } %>' + - '<% if (options.show_zoom) { %>
">
">
">
' + - '<% if (options.editor_mode && options.save_view) { %>
">
<% } %>' + - '<% if (options.save_view) { %>
">
<% } %>
<% } %>' + - '
' - ), fixSize: function() { if( this.renkan.options.default_view && this.renkan.project.get("views").length > 0) { var view = this.renkan.project.get("views").last();