Cross out applications that already in the list
<uib-tab heading="Recently Viewed">
<div style="padding: 1em 0">
<ul class="list-unstyled">
- <li ng-repeat="item in ctrl.history"
- class="clickable"
- ng-click="ctrl.addRecentViewed(item)">
- <a>
- <waltz-icon class='text-muted'
- fixed-width="true"
- name="{{ item.kind | toIconName:'entity' }}"></waltz-icon>
- <span ng-bind="::item.name"></span>
+ <li ng-repeat="app in ctrl.history">
+ <a ng-if="!ctrl.isAppInGroup(app.stateParams)"
+ class='clickable'
+ ng-click="ctrl.addRecentViewed(app)">
+ <waltz-icon fixed-width="true"
+ class="text-muted"
+ name="{{ app.kind | toIconName:'entity' }}"></waltz-icon>
+ <span ng-bind="::app.name"></span>
+ </a>
+ <a ng-if="ctrl.isAppInGroup(app.stateParams)"
+ class='text-muted'>
+ <waltz-icon fixed-width="true"
+ name="{{ app.kind | toIconName:'entity' }}"></waltz-icon>
+ <span ng-bind="::app.name"
+ style="text-decoration: line-through"></span>
</a>
</li>
<waltz-no-data ng-if="ctrl.history.length == 0">
