my eye

projects.html

Raw

$def with (projects)
$var title: Projects

<form action=/search>
<input name=q> <button>Search</button>
</form>

<p>$len(projects) projects</p>

<ul>
$for project in projects:
    <li><a href=/projects/$project>$project</a></li>
</ul>

$if tx.user.is_owner:
    <form method=post action=/projects>
    <input name=project type=text>
    <button>Create</button>
    </form>