<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{{$other.name}} - {{$title}}</title>
<style>
.centered { text-align: center; }
.proj-list li {
list-style: none;
display: inline-block;
padding: 5px 8px;
border-radius: 5px;
border-width: 3px;
border-style: solid;
}
% include view/menu.css
</style>
</head>
<body>
% include view/menu.html
<h1 class="centered">user</h1>
<p><strong>nick:</strong> {{$other.nick}}</p>
<p><strong>name:</strong> {{$other.name}}</p>
<p>
<strong>invited by:</strong>
% if $other.invited_by ~= nil then
<a href="/u/{{$other.inviter_nick}}">{{$other.inviter_name}}</a>
% else
(root)
% end
</p>
% if #$invitees > 0 then
<p><strong>invited:</strong>
% for invitee in $invitees do
<a href="/u/{{$invitee.nick}}">{{$invitee.name}}</a>
% end
</p>
% end
<p><strong>projects:</strong>
<ul class="proj-list">
% for proj in $projs do
% if $proj.is_active ~= 0 then
<li style="border-color: {{$proj.color}};">
<a href="/p/{{$proj.name}}">{{$proj.name}}</a>
</li>
% end
% end
</ul>
</p>
% if $manage then
<form action="/u/{{$other.nick}}/del" method="post">
<button type="submit">delete</button>
</form>
% end
</body>
</html>