{% extends "base.html" %} {% load static %} {% load markdown_filters %} {% block title %}{{ playbook.name }} - Playbook{% endblock %} {% block content %}

{{ playbook.name }}

{{ playbook.get_status_display }} v{{ playbook.version }} {{ playbook.get_category_display }} {{ playbook.get_visibility_display }}

{{ playbook.author.username }} Updated {{ playbook.updated_at|timesince }} ago

{% if playbook.source == 'owned' and playbook.author == request.user %} {# Delete is always leftmost among header actions (destructive, isolated from primary CTAs). #} {% if playbook.is_draft %} Edit {% elif playbook.is_released %} Submit PIP {% else %} Edit {% endif %} {% endif %} Back
Description

{{ playbook.description }}

Workflows
{% if workflows %}
    {% for workflow in workflows %}
  • {% if workflow.abbreviation %} {{ workflow.abbreviation }} {% endif %} {{ workflow.name }} {% if workflow.description %}

    {{ workflow.description }}

    {% endif %}
  • {% endfor %}
{% else %}

No workflows added yet.

{% endif %}
Metadata
Category:
{{ playbook.get_category_display }}
Author:
{{ playbook.author.username }}
Created:
{{ playbook.created_at|timesince }} ago
Source:
{{ playbook.get_source_display }}
{% if playbook.tags %}
Tags:
{% for tag in playbook.tags %} {{ tag }} {% endfor %}
{% endif %}
{% include "methodology/partials/workflows_tab_content.html" %}
Lifecycle Phases
{% if can_edit %} Create Phase {% endif %}
{% if phases %} {% else %}
No phases defined yet. {% if can_edit %} Create the first phase {% endif %}
{% endif %}
Agents
{% if can_edit %} Create New Agent {% endif %}
{% if agents %} {% else %}

No agents in this playbook yet.

{% if can_edit %} Create First Agent {% endif %}
{% endif %}
Version history
{% if version_history|length >= 2 %} Compare latest two {% endif %}
{% if version_history %}
    {% for row in version_history %}
  • v{{ row.label }} {{ row.kind_major|yesno:'major,minor' }}
    {{ row.description|default:row.change_summary }}
    {{ row.source }}
    {% if row.pip_id %} PIP #{{ row.pip_id }} {% endif %}
  • {% endfor %}
{% else %}

No captured versions yet.

{% endif %}
Older entries appear above in chronological order when present.
{% if can_edit %}

Settings tab content (to be implemented)

{% endif %}
{% if playbook.source == 'owned' and playbook.author == request.user %} {% if playbook.is_draft or playbook.is_released %} {% endif %} {% endif %} {% endblock %} {% block extra_js %} {% endblock %}