| <div class="row column firmware__table"> |
| <div class="table-header column small-12"> |
| <p class="inline">{{title}}</p> |
| <p class="inline firmware__active-version">Functional firmware version: {{version}}</p> |
| </div> |
| <div class="table row column"> |
| <div class="table__head"> |
| <div class="table__row"> |
| <div class="table__cell"> |
| Boot priority |
| </div> |
| <div class="table__cell"> |
| Image state |
| </div> |
| <div class="table__cell firmware__version"> |
| Version |
| </div> |
| <div class="table__cell firmware__action"> |
| Action |
| </div> |
| </div> |
| </div> |
| <div class="table__body"> |
| <div class="table__row" ng-class="firmware.activationStatus == 'Functional' ? 'firmware__primary' : ''" ng-repeat="firmware in firmwares|filter:filterBy|orderBy:'+Priority' as imageList"> |
| <div class="table__cell"> |
| <span class="table__cell-label">Boot priority:</span> |
| <div class="icon icon__up-arrow" aria-hidden="true" ng-class="{'icon-as-spacer':$first}" |
| ng-click="!$first && changePriority(firmware.imageId, firmware.Version, firmware.Priority, imageList[$index-1].Priority)" |
| ng-show="firmware.activationStatus == 'Functional' || firmware.activationStatus == 'Active'"> |
| <span class="accessible-text">firmware up in priority</span></div> |
| <div class="icon icon__down-arrow" aria-hidden="true" ng-class="{'icon-as-spacer':$last || !['Active', 'Functional'].includes(imageList[$index+1].activationStatus)}" |
| ng-click="(!$last && ['Active', 'Functional'].includes(imageList[$index + 1].activationStatus)) && changePriority(firmware.imageId, firmware.Version, firmware.Priority, imageList[$index+1].Priority + 1)" |
| ng-show="firmware.activationStatus == 'Functional' || firmware.activationStatus == 'Active'"> |
| <span class="accessible-text">firmware down in priority</span></div> |
| </div> |
| <div class="table__cell firmware__active"> |
| <span class="table__cell-label">Image state:</span> |
| <span>{{firmware.activationStatus}}</span> |
| </div> |
| <div class="table__cell firmware__version" ng-class="{'active':firmware.isExtended}"> |
| <span class="table__cell-label">Version:</span>{{firmware.Version}} |
| <button |
| ng-click="toggleMoreDropdown($event, firmware)" |
| ng-class="{'active':firmware.isExtended}" ng-show="firmware.isExtended"> |
| <icon file="icon-more.svg"></icon> |
| </button> |
| </div> |
| <div class="icon__more-dropdown" ng-show="firmware.extended.show" click-outside="firmware.extended.show=false;"> |
| <h5 class="bold">Extended version information</h5> |
| <p class="no-margin" ng-repeat="version in firmware.extended.versions">{{version.title}}: {{version.version}}</p> |
| </div> |
| <div class="table__cell firmware__action"> |
| <span class="table__cell-label">Action:</span> |
| <button class="firmware__action-link" ng-show="firmware.activationStatus == 'Ready' || firmware.activationStatus == 'Failed'" ng-click="activate(firmware.imageId, firmware.Version, firmware.imageType)">Activate</button> |
| <button class="firmware__action-link" ng-show="firmware.activationStatus != 'Functional'" ng-click="delete(firmware.imageId, firmware.Version)">Delete</button> |
| </div> |
| </div> |
| </div> |
| </div> |
| </div> |