38 lines
1.8 KiB
Plaintext
38 lines
1.8 KiB
Plaintext
extend templates/layout.pug
|
|
|
|
block content
|
|
-
|
|
const isOwnedByUser = artifactVersion.artifact.owner.ownerEntities.some(ownerEntity => {
|
|
return ownerEntity.entity.entityUsers.some(entityUser => {
|
|
return entityUser.userId == user?.id
|
|
})
|
|
})
|
|
.container
|
|
.center
|
|
h1 #{artifactVersion.artifact.name}
|
|
if artifactVersion.artifact.visibility == "private"
|
|
i.right.medium.material-icons lock
|
|
|
|
h2 #{artifactVersion.tag}
|
|
p.flow-text
|
|
each ownerEntity, index in artifactVersion.artifact.owner.ownerEntities
|
|
small
|
|
if index > 0
|
|
span and
|
|
span.chip #{ownerEntity.entity.name}
|
|
|
|
.row
|
|
.col.s12
|
|
if artifactVersion.artifactVersionApproval
|
|
p.flow-text Approval: #{artifactVersion.artifactVersionApproval.name}
|
|
p.flow-text= artifactVersion.artifactVersionApproval.conditions
|
|
p.flow-text= artifactVersion.artifactVersionApproval.description
|
|
if artifactVersion.artifactVersionApproval.approvedAt
|
|
p.flow-text.green-text(title=artifactVersion.artifactVersionApproval.approvedAt.toLocaleString()) approval has already been given to translate the work.
|
|
else
|
|
p.flow-text Pending approval
|
|
else
|
|
p.flow-text No digital rights approval information has been provided for this content.
|
|
if isOwnedByUser
|
|
a.btn.black(href=`/v/${artifactVersion.id}/approval/add`) add approval information
|