2017-12-14 09:23:45 -06:00
|
|
|
mixin propTable(props)
|
|
|
|
table.props
|
|
|
|
thead: tr
|
2017-12-16 13:02:30 -06:00
|
|
|
th= common.i18n[lang]['docs']['api']['props']['name']
|
|
|
|
th= common.i18n[lang]['docs']['api']['props']['type']
|
|
|
|
th= common.i18n[lang]['docs']['api']['props']['optional']
|
|
|
|
th= common.i18n[lang]['docs']['api']['props']['description']
|
2017-12-14 09:23:45 -06:00
|
|
|
tbody
|
|
|
|
each prop in props
|
|
|
|
tr
|
|
|
|
td.name= prop.name
|
|
|
|
td.type
|
|
|
|
i= prop.type
|
|
|
|
if prop.kind == 'id'
|
|
|
|
if prop.entity
|
|
|
|
| (
|
2017-12-16 10:41:22 -06:00
|
|
|
a(href=`/${lang}/api/entities/${kebab(prop.entity)}`)= prop.entity
|
2017-12-14 09:23:45 -06:00
|
|
|
| ID)
|
|
|
|
else
|
|
|
|
| (ID)
|
|
|
|
else if prop.kind == 'entity'
|
|
|
|
| (
|
2017-12-16 10:41:22 -06:00
|
|
|
a(href=`/${lang}/api/entities/${kebab(prop.entity)}`)= prop.entity
|
2017-12-14 09:23:45 -06:00
|
|
|
| )
|
|
|
|
else if prop.kind == 'object'
|
|
|
|
if prop.def
|
|
|
|
| (
|
|
|
|
a(href=`#${prop.defName}`)= prop.defName
|
|
|
|
| )
|
|
|
|
else if prop.kind == 'date'
|
|
|
|
| (Date)
|
2017-12-16 13:02:30 -06:00
|
|
|
td.optional
|
|
|
|
if prop.optional
|
|
|
|
= common.i18n[lang]['docs']['api']['props']['yes']
|
|
|
|
else
|
|
|
|
= common.i18n[lang]['docs']['api']['props']['no']
|
2017-12-14 15:41:57 -06:00
|
|
|
td.desc!= prop.desc[lang] || prop.desc['ja']
|