45 lines
1.9 KiB
Plaintext
45 lines
1.9 KiB
Plaintext
extend templates/layout.pug
|
|
|
|
block content
|
|
-
|
|
const isOwnedByUser = project.owner.ownerEntities.some(ownerEntity => {
|
|
return ownerEntity.entity.entityUsers.some(entityUser => {
|
|
return entityUser.userId == user?.id
|
|
})
|
|
})
|
|
.container
|
|
.center
|
|
h1= project.name
|
|
|
|
p.flow-text= project.description
|
|
|
|
if isOwnedByUser
|
|
.row
|
|
.col.s12
|
|
a.btn.black(href=`/projects/${project.id}/campaign`) funding campaign
|
|
.row
|
|
.col.s12
|
|
a.btn.black(href=`/projects/${project.id}`) tracker
|
|
.row
|
|
.col.s12
|
|
form(action=`/projects/${project.id}/sheets`, method="post")
|
|
button.btn.black(type="submit") export to spreadsheets
|
|
|
|
.divider
|
|
h2 Entries
|
|
each projectArtifactVersion in project.projectArtifactVersions
|
|
p.flow-text= projectArtifactVersion.artifactVersion.artifact.name
|
|
if isOwnedByUser
|
|
.row
|
|
.col.s12
|
|
a.btn.black(href=`/projects/${project.id}/add-artifact`) add from library
|
|
.divider
|
|
h2 Translation
|
|
each projectTranslationArtifactVersion in project.projectTranslationArtifactVersions
|
|
p.flow-text #{projectTranslationArtifactVersion.translationArtifactVersion.name} - #{projectTranslationArtifactVersion.translationArtifactVersion.artifactVersion.artifact.name}
|
|
if isOwnedByUser
|
|
.row
|
|
.col.s12
|
|
a.btn.black(href=`/projects/${project.id}/add-translation`) add translation
|
|
//- TODO: Show project translation artifact versions
|
|
//- TODO: Show project artifact versions |