Projects under organizations with fixed URL name and feature ID prefix, three visibility levels, open contribution, per-project roles, settings and typed-confirmation delete. Hidden projects 404. Leaving an org drops its project roles. Project access rules live in intent/access.py alongside org access. Features numbered per project (INT-12) in a tree. Every change is a revision with a required note; history, old revisions, and side-by-side field and line diffs between any two. Cycles and superseded-without-replacement are rejected. Markdown renders safely with source-line attributes for Phase 3 line comments and headings shifted below the page h1. Server-side preview works without JS. Structural accessibility check runs on every page in tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
718 B
HTML
20 lines
718 B
HTML
{% extends "projects/base.html" %}
|
|
|
|
{% block title %}{{ project.name }} · Intent{% endblock %}
|
|
|
|
{% block project_content %}
|
|
<h1>{{ project.name }}</h1>
|
|
<p class="muted">{{ project.get_visibility_display }}{% if project.open_contribution %}. Open to contributions from signed-in users.{% endif %}</p>
|
|
|
|
<section aria-labelledby="tree-heading">
|
|
<h2 id="tree-heading">Features</h2>
|
|
{% if access.can_edit %}
|
|
<p><a href="{% url 'features:create' org_slug=project.org.slug project_slug=project.slug %}">New feature</a></p>
|
|
{% endif %}
|
|
{% if tree %}
|
|
{% include "features/_tree.html" with nodes=tree %}
|
|
{% else %}
|
|
<p>No features yet.</p>
|
|
{% endif %}
|
|
</section>
|
|
{% endblock %}
|