page-title.html 1.6 KB
Newer Older
C
chomik 已提交
1
{% if page.page-title or layout.page-title %}
C
codecalm 已提交
2
<!-- Page title -->
C
chomik 已提交
3 4
<div class="page-title-box">

C
codecalm 已提交
5
   <div class="row align-items-center">
C
codecalm 已提交
6
      <div class="col-auto">
C
codecalm 已提交
7
         {% if page.page-pretitle %}
C
codecalm 已提交
8
         <!-- Page pre-title -->
C
codecalm 已提交
9
         <div class="page-pretitle">
C
codecalm 已提交
10
            {{ page.page-pretitle }}
C
codecalm 已提交
11
         </div>
C
codecalm 已提交
12
         {% endif %}
C
codecalm 已提交
13 14 15 16
         <h2 class="page-title">
            {{ page.page-title | default: layout.page-title }}
         </h2>
      </div>
C
codecalm 已提交
17

C
codecalm 已提交
18 19 20 21 22 23
      {% if page.page-title-description %}
      <div class="col-auto">
         <div class="text-muted text-h5">{{ page.page-title-description }}</div>
      </div>
      {% endif %}

C
codecalm 已提交
24 25
      {% if page.page-title-actions %}
      <!-- Page title actions -->
C
codecalm 已提交
26 27
      <div class="col-auto ml-auto">
         {% if page.page-title-actions == 'users' %}
C
codecalm 已提交
28 29
         <div class="d-flex">
            <input type="search" class="form-control d-inline-block w-9 mr-3" placeholder="Search user&hellip;" />
30
            {% include_cached ui/button.html text="New user" color="primary" icon="plus" %}
C
codecalm 已提交
31 32 33
         </div>
         {% elsif page.page-title-actions == 'calendar' %}
         <div class="d-flex">
34
            {% include_cached ui/button.html text="Add event" color="primary" icon="plus" %}
C
codecalm 已提交
35
         </div>
C
codecalm 已提交
36 37
         {% else %}
            <span class="d-none d-sm-inline">
38
               {% include_cached ui/button.html text="New view" color="secondary" icon="plus" %}
C
codecalm 已提交
39
            </span>
40
            {% include_cached ui/button.html text="Create new report" color="primary" class="ml-3" %}
C
codecalm 已提交
41
         {% endif %}
C
codecalm 已提交
42
      </div>
C
codecalm 已提交
43
      {% endif %}
C
codecalm 已提交
44
   </div>
C
chomik 已提交
45 46
</div>
{% endif %}