{# Find in page. WKWebView has no built-in find UI, so Cmd+F is ours to implement — see wkFind in the script block below. #} {# Jump to article (⌘J): a page finder scoped to the active wiki. Distinct from ⌘F, which searches within the page, and from the top-bar search, which searches page *content*. This matches titles and goes straight there. #} {# Order is deliberate: identity (logo, wiki), navigation (history, search), then actions from most to least frequent, ending in Help. #} {# Chat. A launcher rather than a section on the Details page: the question is usually about what you are reading, so it should be reachable while you read it. Present everywhere; page-scoped where there is a page, wiki-scoped otherwise. Hidden for guests, who cannot run local CLIs (auth.guest_may). #} {% if role != 'guest' %} {%- if cap_state.chat == 'unavailable' %} {# The tool chat runs isn't on this machine, and that was knowable before the click. Rendered unpressable and pointed at the fix, rather than opening a panel whose only possible answer is an error with a command in it. #} 💬 {%- else %} {%- endif %} {% endif %}
🌺 Waikiki v{{ version }}
{# "History" here means the *browser's* back/forward, and it used to be the only occurrence of the word on a rendered article — so the one string a person hunting for undo could find sent them to the wrong control (issue #73). Page history now has its own affordance on the article; this label says which history it is. #}
{# Drag to resize the rail. Sits against .layout, not inside .sidebar, which scrolls its own content. #}
{% if wiki_unreadable %} {# The active wiki's file cannot be opened. Views that don't need its contents (Manage wikis, Settings) still render — with this. #} {% endif %} {% block content %}{% endblock %}
{% block scripts %}{% endblock %}