{% extends "base.html" %} {% block title %}Wikis — Jamgraf{% endblock %} {% block content %}
Each wiki is a fully isolated database file — pages, search, and
[[links]] never cross between them. Save a wiki to a file to back
it up or move it; open one to bring it in. Open takes any shape Jamgraf
writes — a .wiki save, a wiki bundle, or a folder (or zip) of
exported .md pages — and reads the file's shape, not its
name.
| {{ w.name }} /{{ w.slug }}
{% if w.slug == current_wiki %}active{% endif %}
{% set s = stats[w.slug] %}
{% if s.unreadable %}
{# A file SQLite can't open. Say so here rather than 500 the page:
this is where someone comes to open a backup or move to a wiki
that works, so it has to render. See issue #71. #}
can’t be read
{{ s.reason }} · {{ (s.bytes / 1048576) | round(1) }} MB on disk,
left untouched
{# The restore route, spelled out where the damage is reported.
Settings explains it too, but Settings reads the active wiki —
which may be this one. #}
How to get this wiki back
{{ s.articles }} article{{ '' if s.articles == 1 else 's' }} ·
{{ s.links }} link{{ '' if s.links == 1 else 's' }}
{% if s.links_broken %}({{ s.links_broken }} broken){% endif %} ·
{{ (s.bytes / 1048576) | round(1) }} MB
{% if s.trashed %} · {{ s.trashed }} in trash{% endif %}
{% endif %}
|
Rename…The name is just the label. The address is in every link to this wiki and is the name of its file, so changing it renames the file and any tab with this wiki open needs a reload. {% if w.slug == help_wiki %}The Help wiki's address is built in — the app re-creates it whenever it is missing, so a renamed one would come back as a second copy. {% endif %} |
{% if s.unreadable %} Export .md {% else %} Export .md {% endif %} |