41 lines
1.7 KiB
Plaintext
41 lines
1.7 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}/tracker/trail`) audit trail
|
|
|
|
.divider
|
|
|
|
table
|
|
thead
|
|
tr
|
|
th Title Text
|
|
th Artifact
|
|
th Chapter
|
|
th translator
|
|
th proof reader
|
|
tbody
|
|
each translationChapter in translationChapters.sort((a, b) => a.index - b.index)
|
|
tr
|
|
-
|
|
const title = translationChapter.translationChunks.length > 0 ? translationChapter.translationChunks.sort((a, b) => a.index - b.index)[0].text : "N/A"
|
|
td
|
|
a.tracker-title-cell(href=`/projects/${project.id}/tracker/${translationChapter.id}`, title=title)= title
|
|
td #{translationChapter.translationArtifactVersion.artifactVersion.artifact.name} - #{translationChapter.translationArtifactVersion.name} - #{translationChapter.translationArtifactVersion.artifactVersion.tag}
|
|
td= translationChapter.index
|
|
td
|
|
td |