|
1 | | -<div class="bread-crumbs-comp"> |
2 | | - <div class="breadcrumbs"> |
| 1 | +<div class='bread-crumbs-comp'> |
| 2 | + <div class='breadcrumbs'> |
3 | 3 | {{#if this.showInfoToolTip}} |
4 | 4 | <span class={{this.toolTipClassNames}} data-tooltip={{@infoToolTipText}}> |
5 | | - <i class="fas fa-info-circle info-icon"></i> |
| 5 | + <i class='fas fa-info-circle info-icon'></i> |
6 | 6 | </span> |
7 | 7 | {{/if}} |
8 | | - <span class="revisions">{{this.itemsLabelText}}</span> |
| 8 | + <span class='revisions'>{{this.itemsLabelText}}</span> |
9 | 9 | {{#if this.showTruncatedView}} |
10 | | - <ul class="breadcrumbs truncated"> |
11 | | - {{#let this.itemsList.firstObject as |firstItem|}} |
12 | | - <BreadCrumbsItem @item={{firstItem}} @displayValue={{1}} @onSelect={{action "onItemSelect"}} @selectedItem={{@selectedItem}} @titleTextPath={{@titleTextPath}} @starredItemsList={{this.starredItemsList}} /> |
13 | | - {{/let}} |
14 | | - <abbr title="expand"> |
15 | | - <span {{action "showAllItems"}} class="truncate"> |
16 | | - ... |
17 | | - </span> |
18 | | - </abbr> |
19 | | - {{#let this.itemsList.lastObject as |lastItem|}} |
20 | | - <BreadCrumbsItem @item={{this.lastItem}} @displayValue={{this.lastItemValue}} @onSelect={{action "onItemSelect"}} @selectedItem={{@selectedItem}} @titleTextPath={{@titleTextPath}} @starredItemsList={{this.starredItemsList}} /> |
21 | | - {{/let}} |
| 10 | + <ul class='breadcrumbs truncated'> |
| 11 | + {{#let this.itemsList.firstObject as |firstItem|}} |
| 12 | + <BreadCrumbsItem |
| 13 | + @item={{firstItem}} |
| 14 | + @displayValue={{1}} |
| 15 | + @onSelect={{this.onItemSelect}} |
| 16 | + @selectedItem={{@selectedItem}} |
| 17 | + @titleTextPath={{@titleTextPath}} |
| 18 | + @starredItemsList={{this.starredItemsList}} |
| 19 | + /> |
| 20 | + {{/let}} |
| 21 | + <abbr title='expand'> |
| 22 | + <span {{on 'click' this.showAllItems}} class='truncate'> |
| 23 | + ... |
| 24 | + </span> |
| 25 | + </abbr> |
| 26 | + {{#let this.itemsList.lastObject as |lastItem|}} |
| 27 | + <BreadCrumbsItem |
| 28 | + @item={{this.lastItem}} |
| 29 | + @displayValue={{this.lastItemValue}} |
| 30 | + @onSelect={{this.onItemSelect}} |
| 31 | + @selectedItem={{@selectedItem}} |
| 32 | + @titleTextPath={{@titleTextPath}} |
| 33 | + @starredItemsList={{this.starredItemsList}} |
| 34 | + /> |
| 35 | + {{/let}} |
22 | 36 | </ul> |
23 | 37 | {{else}} |
24 | | - <ul class="breadcrumbs"> |
| 38 | + <ul class='breadcrumbs'> |
25 | 39 | {{#each this.itemsList as |item index|}} |
26 | | - <BreadCrumbsItem @item={{item}} @displayValue={{add-to index 1}} @onSelect={{action "onItemSelect"}} @selectedItem={{@selectedItem}} @titleTextPath={{@titleTextPath}} @starredItemsList={{this.starredItemsList}} /> |
| 40 | + <BreadCrumbsItem |
| 41 | + @item={{item}} |
| 42 | + @displayValue={{add-to index 1}} |
| 43 | + @onSelect={{this.onItemSelect}} |
| 44 | + @selectedItem={{@selectedItem}} |
| 45 | + @titleTextPath={{@titleTextPath}} |
| 46 | + @starredItemsList={{this.starredItemsList}} |
| 47 | + /> |
27 | 48 | {{/each}} |
28 | 49 | {{#if this.areManyItems}} |
29 | | - <li {{action "collapse"}} title="collapse"> |
30 | | - <i class="fas fa-minus-square"></i> |
| 50 | + <li {{on 'click' this.collapse}} title='collapse'> |
| 51 | + <i class='fas fa-minus-square'></i> |
31 | 52 | </li> |
32 | 53 | {{/if}} |
33 | 54 | </ul> |
|
0 commit comments