Add approval creation things
This commit is contained in:
37
server/views/artifact-version-approval.pug
Normal file
37
server/views/artifact-version-approval.pug
Normal file
@@ -0,0 +1,37 @@
|
||||
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.accessibility == "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
|
||||
Reference in New Issue
Block a user