diff options
author | Mario <mario@mariovavti.com> | 2021-07-29 08:25:05 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-07-29 08:25:05 +0000 |
commit | d459dfac74e90c29950d49a82edc19fd913d435e (patch) | |
tree | 7bed5f2dbc318f87bbe0f4be2cde3dde09cd97c7 /vendor/twbs/bootstrap/site/layouts/shortcodes/table.html | |
parent | cec2f0d894b80f3affeb60cff2d4afa49a2019a8 (diff) | |
download | volse-hubzilla-d459dfac74e90c29950d49a82edc19fd913d435e.tar.gz volse-hubzilla-d459dfac74e90c29950d49a82edc19fd913d435e.tar.bz2 volse-hubzilla-d459dfac74e90c29950d49a82edc19fd913d435e.zip |
update to bootstrap 5.0.2
Diffstat (limited to 'vendor/twbs/bootstrap/site/layouts/shortcodes/table.html')
-rw-r--r-- | vendor/twbs/bootstrap/site/layouts/shortcodes/table.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/vendor/twbs/bootstrap/site/layouts/shortcodes/table.html b/vendor/twbs/bootstrap/site/layouts/shortcodes/table.html new file mode 100644 index 000000000..43f230ab8 --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/shortcodes/table.html @@ -0,0 +1,30 @@ +{{- /* + Usage: `table [args]` + + `args` are optional and can be one of the following: + class: any class(es) to be added to the `table` - default "" + simplified: show a simplified version in the examples - default `true` +*/ -}} + +{{- $simplified := .Get "simplified" | default true -}} + +{{- $table_attributes := "" -}} +{{- $table_content := " ...\n" -}} + +{{- with .Get "class" -}} +{{- $table_attributes = printf ` class="%s"` . -}} +{{- end -}} + +{{- if eq $simplified "false" -}} +{{- $table_content = partialCached "table-content" . -}} +{{- end -}} + +{{- $table := printf "<table%s>\n%s</table>" $table_attributes $table_content -}} + +<div class="bd-example"> + <table{{ with .Get "class" }} class="{{ . }}"{{ end }}> + {{ partialCached "table-content" . }} + </table> +</div> + +{{- highlight $table "html" "" -}} |