{% extends base or 'layout.html' %} {% macro make_parent_path(names) %} {% for name in names -%} {{ name }} {%- if not loop.last and not name == '' -%} / {%- endif -%} {%- endfor %} {% endmacro %} {% macro get_parent_link() %} {% set name = make_parent_path(request.args.get('item_name','/').split('/')[:-1]).strip() %} {% if name == 'files' %} {% set name = '' %} {% endif %} {% if name != '' %} back {% else %} back {% endif %} {% endmacro %} {% block body %} {% if codemirror %} {{ codemirror.include_codemirror() }} {% endif %}