diff -r eb5f2313ce2b -r 4f458e6d32bd client/js/renderer/edgeeditor.js --- a/client/js/renderer/edgeeditor.js Sat Apr 18 16:55:15 2015 +0200 +++ b/client/js/renderer/edgeeditor.js Sat Apr 18 16:56:37 2015 +0200 @@ -10,31 +10,11 @@ var EdgeEditor = Utils.inherit(BaseEditor); _(EdgeEditor.prototype).extend({ - template: _.template( - '

×<%-renkan.translate("Edit Edge")%>

' + - '

' + - '<% if (options.show_edge_editor_uri) { %>

' + - '<% if (options.properties.length) { %>

<% } } %>' + - '<% if (options.show_edge_editor_color) { %>
<%-renkan.translate("Edge color:")%>
' + - '<%= renkan.colorPicker %><%- renkan.translate("Choose color") %>
<% } %>' + - '<% if (options.show_edge_editor_direction) { %>

<%- renkan.translate("Change edge direction") %>

<% } %>' + - '<% if (options.show_edge_editor_nodes) { %>

<%-renkan.translate("From:")%><%- shortenText(edge.from_title, 25) %>

' + - '

<%-renkan.translate("To:")%><%- shortenText(edge.to_title, 25) %>

<% } %>' + - '<% if (options.show_edge_editor_creator && edge.has_creator) { %>

<%-renkan.translate("Created by:")%><%- shortenText(edge.created_by_title, 25) %>

<% } %>' - ), - readOnlyTemplate: _.template( - '

×<% if (options.show_edge_tooltip_color) { %><% } %>' + - '<% if (edge.uri) { %><% } %><%-edge.title%><% if (edge.uri) { %><% } %>

' + - '<% if (options.show_edge_tooltip_uri && edge.uri) { %>

<%-edge.short_uri%>

<% } %>' + - '

<%-edge.description%>

' + - '<% if (options.show_edge_tooltip_nodes) { %>

<%-renkan.translate("From:")%><%- shortenText(edge.from_title, 25) %>

' + - '

<%-renkan.translate("To:")%><%- shortenText(edge.to_title, 25) %>

<% } %>' + - '<% if (options.show_edge_tooltip_creator && edge.has_creator) { %>

<%-renkan.translate("Created by:")%><%- shortenText(edge.created_by_title, 25) %>

<% } %>' - ), + _init: function() { + BaseEditor.prototype._init.apply(this); + this.template = this.options.templates['templates/edgeeditor.html']; + this.readOnlyTemplate = this.options.templates['templates/edgeeditor_readonly.html']; + }, draw: function() { var _model = this.source_representation.model, _from_model = _model.get("from"),