Refactor radar creation
This commit is contained in:
@@ -1,31 +1,33 @@
|
||||
extends layout.pug
|
||||
|
||||
block vars
|
||||
- var title=item.attributes.title
|
||||
//-
|
||||
- var title=item.attributes.title
|
||||
|
||||
block content
|
||||
a(href='/' + quadrantName + '.html')= translate(quadrantName)
|
||||
h1 #{item.attributes.title}
|
||||
= ' '
|
||||
small #{item.attributes.ring}
|
||||
//-
|
||||
a(href='/' + quadrantName + '.html')= translate(quadrantName)
|
||||
h1 #{item.attributes.title}
|
||||
= ' '
|
||||
small #{item.attributes.ring}
|
||||
|
||||
|
||||
hr
|
||||
hr
|
||||
|
||||
h4= item.revisions[0].version
|
||||
h5 New: #{item.isNew ? 'YES' : 'NO'}
|
||||
h5 Feature: #{item.attributes.isFeatured ? 'YES' : 'NO'}
|
||||
h4= item.revisions[0].version
|
||||
h5 New: #{item.isNew ? 'YES' : 'NO'}
|
||||
h5 Feature: #{item.attributes.isFeatured ? 'YES' : 'NO'}
|
||||
|
||||
section
|
||||
!= item.revisions[0].body
|
||||
hr
|
||||
section
|
||||
!= item.revisions[0].body
|
||||
hr
|
||||
|
||||
ul
|
||||
each revision, index in item.revisions
|
||||
if index > 0
|
||||
li
|
||||
h3
|
||||
= revision.version
|
||||
= ' '
|
||||
= revision.attributes.ring
|
||||
!= revision.body
|
||||
ul
|
||||
each revision, index in item.revisions
|
||||
if index > 0
|
||||
li
|
||||
h3
|
||||
= revision.version
|
||||
= ' '
|
||||
= revision.attributes.ring
|
||||
!= revision.body
|
||||
|
||||
@@ -4,9 +4,10 @@ block vars
|
||||
- var title='Quadrant'
|
||||
|
||||
block content
|
||||
h1
|
||||
= translate(quadrantName)
|
||||
ul
|
||||
each radarItem, itemName in quadrant
|
||||
li
|
||||
a(href='/' + quadrantName + '/' + itemName + '.html')= radarItem.attributes.title
|
||||
//
|
||||
h1
|
||||
= translate(quadrantName)
|
||||
ul
|
||||
each radarItem, itemName in quadrant
|
||||
li
|
||||
a(href='/' + quadrantName + '/' + itemName + '.html')= radarItem.attributes.title
|
||||
|
||||
Reference in New Issue
Block a user