From 5a470367df67bafc4960bab85192655c7a456736 Mon Sep 17 00:00:00 2001 From: ines Date: Wed, 26 Apr 2017 16:03:17 +0200 Subject: [PATCH] Add mixin for model row in model docs --- website/_includes/_mixins.jade | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/website/_includes/_mixins.jade b/website/_includes/_mixins.jade index 9ca60b87d..9766f5c5a 100644 --- a/website/_includes/_mixins.jade +++ b/website/_includes/_mixins.jade @@ -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