{% extends "base.html" %}
{% from "layout/icons.html" import icon %}
{% block content %}
{% macro since_last_update() %}
{{ _("Since the last update") }}
{%- if signal is none %}{{ _("Couldn't check for new commits just now.") }}
{%- elif signal.updating %}{{ _("An update is running.") }}
{%- elif signal.commits == 0 %}{{ _("The guide matches the branch.") }}
{%- else %}{% trans count=signal.merges %}{{ count }} merge landed{% pluralize %}{{ count }} merges landed{% endtrans %}{% if signal.areas %} · {{ signal.areas[:3] | join(", ") }}{% endif %}{% endif -%}
{% trans tokens=last_update.tokens|tokens, cost=last_update.cost_usd|dollars %}The last update used ~{{ tokens }} tokens ({{ cost }} at API prices).{% endtrans %} {{ _("What changed") }} {% trans count=unread_digests|length %}{{ count }} unread digest{% pluralize %}{{ count }} unread digests{% endtrans %} {{ _("You're caught up.") }} {{ _("No digest yet.") }} {{ _("Your system") }} {% trans count=system.parts %}{{ count }} part{% pluralize %}{{ count }} parts{% endtrans %} · {% trans count=system.connections %}{{ count }} connection{% pluralize %}{{ count }} connections{% endtrans %}{{ _(", drawn from the code") }} {{ _("Documentation") }} {% trans percent=documentation.percent %}{{ percent }}% of the guide's rationale is documented{% endtrans %} {% trans change="%+d"|format(documentation.change) %}{{ change }} points since the last update{% endtrans %} {{ _("How well the repository explains itself: rationale, commits, decisions and documents.") }} {{ _("Repository") }} {% trans count=repository.commits, commits=repository.commits|number %}{{ commits }} commit{% pluralize %}{{ commits }} commits{% endtrans %} {% if repository.first %}{% trans date=repository.first.isoformat() %}Started on {{ date }}{% endtrans %}{% if repository.code_lines is not none %} · {% endif %}{% endif %}{% if repository.code_lines is not none %}{% trans count=repository.code_lines, lines=repository.code_lines|number %}{{ lines }} line of code{% pluralize %}{{ lines }} lines of code{% endtrans %}{% endif %} {{ _("Browse the code") }} {% trans name=target %}No sources yet. Run {{ _("Facts:") }} {% for kind, count in counts %}{{ kind }} {{ count }}{% if not loop.last %} · {% endif %}{% endfor %}
{% for area, files in areas %}
{% else %}
codetrail update {{ name }} to read the repository.{% endtrans %}
{{ _("Codetrail reads the code for free, then your assistant writes the guide: concept pages, guided paths and checks. You'll see the estimate before anything is spent.") }}
{% trans name=target %}Or from a terminal: codetrail update {{ name }}{% endtrans %}
{{ _("Continue where you left off") }}
{{ path.title }}
{{ step.title }}
{% trans learned=steps_learned, total=steps_total %}{{ learned }} of {{ total }} learned{% endtrans %}
{{ _("Every path learned") }}
{{ _("You've learned every guided path. Updates will tell you what changes.") }}