View entity objects
This commit is contained in:
11
server/views/entities.pug
Normal file
11
server/views/entities.pug
Normal file
@@ -0,0 +1,11 @@
|
||||
extend templates/layout.pug
|
||||
|
||||
block content
|
||||
.container
|
||||
.center
|
||||
h1 Entities
|
||||
|
||||
each entity in entities
|
||||
p.flow-text
|
||||
i.material-icons= entity.type == 'individual' ? 'person' : 'group'
|
||||
a(href=`/entities/${entity.name}`)= ` ${entity.name}`
|
||||
13
server/views/entity-artifacts.pug
Normal file
13
server/views/entity-artifacts.pug
Normal file
@@ -0,0 +1,13 @@
|
||||
extend templates/layout.pug
|
||||
|
||||
block content
|
||||
.container
|
||||
.center
|
||||
h1 Artifacts
|
||||
|
||||
if artifacts.length == 0
|
||||
p.flow-text No artifacts owned by #{entityName}
|
||||
else
|
||||
each artifact in artifacts
|
||||
p.flow-text
|
||||
a(href=`/library/${artifact.id}`)= artifact.name
|
||||
13
server/views/entity-campaigns.pug
Normal file
13
server/views/entity-campaigns.pug
Normal file
@@ -0,0 +1,13 @@
|
||||
extend templates/layout.pug
|
||||
|
||||
block content
|
||||
.container
|
||||
.center
|
||||
h1 Campaigns
|
||||
|
||||
if campaigns.length == 0
|
||||
p.flow-text No campaigns owned by #{entityName}
|
||||
else
|
||||
each campaign in campaigns
|
||||
p.flow-text
|
||||
a(href=`/campaigns/${campaign.id}`)= campaign.name
|
||||
13
server/views/entity-projects.pug
Normal file
13
server/views/entity-projects.pug
Normal file
@@ -0,0 +1,13 @@
|
||||
extend templates/layout.pug
|
||||
|
||||
block content
|
||||
.container
|
||||
.center
|
||||
h1 Projects
|
||||
|
||||
if projects.length == 0
|
||||
p.flow-text No projects owned by #{entityName}
|
||||
else
|
||||
each project in projects
|
||||
p.flow-text
|
||||
a(href=`/projects/${project.id}`)= project.name
|
||||
@@ -0,0 +1,13 @@
|
||||
extend templates/layout.pug
|
||||
|
||||
block content
|
||||
.container
|
||||
.center
|
||||
h1 Translation Campaigns owned by #{entityName}
|
||||
|
||||
if translationArtifactVersionCampaigns.length == 0
|
||||
p.flow-text No translation campaigns owned by #{entityName}
|
||||
else
|
||||
each translationArtifactVersionCampaign in translationArtifactVersionCampaigns
|
||||
p.flow-text
|
||||
a(href=`/translate/${translationArtifactVersionCampaign.translationArtifactVersionId}`) #{translationArtifactVersionCampaign.name}
|
||||
13
server/views/entity-translation-artifact-version-pledges.pug
Normal file
13
server/views/entity-translation-artifact-version-pledges.pug
Normal file
@@ -0,0 +1,13 @@
|
||||
extend templates/layout.pug
|
||||
|
||||
block content
|
||||
.container
|
||||
.center
|
||||
h1 Translation Pledges owned by #{entityName}
|
||||
|
||||
if translationArtifactVersionPledges.length == 0
|
||||
p.flow-text No translation pledges owned by #{entityName}
|
||||
else
|
||||
each translationArtifactVersionPledge in translationArtifactVersionPledges
|
||||
p.flow-text
|
||||
a(href=`/pledges/${translationArtifactVersionPledge.id}`) #{translationArtifactVersionPledge.name}
|
||||
13
server/views/entity-translation-artifact-versions.pug
Normal file
13
server/views/entity-translation-artifact-versions.pug
Normal file
@@ -0,0 +1,13 @@
|
||||
extend templates/layout.pug
|
||||
|
||||
block content
|
||||
.container
|
||||
.center
|
||||
h1 Translations owned by #{entityName}
|
||||
|
||||
if translationArtifactVersions.length == 0
|
||||
p.flow-text No translations owned by #{entityName}
|
||||
else
|
||||
each translationArtifactVersion in translationArtifactVersions
|
||||
p.flow-text
|
||||
a(href=`/translate/${translationArtifactVersion.id}`) #{translationArtifactVersion.name} - #{translationArtifactVersion.artifactVersion.artifact.name} - #{translationArtifactVersion.artifactVersion.tag}
|
||||
25
server/views/entity.pug
Normal file
25
server/views/entity.pug
Normal file
@@ -0,0 +1,25 @@
|
||||
extend templates/layout.pug
|
||||
|
||||
block content
|
||||
.container
|
||||
.center
|
||||
h1= entity.name
|
||||
|
||||
.row
|
||||
.col.s12
|
||||
a(href=`/entities/${entity.name}/artifacts`)
|
||||
.chip artifacts
|
||||
a(href=`/entities/${entity.name}/projects`)
|
||||
.chip projects
|
||||
a(href=`/entities/${entity.name}/pledges`)
|
||||
.chip pledges
|
||||
a(href=`/entities/${entity.name}/campaigns`)
|
||||
.chip campaigns
|
||||
a(href=`/entities/${entity.name}/translations`)
|
||||
.chip translations
|
||||
.row
|
||||
.col.s12
|
||||
a(href=`/entities/${entity.name}/translation-campaigns`)
|
||||
.chip translations campaign
|
||||
a(href=`/entities/${entity.name}/translation-pledges`)
|
||||
.chip translations pledges
|
||||
@@ -35,6 +35,10 @@ html(lang="en" dir="ltr")
|
||||
span.email mantra@exonumia.africa
|
||||
|
||||
if user
|
||||
li
|
||||
a(href="/entities")
|
||||
i.material-icons.black-text person
|
||||
span entities
|
||||
li
|
||||
a(href="/library")
|
||||
i.material-icons.black-text person
|
||||
|
||||
Reference in New Issue
Block a user