Add mixin for model row in model docs

This commit is contained in:
ines 2017-04-26 16:03:17 +02:00
parent 5d598b6747
commit 5a470367df
1 changed files with 18 additions and 0 deletions

View File

@ -283,3 +283,21 @@ mixin card-item(title, details)
if details.author
br
span.u-text-small.u-color-subtle by #{details.author}
//- Model row for models table
mixin model-row(name, lang, procon, size, license, default_model, divider)
- var licenses = { "CC BY-SA": "https://creativecommons.org/licenses/by-sa/3.0/", "CC BY-NC": "https://creativecommons.org/licenses/by-nc/3.0/" }
+row(divider ? "divider": null)
+cell #[code=name]
if default_model
| #[span.u-color-theme(title="default model") #[+icon("star", 16)]]
+cell=lang
each icon in procon
+cell.u-text-center #[+procon(icon ? "pro" : "con")]
+cell.u-text-right=size
+cell
if license in licenses
+a(licenses[license])=license