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"><strong>Date:</strong> {{os.date("%Y-%m-%d", $tick.time)}}</p>
      % set author = $users[$tick.user_id]
      <p class="author">
        <strong>Author:</strong>
        <a href="/u/{{$author.nick}}">{{$author.name}}</a>
      </p>
    </div>
    <pre>{{$tick.desc}}</pre>
    <div class="footer-details">
      <p><strong>Status:</strong> {{$states[$tick.state_id]}}</p>
      <p><strong>Priority:</strong> {{$tick.priority}}</p>
      <form action="/p/{{$proj.name}}/t/{{$tick.code}}/del" method="post">
        <button type="submit">delete</button>
      </form>
    </div>
  </div>
  <div class="comments-section">
    <h2>Comments</h2>
    % for comment in $comments do
    <div class="comment">
      <div class="header-details">
        <p class="date"><strong>Date:</strong> {{os.date("%Y-%m-%d", $comment.time)}}</p>
        % set author = $users[$comment.user_id]
        <p class="author">
          <strong>Author:</strong>
          <a href="/u/{{$author.nick}}">{{$author.name}}</a>
        </p>
      </div>
      <pre>{{$comment.text}}</pre>
    </div>
    % end
  </div>
</body>
</html>