Vervis/templates/ticket/one.hamlet

129 lines
3.4 KiB
Text
Raw Normal View History

2016-05-01 11:58:55 +02:00
$# This file is part of Vervis.
$#
2020-01-05 15:33:10 +01:00
$# Written in 2016, 2018, 2019, 2020 by fr33domlover <fr33domlover@riseup.net>.
2016-05-01 11:58:55 +02:00
$#
$# ♡ 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/>.
<h2>#{preEscapedToHtml $ ticketTitle ticket}
<div>
Created on #{showDate $ ticketCreated ticket} by
^{sharerLinkFedW author}
<div>
<span>
<a href=@{ProjectTicketParticipantsR shar proj ltkhid}>
[🐤 Followers]
<span>
<a href=@{ProjectTicketDepsR shar proj ltkhid}>
[⤴ Dependencies]
<span>
<a href=@{ProjectTicketReverseDepsR shar proj ltkhid}>
[⤷ Dependants]
<span>
<a href=@{ClaimRequestsTicketR shar proj ltkhid}>
[✋ Claim requests]
<span>
<a href=@{ProjectTicketEditR shar proj ltkhid}>
[✏ Edit]
^{followButton}
<div>^{desc}
2016-05-01 11:58:55 +02:00
$if ticketStatus ticket /= TSClosed
<p>
$maybe (assignee, me) <- massignee
$if me
Assigned to you.
^{buttonW POST "Unclaim this ticket" (ProjectTicketUnclaimR shar proj ltkhid)}
$else
Assigned to ^{sharerLinkW assignee}.
^{buttonW POST "Unassign this ticket" (ProjectTicketUnassignR shar proj ltkhid)}
$nothing
Not assigned.
<a href=@{ClaimRequestNewR shar proj ltkhid}>Ask to have it assigned to you
2016-06-08 03:28:18 +02:00
or
^{buttonW POST "Claim this ticket" (ProjectTicketClaimR shar proj ltkhid)}
2016-06-01 18:20:19 +02:00
or
<a href=@{ProjectTicketAssignR shar proj ltkhid}>Assign to someone else
.
2016-05-02 11:15:10 +02:00
<p>
Status: #
$case ticketStatus ticket
$of TSNew
Open, new.
^{buttonW POST "Accept this ticket" (ProjectTicketAcceptR shar proj ltkhid)}
^{buttonW POST "Close this ticket" (ProjectTicketCloseR shar proj ltkhid)}
$of TSTodo
Open, to do.
^{buttonW POST "Close this ticket" (ProjectTicketCloseR shar proj ltkhid)}
$of TSClosed
Closed on ___ by ___.
^{buttonW POST "Reopen this ticket" (ProjectTicketOpenR shar proj ltkhid)}
2016-05-01 11:58:55 +02:00
<h3>Custom fields
<ul>
$forall TicketTextParam field mvalue <- tparams
<li .#{relevant $ wfsFilter field}>
<a href=@{WorkflowFieldR wshr wfl $ wfsIdent field}>
#{wfsName field}
:
$maybe value <- mvalue
#{ttpvVal value}
$nothing
$if wfsRequired field
NO VALUE FOR REQUIRED FIELD
$else
(none)
$forall TicketEnumParam field enum mvalue <- eparams
<li .#{relevant $ wfsFilter field}>
<a href=@{WorkflowFieldR wshr wfl $ wfsIdent field}>
#{wfsName field}
:
$maybe value <- mvalue
<a href=@{WorkflowEnumCtorsR wshr wfl $ wesIdent enum}>
#{tepvName value}
$nothing
$if wfsRequired field
NO VALUE FOR REQUIRED FIELD
$else
(none)
2020-01-05 15:33:10 +01:00
$forall TicketClassParam field mvalue <- cparams
<li .#{relevant $ wfsFilter field}>
<a href=@{WorkflowFieldR wshr wfl $ wfsIdent field}>
#{wfsName field}
:
$maybe _tpcid <- mvalue
Yes
$nothing
No
<p>
^{buttonW DELETE "Delete this ticket" (ProjectTicketR shar proj ltkhid)}
<h3>Discussion
^{discuss}