体验新版 GitCode,发现更多精彩内容 >>
{% assign actions = include.actions %} <!-- Page title actions --> <div class="col-auto ml-auto"> {% if actions == 'users' %} <div class="d-flex"> <input type="search" class="form-control d-inline-block w-9 mr-3" placeholder="Search user…"/> {% include_cached ui/button.html text="New user" color="primary" icon="plus" %} </div> {% elsif actions == 'calendar' %} <div class="d-flex"> {% include_cached ui/button.html text="Add event" color="primary" icon="plus" %} </div> {% elsif actions == 'breadcrumb' %} <div class="d-flex"> {% include_cached ui/breadcrumb.html class="breadcrumb-alternate" %} </div> {% elsif actions == 'buttons' %} <span class="d-none d-sm-inline"> {% include_cached ui/button.html text="New view" color="secondary" icon="plus" %} </span> {% include_cached ui/button.html text="Create new report" color="primary" class="ml-3" %} {% endif %} </div>