{% extends "base.html" %} {% block title %}{{ slug }} ยท dayfile{% endblock %} {% block head %}{% endblock %} {% block main %}

{{ slug }}

{% if nav_state == "account" %}Post{% else %}
{% endif %}
{% if error %}{% endif %} {% if capacity == "full" %} {% elif capacity == "near" %}
This log is nearly full. See usage in Settings; once it is full, new events are refused.
{% endif %} {% if filters.errors %}
Ignored an invalid filter ({{ filters.errors|join(", ") }}).
{% endif %} {% with action = "/log" %}{% include "_filters.html" %}{% endwith %}

Events

{% for e in events %}{% include "_event.html" %}{% endfor %} {% if not events %}{% if nav_state == "account" and not filters.tags and not filters.status %}

Your log is ready at {{ slug }}.{{ base_domain }}. Send the first event.

    {% if write_tokens %}
  1. Use a write token you already have. Its secret was shown only once when you made it, so paste it in place of YOUR_TOKEN:
      {% for t in write_tokens %}
    • {{ t.id }}{% if t.note %} ({{ t.note }}){% endif %}
    • {% endfor %}
    curl -X POST https://{{ slug }}.{{ base_domain }}/events \
      -H "Authorization: Bearer YOUR_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{"title": "Hello from my first event"}'
    Lost the secret? Make a new token:
  2. {% else %}
  3. Make a write token. It can only post, so it is safe to give to a script.
  4. Copy the curl command shown with it and run it in a terminal.
  5. {% endif %}
  6. The event appears right here, by itself. Or skip the token and use Post above.
{% else %}

Nothing here yet.

{% endif %}{% endif %}
{% if nav_state == "account" %}

New post

{% with form = {}, modal = true %}{% include "_post_form.html" %}{% endwith %}
{% endif %} {% endblock %} {% block scripts %}{% if nav_state == "account" %}{% endif %}{% endblock %}