|
50 | 50 | title="History"
|
51 | 51 | [routerLink]="['/history']"
|
52 | 52 | >
|
53 |
| - <i class="fas fa-history mr-1"></i> Last visited: |
| 53 | + <i class="fas fa-history mr-1"></i> History bookmarks: |
54 | 54 | </a>
|
55 | 55 | <div *ngIf="(latestVisitedBookmarks$ | async) as latestVisitedBookmarks" class="mt-1" (mouseout)="resetHoveringLastVisited()">
|
56 | 56 | <ng-container *ngFor="let bookmark of latestVisitedBookmarks; let i = index" class="mt-1">
|
|
63 | 63 | [class.public-bookmarks-last-search]="bookmark.public === true"
|
64 | 64 | href="{{bookmark.location}}}"
|
65 | 65 | title="Go to {{bookmark.name}}"
|
| 66 | + (click)="addToHistoryService.promoteInHistoryIfLoggedIn(userIsLoggedIn, bookmark)" |
| 67 | + (auxclick)="addToHistoryService.promoteInHistoryIfLoggedIn(userIsLoggedIn, bookmark)" |
66 | 68 | target="_blank">
|
67 | 69 | <i class="fa fa-xs fa-bookmark mr-1"></i>
|
68 | 70 | <span
|
|
91 | 93 | title="{{'Search in ' + mySearch.searchDomain + ': ' + mySearch.text}}"
|
92 | 94 | > <i class="fa fa-xs fa-search mr-1"></i>
|
93 | 95 | <span
|
94 |
| - *ngIf="!hoveringLastSearches[i]; else longVersion">{{mySearch.text.length > 20 ? mySearch.text.substring(0, 20) + '...' : mySearch.text}}</span> |
| 96 | + *ngIf="!hoveringLastSearches[i]; else longVersion">{{mySearch.text.length > 30 ? mySearch.text.substring(0, 30) + '...' : mySearch.text}}</span> |
95 | 97 | <ng-template #longVersion>{{mySearch.text}}</ng-template>
|
96 | 98 | <i *ngIf="mySearch.searchDomain === 'my-snippets' || mySearch.searchDomain === 'public-snippets'"
|
97 | 99 | class="fa fa-xs fa-code ml-1"></i>
|
98 | 100 | <i *ngIf="mySearch.searchDomain === 'my-bookmarks' || mySearch.searchDomain === 'public-bookmarks'"
|
99 | 101 | class="fa fa-xs fa-bookmark ml-1"></i>
|
| 102 | + <span *ngIf="mySearch.searchDomain === 'all-mine'"> |
| 103 | + <i class="fa fa-xs fa-bookmark ml-1"></i> |
| 104 | + <i class="fa fa-xs fa-code ml-1"></i> |
| 105 | + </span> |
| 106 | + |
100 | 107 | </a>
|
101 | 108 | </span>
|
102 | 109 | </ng-container>
|
|
0 commit comments