2018-07-16 13:57:34 -05:00
|
|
|
mixin type(prop)
|
|
|
|
i= prop.type
|
|
|
|
if prop.kind == 'id'
|
|
|
|
if prop.entity
|
|
|
|
| (
|
|
|
|
a(href=`/docs/${lang}/api/entities/${kebab(prop.entity)}`)= prop.entity
|
|
|
|
| ID)
|
|
|
|
else
|
|
|
|
| (ID)
|
|
|
|
else if prop.kind == 'entity'
|
|
|
|
| (
|
|
|
|
a(href=`/docs/${lang}/api/entities/${kebab(prop.entity)}`)= prop.entity
|
|
|
|
| )
|
|
|
|
else if prop.kind == 'object'
|
|
|
|
if prop.hasDef
|
|
|
|
| (
|
|
|
|
a(href=`#${prop.name}`)= prop.name
|
|
|
|
| )
|
|
|
|
else if prop.kind == 'date'
|
|
|
|
| (Date)
|
|
|
|
|
2017-12-14 09:23:45 -06:00
|
|
|
mixin propTable(props)
|
|
|
|
table.props
|
|
|
|
thead: tr
|
2018-07-05 22:17:38 -05:00
|
|
|
th= i18n('docs.api.props.name')
|
|
|
|
th= i18n('docs.api.props.type')
|
|
|
|
th= i18n('docs.api.props.description')
|
2017-12-14 09:23:45 -06:00
|
|
|
tbody
|
|
|
|
each prop in props
|
|
|
|
tr
|
|
|
|
td.name= prop.name
|
|
|
|
td.type
|
2018-07-16 13:57:34 -05:00
|
|
|
+type(prop)
|
2018-07-05 22:17:38 -05:00
|
|
|
td.desc!= prop.desc ? prop.desc[lang] || prop.desc['ja'] : null
|