|
1 | 1 | <div{{ attributes.defaults({
|
2 |
| - class:'my-3 p-3 bg-body rounded shadow-sm' |
| 2 | + class:'my-3 p-3 bg-body rounded shadow-sm' |
3 | 3 | }) }}>
|
4 |
| - {{ this.init }} |
5 |
| - {% set logs = this.logs %} |
6 |
| - {% if logs|length %} |
7 |
| - <div class="nav justify-content-end pb-1"> |
8 |
| - {% if app.request.attributes.get("project") is not null %} |
9 |
| - <a href="{{ path('bug_catcher.dashboard.index') }}" class="btn btn-primary btn-sm mx-1"> |
10 |
| - <twig:ux:icon name="lucide:filter-x" width="20px" height="20px"/> |
11 |
| - {{ 'Clear filter'|trans }} |
12 |
| - </a> |
13 |
| - {% endif %} |
14 |
| - <button class="btn btn-outline-secondary btn-sm" aria-current="page" |
15 |
| - data-action="live#action" |
16 |
| - data-live-action-param="clearAll" |
17 |
| - data-live-from-param="{{ this.to|date('Y-m-d-H-i-s') }}" |
18 |
| - data-live-to-param="{{ this.from|date('Y-m-d-H-i-s') }}" |
19 |
| - > |
20 |
| - <twig:ux:icon name="game-icons:magic-broom" width="20px" height="20px"/> |
21 |
| - {{ 'Fix all'|trans }} |
22 |
| - </button> |
23 |
| - </div> |
24 |
| - <ul class="list-group"> |
25 |
| - {% for log in logs %} |
26 |
| - {{ component(log.componentName, {log: log, status: status, key:log.id}) }} |
27 |
| - {% endfor %} |
28 |
| - </ul> |
29 |
| - {% else %} |
30 |
| - <h6 class="border-bottom pb-1 mb-0">Your are happy, No Errors |
31 |
| - <twig:ux:icon name="game-icons:schrodingers-cat-alive" width="30px" height="30px"/> |
32 |
| - </h6> |
33 |
| - {% endif %} |
| 4 | + {{ this.init }} |
| 5 | + {% set logs = this.logs %} |
| 6 | + {% if logs|length or query is not empty %} |
| 7 | + <div class="nav d-flex justify-content-between pb-1"> |
| 8 | + <div> |
| 9 | + <input |
| 10 | + type="search" |
| 11 | + data-model="query" |
| 12 | + class="form-control form-control-sm" |
| 13 | + placeholder="{{ 'Error code'|trans }}" |
| 14 | + > |
| 15 | + </div> |
| 16 | + <div> |
| 17 | + {% if app.request.attributes.get("project") is not null %} |
| 18 | + <a href="{{ path('bug_catcher.dashboard.index') }}" class="btn btn-primary btn-sm mx-1"> |
| 19 | + <twig:ux:icon name="lucide:filter-x" width="20px" height="20px"/> |
| 20 | + {{ 'Clear filter'|trans }} |
| 21 | + </a> |
| 22 | + {% endif %} |
| 23 | + <button class="btn btn-outline-secondary btn-sm" aria-current="page" |
| 24 | + data-action="live#action" |
| 25 | + data-live-action-param="clearAll" |
| 26 | + data-live-from-param="{{ this.to|date('Y-m-d-H-i-s') }}" |
| 27 | + data-live-to-param="{{ this.from|date('Y-m-d-H-i-s') }}" |
| 28 | + > |
| 29 | + <twig:ux:icon name="game-icons:magic-broom" width="20px" height="20px"/> |
| 30 | + {{ 'Fix all'|trans }} |
| 31 | + </button> |
| 32 | + </div> |
| 33 | + </div> |
| 34 | + <ul class="list-group"> |
| 35 | + {% for log in logs %} |
| 36 | + {{ component(log.componentName, {log: log, status: status, key:log.id}) }} |
| 37 | + {% endfor %} |
| 38 | + </ul> |
| 39 | + {% else %} |
| 40 | + <h6 class="border-bottom pb-1 mb-0">Your are happy, No Errors |
| 41 | + <twig:ux:icon name="game-icons:schrodingers-cat-alive" width="30px" height="30px"/> |
| 42 | + </h6> |
| 43 | + {% endif %} |
34 | 44 | </div>
|
0 commit comments