<!--

    Copyright © 2016-2019 The Thingsboard Authors

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<div flex class="tb-breadcrumb" layout="row">
	<h1 flex hide-gt-sm>{{ steps[steps.length-1].ncyBreadcrumbLabel | breadcrumbLabel }}</h1>
	<span hide-xs hide-sm ng-repeat="step in steps" ng-switch="$last || !!step.abstract">
	    <a ng-switch-when="false" href="{{step.ncyBreadcrumbLink}}">
	    <md-icon ng-show="step.ncyBreadcrumbLabel | breadcrumbIcon" 
	    class="material-icons"
	    aria-label="{{step.ncyBreadcrumbLabel | breadcrumbIcon}}">
	    	{{step.ncyBreadcrumbLabel | breadcrumbIcon}}
	    </md-icon>
	    {{step.ncyBreadcrumbLabel | breadcrumbLabel}}
	    </a>
	    <span ng-switch-when="true">
	    	<md-icon ng-show="step.ncyBreadcrumbLabel | breadcrumbIcon" 
	    	class="material-icons"
	    	aria-label="{{step.ncyBreadcrumbLabel | breadcrumbIcon}}">
	    	{{step.ncyBreadcrumbLabel | breadcrumbIcon}}
	    	</md-icon>
	    	{{step.ncyBreadcrumbLabel | breadcrumbLabel}}</span>
	    <span class="divider" ng-hide="$last"> > </span>
	</span>
</div>
