2022-09-18 09:44:00 +02:00
|
|
|
$# This file is part of Vervis.
|
|
|
|
$#
|
|
|
|
$# Written in 2016, 2018, 2019, 2020, 2022
|
|
|
|
$# 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/>.
|
|
|
|
|
2022-09-21 14:50:26 +02:00
|
|
|
<h2>#{ticketTitle ticket}
|
2022-09-18 09:44:00 +02:00
|
|
|
|
|
|
|
<div>
|
|
|
|
Created on #{showDate $ ticketCreated ticket} by
|
|
|
|
^{personLinkFedW author}
|
|
|
|
|
2022-09-18 19:37:25 +02:00
|
|
|
$maybe originRepo <- moriginRepo
|
|
|
|
<div>
|
|
|
|
Origin:
|
|
|
|
$case originRepo
|
|
|
|
$of Left (repoHash, name, maybeBranch)
|
|
|
|
<a href=@{RepoR repoHash}>
|
|
|
|
^#{keyHashidText repoHash} #{name}
|
|
|
|
$maybe branch <- maybeBranch
|
2022-09-27 20:12:05 +02:00
|
|
|
: #
|
2022-09-18 19:37:25 +02:00
|
|
|
<a href=@{RepoBranchSourceR repoHash branch []}>
|
|
|
|
#{branch}
|
|
|
|
$of Right (uRepo, maybeName, maybeBranch)
|
2022-09-27 20:12:05 +02:00
|
|
|
<a href="#{renderObjURI uRepo}">
|
2022-09-18 19:37:25 +02:00
|
|
|
$maybe name <- maybeName
|
|
|
|
#{name}
|
|
|
|
$nothing
|
|
|
|
<i>[unnamed]
|
|
|
|
$maybe (maybeURI, branch) <- maybeBranch
|
2022-09-27 20:12:05 +02:00
|
|
|
: #
|
2022-09-18 19:37:25 +02:00
|
|
|
$maybe uri <- maybeURI
|
2022-09-27 20:12:05 +02:00
|
|
|
<a href="#{renderObjURI uri}">
|
2022-09-18 19:37:25 +02:00
|
|
|
#{branch}
|
|
|
|
$nothing
|
|
|
|
#{branch}
|
|
|
|
|
2022-09-24 23:15:40 +02:00
|
|
|
$with (_repoID, repoHash, name, maybeBranch) <- targetRepo
|
2022-09-18 19:37:25 +02:00
|
|
|
<div>
|
|
|
|
Target:
|
|
|
|
<a href=@{RepoR repoHash}>
|
|
|
|
^#{keyHashidText repoHash} #{name}
|
|
|
|
$maybe branch <- maybeBranch
|
|
|
|
:
|
|
|
|
<a href=@{RepoBranchSourceR repoHash branch []}>
|
|
|
|
#{branch}
|
|
|
|
|
2022-09-27 20:11:13 +02:00
|
|
|
$maybe (bundleID, patchIDs, maybeErrorOrCanApply) <- mbundle'
|
2022-09-19 14:02:48 +02:00
|
|
|
<div>
|
|
|
|
Bundle
|
|
|
|
<a href=@{BundleR loomHash clothHash (hashBundle bundleID)}>
|
|
|
|
#{keyHashidText $ hashBundle bundleID}
|
|
|
|
patches, last to first:
|
|
|
|
<ul>
|
|
|
|
$forall patchID <- patchIDs
|
|
|
|
<li>
|
|
|
|
<a href=@{PatchR loomHash clothHash (hashBundle bundleID) (hashPatch patchID)}>
|
|
|
|
#{keyHashidText $ hashPatch patchID}
|
2022-09-24 23:15:40 +02:00
|
|
|
<div>
|
2022-09-27 20:11:13 +02:00
|
|
|
Status: #
|
|
|
|
$maybe errorOrCanApply <- maybeErrorOrCanApply
|
|
|
|
$case errorOrCanApply
|
|
|
|
$of Left e
|
|
|
|
<span .apply-error>
|
|
|
|
[Error! #{e}]
|
|
|
|
^{applyButton "Try applying anyway"}
|
|
|
|
$of Right False
|
|
|
|
<span .apply-no>
|
|
|
|
[Apply check failed! Possibly conflicts exist]
|
|
|
|
^{applyButton "Try applying anyway"}
|
|
|
|
$of Right True
|
|
|
|
<span .apply-yes>
|
|
|
|
[Can apply!]
|
|
|
|
^{applyButton "Apply"}
|
|
|
|
$nothing
|
|
|
|
RESOLVED
|
2022-09-19 14:02:48 +02:00
|
|
|
|
2022-09-18 09:44:00 +02:00
|
|
|
<div>
|
|
|
|
<span>
|
|
|
|
<a href=@{ClothFollowersR loomHash clothHash}>
|
|
|
|
[🐤 Followers]
|
|
|
|
<span>
|
|
|
|
<a href=@{ClothDepsR loomHash clothHash}>
|
|
|
|
[⤴ Dependencies]
|
|
|
|
<span>
|
|
|
|
<a href=@{ClothReverseDepsR loomHash clothHash}>
|
|
|
|
[⤷ Dependants]
|
|
|
|
<span>
|
|
|
|
[✋ Claim requests]
|
|
|
|
<span>
|
|
|
|
[✏ Edit]
|
|
|
|
|
|
|
|
^{followButton}
|
|
|
|
|
|
|
|
<div>^{desc}
|
|
|
|
|
|
|
|
$# $if ticketStatus ticket /= TSClosed
|
|
|
|
$# <p>
|
|
|
|
$# $maybe (assignee, me) <- massignee
|
|
|
|
$# $if me
|
|
|
|
$# Assigned to you.
|
|
|
|
$#
|
|
|
|
$# ^{buttonW POST "Unclaim this ticket" (ProjectTicketUnclaimR loomHash clothHash)}
|
|
|
|
$# $else
|
|
|
|
$# Assigned to ^{sharerLinkW assignee}.
|
|
|
|
$#
|
|
|
|
$# ^{buttonW POST "Unassign this ticket" (ProjectTicketUnassignR loomHash clothHash)}
|
|
|
|
$# $nothing
|
|
|
|
$# Not assigned.
|
|
|
|
$#
|
|
|
|
$# <a href=@{ClaimRequestNewR loomHash clothHash}>Ask to have it assigned to you
|
|
|
|
$#
|
|
|
|
$# or
|
|
|
|
$#
|
|
|
|
$# ^{buttonW POST "Claim this ticket" (ProjectTicketClaimR loomHash clothHash)}
|
|
|
|
$#
|
|
|
|
$# or
|
|
|
|
$#
|
|
|
|
$# <a href=@{ProjectTicketAssignR loomHash clothHash}>Assign to someone else
|
|
|
|
$# .
|
|
|
|
|
|
|
|
<p>
|
|
|
|
Status: #
|
2022-10-17 00:25:21 +02:00
|
|
|
$maybe (closed, closer) <- resolved
|
|
|
|
Closed on #{showDate closed} by ^{personLinkFedW closer}
|
|
|
|
$# ^{buttonW POST "Reopen this MR" (ProjectTicketOpenR loomHash clothHash)}
|
|
|
|
$nothing
|
|
|
|
Open
|
|
|
|
$# ^{buttonW POST "Close this MR" (ProjectTicketCloseR loomHash clothHash)}
|
2022-09-18 09:44:00 +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)
|
|
|
|
$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 loomHash clothHash)}
|
|
|
|
|
|
|
|
<h3>Discussion
|
|
|
|
|
|
|
|
^{discuss}
|