$# This file is part of Vervis.
$#
$# Written in 2016 by fr33domlover <fr33domlover@riseup.net>.
$#
$# ♡ Copying is an act of love. Please copy, reuse and share.
$#
$# The author(s) have dedicated all copyright and related and neighboring
$# rights to this software to the public domain worldwide. This software is
$# distributed without any warranty.
$#
$# You should have received a copy of the CC0 Public Domain Dedication along
$# with this software. If not, see
$# <http://creativecommons.org/publicdomain/zero/1.0/>.

<p>
  <a href=@{TicketEditR shar proj num}>Edit this ticket
<p>
  <form method=POST action=@{TicketR shar proj num}>
    <input type=hidden name=_method value=DELETE>
    <input type=submit value="Delete this ticket">

<p>
  Created on #{showDate $ ticketCreated ticket} by
  ^{personLinkW author}

$if not $ ticketDone ticket
  <p>
    $maybe (assignee, me) <- massignee
      $if me
        Assigned to you.

        <form method=POST action=@{TicketUnclaimR shar proj num}>
          <input type=submit value="Unclaim this ticket">
      $else
        Assigned to ^{personLinkW assignee}.
    $nothing
      Not assigned.

      <form method=POST action=@{TicketClaimR shar proj num}>
        <input type=submit value="Claim this ticket">

<p>
  Status: #
  $if ticketDone ticket
    Closed on #{showDate $ ticketClosed ticket} by
    ^{personLinkW closer}.

    <form method=POST action=@{TicketOpenR shar proj num}>
      <input type=submit value="Reopen this ticket">
  $else
    Open.

    <form method=POST action=@{TicketCloseR shar proj num}>
      <input type=submit value="Close this ticket">

<h2>#{ticketTitle ticket}

^{desc}

<h3>Discussion

^{discuss}