{% extends "base.html" %}{% block title %}{{ prompt.name }}{% endblock %}{% block body %}
{{ prompt.description }}
{% endif %}| # | Version | Target | Author | Status | |
|---|---|---|---|---|---|
| {{ 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 %} |
| v | Labels | Format | Message | By | At | Actions |
|---|---|---|---|---|---|---|
| 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. | ||||||