{% extends "base.html" %} {# server/templates/review/review.html — review in dev mode: patch with syntax colors, comments, approval, deploy (E46); strands (E50); windows & auto per env (E55); image from another env (E57) #} {% load static forge %} {% block title %}Review · {% if project.name %}{{ project.name }}{% else %}Project{% endif %} · Forge{% endblock %} {% block content %}

← Project

{% if project.name %}{{ project.name }}{% else %}Project{% endif %} {{ project_id|short_id }}

Refresh
{% include "review/_tabs.html" %}

Development mode: the server has access to this project and reads it in plaintext. It signs comments, approvals and jobs as its own device.

{% if no_access %}

The server does not have access to this tenant yet

Server device {{ device_id }}. A device with access must allow it:

  1. Save the text below as a file server.pub.
  2. On the Mac, in a project folder of the tenant: forge device add server.pub
  3. The server's FORGE_GRANTED_BY must name the Mac's identifier (forge key status, line «Device»).
{{ device_pub }}

Message: {{ no_access }}

{% elif error %} {% elif not changes %}

No change in storage yet.

{% else %} {% if merge_in_progress %}
A merge is running in the server's working copy.
{% endif %}

{% if change.description %}{{ change.description }}{% else %}(no description){% endif %}

{% if change.strand %}Strand{% else %}Change{% endif %} {{ change.short_id }}{% if landed_no %} · landed with version {{ landed_no }}{% endif %}

{% if change.behind %}
The main line has advanced since this strand started. Before landing: forge switch {{ change.short_id }} and forge update — this produces a new version that is checked and approved again.
{% endif %} {% if not version %}

This change has no saved version yet.

{% else %}
{% for item in versions %} Version {{ item.no }} {% endfor %}
Version {{ version_no }} {% if tag_of %}v{{ tag_of }}{% endif %} {{ version|short_id }} {% if check %}{% if check.passed %}check passed{% else %}check failed{% endif %}{% else %}unchecked{% endif %} {% if approvals %}approved({% for item in approvals %}{{ item.author_name }}{% if not forloop.last %}, {% endif %}{% endfor %}){% else %}not approved{% endif %} {% if is_latest and not landed and not approvals %}
{% csrf_token %}
{% endif %}
{% if environments %}

Runner: {% for item in runners %} {{ item.name }} · {% if item.alive %}reachable{% else %}silent{% endif %}{% if item.responsible %} · executes{% endif %} {% empty %} none reported yet — jobs wait until one runs. {% endfor %} {% if runners and not runner_responsible %}No runner reachable.{% endif %}

{% for env in environments %} {% endfor %}
EnvironmentRuns thereThis versionAction
{{ env.name }}
{{ env.app }}
{% if env.requires %}
requires: {{ env.requires|join:", " }}
{% endif %}{% if env.window %}
time window: {{ env.window|join:", " }}{% if env.next_window %} · next {{ env.next_window }}{% endif %}
{% endif %}{% if env.runner %}
only runner {{ env.runner }}
{% endif %}{% if env.freeze %}
{% if env.frozen %}freeze now: {% else %}freezes: {% endif %}{{ env.freeze|join:", " }}
{% endif %}{% if env.auto == "on_land" %}
automatically after forge land
{% endif %}{% if env.image_from %}
image from {{ env.image_from }}, no rebuild
{% endif %}
{% if env.running %}{{ env.running_label }}
since {{ env.running_when|date:"d.m.y H:i" }}
{% else %}nothing yet{% endif %}
{% if env.running_here %}runs there {% elif env.last_expired %}job expired
The runner did not take it over within 30 minutes.
{% elif env.planned_at %}planned from {{ env.planned_at|date:"D d.m. H:i" }} {% elif env.last and not env.last.outcome and env.window and env.next_window %}waits for the time window ({{ env.next_window }}) {% elif env.last and not env.last.outcome %}waits for the runner {% elif env.last and not env.last.outcome.ok %}failed
{{ env.last.outcome.summary }}
{% elif env.last %}ran there before {% else %}—{% endif %}
{% csrf_token %} {% if not env.ready %}config missing from the contract {% else %} {% if env.pending %}a job is running {% elif env.missing %}still missing: {{ env.missing|join:", " }} {% elif not env.running_here %}{% endif %} {% if env.can_rollback %}{% endif %} {% endif %}
{% endif %}
Compare with:
{% for option in options %} {{ option.label }} {% endfor %}
{% if against.snapshot != version %}

View both versions side by side →

{% endif %}

{{ against.hint|capfirst }}. {% if files %}{{ files|length }} changed file{{ files|length|pluralize }}, +{{ totals.added }} −{{ totals.removed }}{% elif not diff_error %}No differences.{% endif %}

{% if diff_error %}
{{ diff_error }}
{% endif %} {% if files|length > 1 %}
    {% for file in files %}
  • {{ file.change }} {{ file.path }} +{{ file.added }} −{{ file.removed }}
  • {% endfor %}
{% endif %} {% for file in files %}
{{ file.change }} {{ file.path }} +{{ file.added }} −{{ file.removed }}
{% if file.note and not file.hunks %}

{{ file.note|capfirst }}.

{% endif %} {% if file.hunks %}
{% for hunk in file.hunks %} {% if not forloop.first %}{% endif %} {% for row in hunk %} {% for item in row.comments %} {% endfor %} {% endfor %} {% endfor %}
⋯
{% if row.old_no %}{{ row.old_no }}{% endif %} {% if row.new_no %}{{ row.new_no }}{% endif %} {% for css, text in row.tokens %}{% if css %}{{ text }}{% else %}{{ text }}{% endif %}{% endfor %}
{{ item.author_name }} {{ item.when|date:"d.m.y H:i" }}
{{ item.text }}
{% if file.truncated %}

Truncated: the file has more changes than shown here.

{% endif %} {% endif %}
{% endfor %}

Comments{% if landed %} change landed{% endif %}

{% for item in comments %}
{{ item.when|date:"d.m.y H:i" }} · {{ item.author_name }}{% if item.version_no %} · Version {{ item.version_no }}{% endif %}{% if item.path %} · {{ item.path }}{% if item.line %}:{{ item.line }}{% endif %}{% endif %}

{{ item.text }}

{% empty %}

No comments yet.

{% endfor %} {% if is_latest %}
{% csrf_token %}
To comment on a specific line: click the right-hand line number in the patch.
{% else %}

Commented and approved is only the newest version (Version {{ versions|length }}).

{% endif %}
{% endif %}
{% endif %} {% endblock %} {% block scripts %} {% endblock %}