{% extends "base.html" %}{% block title %}{{ prompt.name }}{% endblock %}{% block body %}

{{ prompt.name }} · {{ prompt.type }}{% if prompt.archived_at %} archived{% endif %}

{% if prompt.description %}

{{ prompt.description }}

{% endif %}
{% for l in locales %}{{ l }}{% endfor %}
{% if crs %}

Change requests

{% for c in crs %}{% endfor %}
#VersionTargetAuthorStatus
{{ c.id }}v{{ c.version }} ({{ c.locale }}){{ c.target_label }}{{ c.author }}{% if c.comment %}
{{ c.comment }}
{% endif %}
{{ c.status }}{% if c.reviewer %} by {{ c.reviewer }}{% endif %} {% if c.status == 'open' and principal.can('prompts:approve') %}
diff {% elif c.status == 'approved' and principal.can('prompts:publish:' ~ c.target_label) %}
{% endif %}
{% endif %}

Versions · {{ locale }}

{% for v in versions %} {% else %}{% endfor %}
vLabelsFormatMessageByAtActions
v{{ v.version }} {% for l in label_map.get(v.id, []) %}{{ l }}{% endfor %} {{ v.format }}{{ v.message }}
vars: {{ v.variables|join(', ') or '—' }}
{{ v.created_by }}{{ v.created_at.strftime('%Y-%m-%d %H:%M') }} {% if not loop.last %}diff prev {% endif %}
more
{% for lb in ['staging', 'production'] %}{% if lb in protected %} {% if principal.can('prompts:edit') %}
{% endif %} {% if principal.can('prompts:admin') %}
{% endif %} {% elif principal.can('prompts:publish:' ~ lb) %}
{% endif %}{% endfor %}
No versions for {{ locale }} yet.
{% set rb = [] %}{% for l in labels if l.locale == locale and l.label != 'latest' and principal.can('prompts:publish:' ~ l.label) %} {% if l.label in rollback_to %}
{% endif %} {% endfor %} {% if principal.can('prompts:edit') %}

New version · {{ locale }}

Saving moves latest; production and staging move only when published.

Metadata

{% if principal.can('prompts:admin') %}

{% if prompt.archived_at %}{% else %}{% endif %}{% endif %}

{% endif %} {% endblock %}