1<div class="row column firmware__table">
2	<div class="table-header column small-12">
3		<p class="inline">{{title}}</p>
4		<p class="inline firmware__active-version">In-memory firmware version: {{version}}</p>
5	</div>
6	<div class="table row column">
7		<div class="table__head">
8			<div class="table__row">
9				<div class="table__cell">
10					Boot priority
11				</div>
12				<div class="table__cell">
13					Image state
14				</div>
15				<div class="table__cell firmware__version">
16					Version
17				</div>
18				<div class="table__cell firmware__action">
19					Action
20				</div>
21			</div>
22		</div>
23		<div class="table__body">
24			<div class="table__row" ng-class="firmware.activationStatus == 'Functional' ? 'firmware__primary' : ''" ng-repeat="firmware in firmwares|filter:filterBy|orderBy:'+Priority' as imageList">
25				<div class="table__cell">
26					<span class="table__cell-label">Boot priority:</span>
27					<div class="icon icon__up-arrow" aria-hidden="true" ng-class="{'icon-as-spacer':$first}"
28					     ng-click="!$first && changePriority(firmware.imageId, firmware.Version, firmware.Priority, firmware.Priority - 1)"
29					     ng-show="firmware.activationStatus == 'Functional' || firmware.activationStatus == 'Active'">
30						<span class="accessible-text">firmware up in priority</span></div>
31					<div class="icon icon__down-arrow" aria-hidden="true" ng-class="{'icon-as-spacer':$last || !['Active', 'Functional'].includes(imageList[$index+1].activationStatus)}"
32					    ng-click="(!$last && ['Active', 'Functional'].includes(imageList[$index + 1].activationStatus)) && changePriority(firmware.imageId, firmware.Version, firmware.Priority, firmware.Priority + 2)"
33					    ng-show="firmware.activationStatus == 'Functional' || firmware.activationStatus == 'Active'">
34						<span class="accessible-text">firmware down in priority</span></div>
35				</div>
36				<div class="table__cell firmware__active">
37					<span class="table__cell-label">Image state:</span>
38					<span>{{firmware.activationStatus}}</span>
39				</div>
40				<div class="table__cell firmware__version" ng-class="{'active':firmware.isExtended}">
41					<span class="table__cell-label">Version:</span>{{firmware.Version}}
42					<div class="icon icon__more" ng-click="firmware.extended.show = ! firmware.extended.show"
43							ng-class="{'active':firmware.isExtended}" ng-show="firmware.isExtended">
44						<svg version="1.1" x="0px" y="0px" viewBox="0 0 24.3 24.6">
45							<path d="M12.1,23C6.1,23,1.3,18.2,1.3,12.3S6.1,1.6,12.1,1.6s10.7,4.8,10.7,10.7S18,23,12.1,23z M12.1,2.6c-5.4,0-9.7,4.4-9.7,9.7 S6.7,22,12.1,22s9.7-4.4,9.7-9.7S17.4,2.6,12.1,2.6z"/>
46							<g>
47								<circle cx="6.7" cy="12.5" r="1.5"/>
48								<circle cx="12.1" cy="12.5" r="1.5"/>
49								<circle cx="17.4" cy="12.5" r="1.5"/>
50							</g>
51						</svg>
52					</div>
53				</div>
54				<div class="icon__more-dropdown" ng-show="firmware.extended.show">
55					<h5 class="bold">Extended version information</h5>
56					<p class="no-margin" ng-repeat="version in firmware.extended.versions">{{version.title}}: {{version.version}}</p>
57				</div>
58				<div class="table__cell firmware__action">
59				    <span class="table__cell-label">Action:</span>
60				    <button class="firmware__action-link" ng-show="firmware.activationStatus == 'Ready' || firmware.activationStatus == 'Failed'" ng-click="activate(firmware.imageId, firmware.Version, firmware.imageType)">Activate</button>
61				    <button class="firmware__action-link" ng-show="firmware.activationStatus != 'Functional'" ng-click="delete(firmware.imageId, firmware.Version)">Delete</button>
62				</div>
63			</div>
64		</div>
65	</div>
66</div>
67