{% extends "base.html" %} {% from "icons.html" import icon, sep %} {% from "ui.html" import csrf_field, file_input with context %} {% block title %}{{ _("Import") }} · {{ space.name }} · Synaptane{% endblock %} {% block crumbs %}{{ sep() }}{{ org.name }}{{ sep() }}{{ space.name }}{{ sep() }}{{ _("Import") }}{% endblock %} {% block content %} {% set base = '/o/' ~ org.slug ~ '/' ~ space.slug ~ '/-/import' %} {% macro paths(items) -%}
{{ item }}{{ _("and {count} more", count=items|length - shown) }}
{% endif %} {%- endmacro %}{{ _("An Obsidian vault, or any folder of Markdown files, zipped with its attachments. Nothing is written yet: you will see what the archive holds first. Files are kept as they are, and nothing already in the space is overwritten.") }}
{% else %} {% set count = plan.new|length %}{{ _(pl(plan.pages, "{n} page", "{n} pages"), n=plan.pages) }} · {{ _(pl(plan.attachments, "{n} attachment", "{n} attachments"), n=plan.attachments) }}{% if plan.folder %} · {{ _("into {folder}", folder=plan.folder) }}{% endif %}
{% if plan.new %}{{ _(pl(plan.left_out, "{n} hidden or system file left out (.obsidian, .trash…).", "{n} hidden or system files left out (.obsidian, .trash…)."), n=plan.left_out) }}
{% endif %}{{ _("Nothing to import.") }}
{% endif %}