{% block breadcrumb_body %}
{{ block.super }}
<li><a href="{% url 'projects:open_project' %}">{{project_id}}</a></li>
-<li><a href="{% url 'projects:open_project' %}descriptors/{{descriptor_type}}">{{ descriptor_type }} Descriptors</a></li>
+<li><a href="{% url 'projects:list_descriptors' descriptor_type=descriptor_type %}">{{ descriptor_type }} Descriptors</a></li>
<li><a>{{descriptor_id}}</a></li>
{% endblock %}
editorJSON = CodeMirror(function (elt) {
myJsonTextArea.parentNode.replaceChild(elt, myJsonTextArea);
}, json_editor_settings);
-
-
editorJSON.setValue(JSON.stringify({{descriptor_strings.descriptor_string_json | safe}}, null, "\t"));
editorJSON.setOption("autoRefresh", true);
+ editorJSON.setSize("auto", "auto");
+
var myYamlTextArea = document.getElementById("code_editor_yaml");
editorYaml = CodeMirror(function (elt) {
myYamlTextArea.parentNode.replaceChild(elt, myYamlTextArea);
}, yaml_editor_settings);
var des_strings = {{descriptor_strings | safe}};
editorYaml.setValue(des_strings.descriptor_string_yaml);
-
+ editorYaml.setSize("auto", "auto");
});