mirror of
https://github.com/tabler/tabler.git
synced 2026-08-01 07:54:38 +04:00
navbar top
This commit is contained in:
+26
-26
@@ -12,32 +12,6 @@ forms:
|
||||
badge: New
|
||||
badge-color: red
|
||||
|
||||
error:
|
||||
title: Error pages
|
||||
icon: file-minus
|
||||
children:
|
||||
400:
|
||||
url: 400.html
|
||||
title: 400 page
|
||||
401:
|
||||
url: 401.html
|
||||
title: 401 page
|
||||
403:
|
||||
url: 403.html
|
||||
title: 403 page
|
||||
404:
|
||||
url: 404.html
|
||||
title: 404 page
|
||||
500:
|
||||
url: 500.html
|
||||
title: 500 page
|
||||
503:
|
||||
url: 503.html
|
||||
title: 503 page
|
||||
maintenance:
|
||||
url: maintenance.html
|
||||
title: Maintenance page
|
||||
|
||||
base:
|
||||
title: Base
|
||||
icon: package
|
||||
@@ -79,6 +53,32 @@ charts:
|
||||
title: Charts
|
||||
icon: pie-chart
|
||||
|
||||
error:
|
||||
title: Error pages
|
||||
icon: file-minus
|
||||
children:
|
||||
400:
|
||||
url: 400.html
|
||||
title: 400 page
|
||||
401:
|
||||
url: 401.html
|
||||
title: 401 page
|
||||
403:
|
||||
url: 403.html
|
||||
title: 403 page
|
||||
404:
|
||||
url: 404.html
|
||||
title: 404 page
|
||||
500:
|
||||
url: 500.html
|
||||
title: 500 page
|
||||
503:
|
||||
url: 503.html
|
||||
title: 503 page
|
||||
maintenance:
|
||||
url: maintenance.html
|
||||
title: Maintenance page
|
||||
|
||||
a:
|
||||
title: A
|
||||
icon: menu
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
<ul class="nav navbar-menu align-items-center ml-auto">
|
||||
<li class="nav-item d-none d-lg-flex mr-3">
|
||||
<a href="{{ site.github_url }}" class="btn btn-sm btn-success" target="_blank">Source code</a>
|
||||
{% include ui/button.html href=site.github_url text="Source code" icon="brand/github" icon-color="github" external=true %}
|
||||
</li>
|
||||
|
||||
<li class="nav-item dropdown">
|
||||
|
||||
@@ -1,16 +1,28 @@
|
||||
{% removeemptylines %}
|
||||
{% assign spinner-class = false %}
|
||||
|
||||
{% assign color = include.color | default: 'secondary' %}
|
||||
{% if include.color == false %}
|
||||
{% assign color = null %}
|
||||
{% endif %}
|
||||
|
||||
{% assign provider = include.provider | default: 'fe' %}
|
||||
{% if include.text %}{% assign spinner-class="mr-2" %}{% endif %}
|
||||
|
||||
{% assign href = '#' %}
|
||||
{% if include.href %}
|
||||
{% if include.external %}
|
||||
{% assign href = include.href %}
|
||||
{% else %}
|
||||
{% assign href = site.base | append: '/' | append: include.href %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% assign e = include.element | default: 'a' %}
|
||||
<{{ e }}{% if e == 'a' %} href="{% if include.href %}{{ site.base }}/{{ include.href }}{% else %}#{% endif %}"{% endif %}{% if include.type %} type="{{ include.type }}"{% endif %} class="btn{% if include.height %} btn-{{ include.height }}{% endif %}{% if color %} btn-{% if include.outline %}outline-{% endif %}{{ color }}{% endif %}{% if include.disabled %} disabled{% endif %}{% if include.square %} btn-square{% endif %}{% if include.pill %} btn-pill{% endif %}{% if include['size'] %} btn-{{ include['size'] }}{% endif %}{% if include.class %} {{ include.class }}{% endif %}{% if include.block %} btn-block{% endif %}{% if include.link %} btn-link{% endif %}{% if include.icon-only %} btn-icon{% endif %}">
|
||||
<{{ e }}{% if e == 'a' %} href="{{ href }}"{% endif %}{% if include.type %} type="{{ include.type }}"{% endif %} class="btn{% if include.height %} btn-{{ include.height }}{% endif %}{% if color %} btn-{% if include.outline %}outline-{% endif %}{{ color }}{% endif %}{% if include.disabled %} disabled{% endif %}{% if include.square %} btn-square{% endif %}{% if include.pill %} btn-pill{% endif %}{% if include['size'] %} btn-{{ include['size'] }}{% endif %}{% if include.class %} {{ include.class }}{% endif %}{% if include.block %} btn-block{% endif %}{% if include.link %} btn-link{% endif %}{% if include.icon-only %} btn-icon{% endif %}"{% if include.external %} target="_blank"{% endif %}>
|
||||
{% if include.spinner %}
|
||||
{% include ui/spinner.html color=false size="sm" class=spinner-class element="span" %}{% endif %}
|
||||
{% if include.icon %}{% include ui/icon.html icon=include.icon use-svg=true %}{% endif %}
|
||||
{% if include.icon %}{% include ui/icon.html icon=include.icon use-svg=true color=include.icon-color %}{% endif %}
|
||||
{% unless include.icon-only %}
|
||||
{{ include.text | default: "Button" }}
|
||||
{% if include.icon-right %}{% include ui/icon.html icon=include.icon-right use-svg=true right=true %}{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user