login

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>{{$title}}</title>
  <style>
    .centered { text-align: center; }
    .menu a { margin: 7px; }
    % include view/ticket.css
  </style>
</head>
<body>
  <div class="centered menu">
    <a href="/p/{{$proj.name}}/t/{{$tick.code}}/edit">edit</a>
    <a href="/p/{{$proj.name}}/t/{{$tick.code}}/c/new">new comment</a>
  </div>
  <br>
  <h1 class="centered">{{$proj.name}} - Ticket #{{$tick.code}}</h1>
  <div class="ticket-details">
    <h1>{{$tick.title}}</h1>
    <div class="header-details">
      <p class="date">Date: {{os.date("%Y-%m-%d", $tick.time)}}</p>
      % set author = $users[$tick.user_id]
      <p class="author">Author: <a href="/u/{{$author.nick}}">{{$author.name}}</a></p>
    </div>
    <pre>{{$tick.desc}}</pre>
  </div>
  <div class="comments-section">
    <h2>Comments</h2>
    % for comment in $comments do
    <div class="comment">
      <div class="header-details">
        <p class="date">Date: {{os.date("%Y-%m-%d", $comment.time)}}</p>
        % set author = $users[$comment.user_id]
        <p class="author">Author: <a href="/u/{{$author.nick}}">{{$author.name}}</a></p>
      </div>
      <pre>{{$comment.text}}</pre>
    </div>
    % end
  </div>
</body>
</html>