Skip to content

Commit c0b6e40

Browse files
committed
(fix): show alert in index.html only
alert-tip.html and no-items-found.html are separated because alert-tip.html has to shown in index.html only
1 parent e97882f commit c0b6e40

File tree

5 files changed

+22
-21
lines changed

5 files changed

+22
-21
lines changed

src/template-builder/base.pug

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
- var bodyCustomClass = ''
2+
- var showAlert = false
23

34
doctype html
45
html
@@ -24,8 +25,10 @@ html
2425
include contents/filters.html
2526
#grid.row
2627
block content
27-
include contents/alert-messages.html
28-
//- END: Content
28+
include partials/no-items-found.html
29+
if showAlert
30+
include partials/alert-tip.html
31+
// END: Content
2932
3033
//- BEGIN: Footer
3134
block footer

src/template-builder/contents/alert-messages.html

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/template-builder/pages/index.pug

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ extend ../base
88
block pageVars
99
- var pageTitle = "Classes"
1010
- var activeMenu = "home"
11+
- var showAlert = true
1112

1213
block content
1314
include ../contents/classes/grid.html
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<div class="alert-tip">
2+
<div class="alert-tip-title">Tip</div>
3+
<ul class="m-0">
4+
<li><code>.col-*</code> where <code>*</code> value can be <code>{ sm | md | lg | xl | xxl }</code></li>
5+
<li><code>.col-#</code> where <code>#</code> value can be from <code>1 to 12</code></li>
6+
<li><code>.bg-{color}</code> where <code>color</code> value can be <code>{ primary | secondary | success | danger | warning | info | light | dark }</code></li>
7+
<li><code>.bd-highlight</code> class is for demo purpose only</li>
8+
</ul>
9+
</div>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<h4 class="no-search-items align-items-center d-flex d-none">
2+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" class="bi bi-x-circle" viewBox="0 0 16 16">
3+
<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>
4+
<path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/>
5+
</svg>
6+
<span class="ms-2">No Items Found</span>
7+
</h4>

0 commit comments

Comments
 (0)