<div ngbDropdownMenu>
<a *ngIf="user.account" ngbDropdownItem ngbDropdownToggle class="dropdown-item" [routerLink]="[ '/accounts', user.account.nameWithHost ]">
- <my-global-icon iconName="go"></my-global-icon> <ng-container i18n>Public profile</ng-container>
+ <my-global-icon iconName="go" aria-hidden="true"></my-global-icon> <ng-container i18n>Public profile</ng-container>
</a>
<div class="dropdown-divider"></div>
<a ngbDropdownItem ngbDropdownToggle class="dropdown-item" routerLink="/my-account">
- <my-global-icon iconName="user"></my-global-icon> <ng-container i18n>Account settings</ng-container>
+ <my-global-icon iconName="user" aria-hidden="true"></my-global-icon> <ng-container i18n>Account settings</ng-container>
</a>
<a ngbDropdownItem ngbDropdownToggle class="dropdown-item" routerLink="/my-account/video-channels">
- <my-global-icon iconName="folder"></my-global-icon> <ng-container i18n>Channels settings</ng-container>
+ <my-global-icon iconName="folder" aria-hidden="true"></my-global-icon> <ng-container i18n>Channels settings</ng-container>
</a>
<div class="dropdown-divider"></div>
<a ngbDropdownItem ngbDropdownToggle class="dropdown-item" (click)="openLanguageChooser()">
- <my-global-icon iconName="language"></my-global-icon>
+ <my-global-icon iconName="language" aria-hidden="true"></my-global-icon>
<ng-container i18n>Interface: {{ language }}</ng-container>
<i class="ml-auto glyphicon glyphicon-menu-right"></i>
</a>
<a ngbDropdownItem ngbDropdownToggle class="dropdown-item" routerLink="/my-account/settings" fragment="video-settings">
- <my-global-icon iconName="video-lang"></my-global-icon>
+ <my-global-icon iconName="video-lang" aria-hidden="true"></my-global-icon>
<ng-container i18n>Videos: {{ videoLanguages.join(', ') }}</ng-container>
<i class="ml-auto glyphicon glyphicon-menu-right"></i>
</a>
<a ngbDropdownItem ngbDropdownToggle class="dropdown-item" routerLink="/my-account/settings" fragment="video-settings">
- <my-global-icon class="hover-display-toggle" [ngClass]="{ 'not-displayed': user.nsfwPolicy === 'display' }" iconName="sensitive"></my-global-icon>
- <my-global-icon class="hover-display-toggle" [ngClass]="{ 'not-displayed': user.nsfwPolicy !== 'display' }" iconName="unsensitive"></my-global-icon>
+ <my-global-icon class="hover-display-toggle" [ngClass]="{ 'not-displayed': user.nsfwPolicy === 'display' }" iconName="sensitive" aria-hidden="true"></my-global-icon>
+ <my-global-icon class="hover-display-toggle" [ngClass]="{ 'not-displayed': user.nsfwPolicy !== 'display' }" iconName="unsensitive" aria-hidden="true"></my-global-icon>
<ng-container i18n>Sensitive: {{ nsfwPolicy }}</ng-container>
<i class="ml-auto glyphicon glyphicon-menu-right"></i>
</a>
<a ngbDropdownItem class="dropdown-item" (click)="toggleUseP2P()">
- <my-global-icon iconName="p2p"></my-global-icon>
+ <my-global-icon iconName="p2p" aria-hidden="true"></my-global-icon>
<ng-container i18n>Help share videos</ng-container>
<input type="checkbox" [checked]="user.webTorrentEnabled"/><label class="ml-auto" for="switch">Toggle p2p</label>
</a>
<a ngbDropdownItem ngbDropdownToggle class="dropdown-item" routerLink="/my-account">
- <my-global-icon iconName="more-horizontal"></my-global-icon> <ng-container i18n>More account settings</ng-container>
+ <my-global-icon iconName="more-horizontal" aria-hidden="true"></my-global-icon> <ng-container i18n>More account settings</ng-container>
</a>
<div class="dropdown-divider"></div>
<a ngbDropdownItem ngbDropdownToggle class="dropdown-item" (click)="openHotkeysCheatSheet()">
- <i class="icon icon-shortcuts"></i> <ng-container i18n>Keyboard shortcuts</ng-container>
+ <i class="icon icon-shortcuts" aria-hidden="true"></i> <ng-container i18n>Keyboard shortcuts</ng-container>
</a>
<a ngbDropdownItem ngbDropdownToggle (click)="logout($event)" class="dropdown-item" href="#">
- <my-global-icon iconName="sign-out"></my-global-icon> <ng-container i18n>Log out</ng-container>
+ <my-global-icon iconName="sign-out" aria-hidden="true"></my-global-icon> <ng-container i18n>Log out</ng-container>
</a>
</div>
</div>
<div i18n class="block-title">MY LIBRARY</div>
<a routerLink="/my-account/videos" routerLinkActive="active">
- <my-global-icon iconName="videos"></my-global-icon>
+ <my-global-icon iconName="videos" aria-hidden="true"></my-global-icon>
<ng-container i18n>Videos</ng-container>
</a>
<a routerLink="/my-account/video-playlists" routerLinkActive="active">
- <my-global-icon iconName="playlists"></my-global-icon>
+ <my-global-icon iconName="playlists" aria-hidden="true"></my-global-icon>
<ng-container i18n>Playlists</ng-container>
</a>
<a routerLink="/videos/subscriptions" routerLinkActive="active">
- <my-global-icon iconName="subscriptions"></my-global-icon>
+ <my-global-icon iconName="subscriptions" aria-hidden="true"></my-global-icon>
<ng-container i18n>Subscriptions</ng-container>
</a>
<a routerLink="/my-account/history/videos" routerLinkActive="active">
- <my-global-icon iconName="history"></my-global-icon>
+ <my-global-icon iconName="history" aria-hidden="true"></my-global-icon>
<ng-container i18n>History</ng-container>
</a>
<div i18n class="block-title">VIDEOS</div>
<a routerLink="/videos/overview" routerLinkActive="active">
- <my-global-icon iconName="globe"></my-global-icon>
+ <my-global-icon iconName="globe" aria-hidden="true"></my-global-icon>
<ng-container i18n>Discover</ng-container>
</a>
<a routerLink="/videos/trending" routerLinkActive="active">
- <my-global-icon iconName="trending"></my-global-icon>
+ <my-global-icon iconName="trending" aria-hidden="true"></my-global-icon>
<ng-container i18n>Trending</ng-container>
</a>
<a routerLink="/videos/most-liked" routerLinkActive="active">
- <my-global-icon iconName="like"></my-global-icon>
+ <my-global-icon iconName="like" aria-hidden="true"></my-global-icon>
<ng-container i18n>Most liked</ng-container>
</a>
<a routerLink="/videos/recently-added" routerLinkActive="active">
- <my-global-icon iconName="recently-added"></my-global-icon>
+ <my-global-icon iconName="recently-added" aria-hidden="true"></my-global-icon>
<ng-container i18n>Recently added</ng-container>
</a>
<a routerLink="/videos/local" routerLinkActive="active">
- <my-global-icon iconName="home"></my-global-icon>
+ <my-global-icon iconName="home" aria-hidden="true"></my-global-icon>
<ng-container i18n>Local</ng-container>
</a>
</div>
<div class="footer">
<div class="panel-block">
<a *ngIf="userHasAdminAccess" [routerLink]="getFirstAdminRouteAvailable()" routerLinkActive="active">
- <my-global-icon iconName="cog"></my-global-icon>
+ <my-global-icon iconName="cog" aria-hidden="true"></my-global-icon>
<ng-container i18n>Administration</ng-container>
</a>
<a *ngIf="!isLoggedIn" (click)="openQuickSettings()">
- <my-global-icon iconName="cog"></my-global-icon>
+ <my-global-icon iconName="cog" aria-hidden="true"></my-global-icon>
<ng-container i18n>Settings</ng-container>
</a>
<a routerLink="/about/instance">
- <my-global-icon iconName="help"></my-global-icon>
+ <my-global-icon iconName="help" aria-hidden="true"></my-global-icon>
<ng-container i18n>About</ng-container>
</a>
</div>