@ -11,41 +11,99 @@
< / button >
< / button >
< div * ngIf = "customizationSettings" >
< div * ngIf = "customizationSettings" >
< div * ngIf = "customizationSettings.applicationName; then aplicationNameBlock; else ombiBlock" > < / div >
< div * ngIf = "customizationSettings.applicationName; then aplicationNameBlock; else ombiBlock" > < / div >
< ng-template # aplicationNameBlock > < a class = "navbar-brand" [ routerLink ] = " [ ' / ' ] " > {{customizationSettings.applicationName}}< / a > < / ng-template >
< ng-template # aplicationNameBlock >
< ng-template # ombiBlock > < a class = "navbar-brand" [ routerLink ] = " [ ' / ' ] " > Ombi< / a > < / ng-template >
< a class = "navbar-brand" [ routerLink ] = " [ ' / ' ] " > {{customizationSettings.applicationName}}< / a >
< / ng-template >
< ng-template # ombiBlock >
< a class = "navbar-brand" [ routerLink ] = " [ ' / ' ] " > Ombi< / a >
< / ng-template >
< / div >
< / div >
< / div >
< / div >
< div class = "collapse navbar-collapse" id = "bs-example-navbar-collapse-1" >
< div class = "collapse navbar-collapse" id = "bs-example-navbar-collapse-1" >
< ul class = "nav navbar-nav" >
< ul class = "nav navbar-nav" >
< li id = "Search" [ routerLinkActive ] = " [ ' active ' ] " > < a [ routerLink ] = " [ ' / search ' ] " > < i class = "fa fa-search" > < / i > Search< / a > < / li >
< li id = "Search" [ routerLinkActive ] = " [ ' active ' ] " >
< a [ routerLink ] = " [ ' / search ' ] " >
< i class = "fa fa-search" > < / i > {{ 'NavigationBar.Search' | translate }}< / a >
< / li >
< / ul >
< / ul >
< ul class = "nav navbar-nav" >
< ul class = "nav navbar-nav" >
< li id = "Requests" [ routerLinkActive ] = " [ ' active ' ] " > < a [ routerLink ] = " [ ' / requests ' ] " > < i class = "fa fa-plus" > < / i > Requests< / a > < / li >
< li id = "Requests" [ routerLinkActive ] = " [ ' active ' ] " >
< a [ routerLink ] = " [ ' / requests ' ] " >
< i class = "fa fa-plus" > < / i > {{ 'NavigationBar.Requests' | translate }}< / a >
< / li >
< / ul >
< / ul >
< ul * ngIf = "hasRole('Admin') || hasRole('PowerUser')" class = "nav navbar-nav" >
< ul * ngIf = "hasRole('Admin') || hasRole('PowerUser')" class = "nav navbar-nav" >
< li id = "UserManagement" [ routerLinkActive ] = " [ ' active ' ] " > < a [ routerLink ] = " [ ' / usermanagement ' ] " > < i class = "fa fa-user" > < / i > User Management< / a > < / li >
< li id = "UserManagement" [ routerLinkActive ] = " [ ' active ' ] " >
< a [ routerLink ] = " [ ' / usermanagement ' ] " >
< i class = "fa fa-user" > < / i > {{ 'NavigationBar.UserManagement' | translate }}< / a >
< / li >
< / ul >
< / ul >
< ul * ngIf = "hasRole('Admin') || hasRole('PowerUser')" class = "nav navbar-nav" >
< ul * ngIf = "hasRole('Admin') || hasRole('PowerUser')" class = "nav navbar-nav" >
< li > < a href = "https://www.paypal.me/PlexRequestsNet" target = "_blank" pTooltip = "This is how I convince my wife to let me spend my spare time developing Ombi ;)" > < i class = "fa fa-heart" style = "color:red" > < / i > Donate!< / a > < / li >
< li >
< a href = "https://www.paypal.me/PlexRequestsNet" target = "_blank" pTooltip = "{{ 'NavigationBar.DonateTooltip' | translate }}" >
< i class = "fa fa-heart" style = "color:red" > < / i > {{ 'NavigationBar.Donate' | translate }}< / a >
< / li >
< / ul >
< / ul >
< ul class = "nav navbar-nav navbar-right" >
< ul class = "nav navbar-nav navbar-right" >
< li * ngIf = "hasRole('Admin') " [ routerLinkActive ] = " [ ' active ' ] " > < a [ routerLink ] = " [ ' / Settings / About ' ] " >
< li * ngIf = "hasRole('Admin') " [ routerLinkActive ] = " [ ' active ' ] " >
< a [ routerLink ] = " [ ' / Settings / About ' ] " >
< i * ngIf = "!updateAvailable" class = "fa fa-cog" > < / i >
< i * ngIf = "!updateAvailable" class = "fa fa-cog" > < / i >
< i * ngIf = "updateAvailable" class = "fa fa-warning" style = "color:#f57f17" pTooltip = "Update Available!" tooltipPosition = "left" [ tooltipZIndex ] = " 999999 " > < / i >
< i * ngIf = "updateAvailable" class = "fa fa-warning" style = "color:#f57f17" pTooltip = "{{ 'NavigationBar.UpdateAvailableTooltip' | translate }}"
tooltipPosition="left" [tooltipZIndex]="999999">< / i >
Settings
{{ 'NavigationBar. Settings' | translate }}
< / a > < / li >
< / a >
< / li >
< li [ routerLinkActive ] = " [ ' active ' ] " class = "dropdown" >
< li [ routerLinkActive ] = " [ ' active ' ] " class = "dropdown" >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" role = "button" aria-expanded = "false" > < i class = "fa fa-user" > < / i > Welcome {{user.name}} < span class = "caret" > < / span > < / a >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" role = "button" aria-expanded = "false" >
< i class = "fa fa-user" > < / i > {{ 'NavigationBar.Welcome' | translate: {username: user.name} }}
< span class = "caret" > < / span >
< / a >
< ul class = "dropdown-menu" role = "menu" >
< li [ routerLinkActive ] = " [ ' active ' ] " >
< a [ routerLink ] = " [ ' / usermanagement / updatedetails ' ] " >
< i class = "fa fa-key" > < / i > {{ 'NavigationBar.UpdateDetails' | translate }}< / a >
< / li >
< li [ routerLinkActive ] = " [ ' active ' ] " >
< a ( click ) = " logOut ( ) " >
< i class = "fa fa-sign-out" > < / i > {{ 'NavigationBar.UpdateDetails' | translate }}< / a >
< / li >
< / ul >
< / li >
< li class = "dropdown" >
< a class = "dropdown-toggle" data-toggle = "dropdown" role = "button" aria-expanded = "false" >
< i class = "fa fa-language" aria-hidden = "true" >
< span class = "caret" > < / span >
< / i >
< / a >
< ul class = "dropdown-menu" role = "menu" >
< ul class = "dropdown-menu" role = "menu" >
< li [ routerLinkActive ] = " [ ' active ' ] " > < a [ routerLink ] = " [ ' / usermanagement / updatedetails ' ] " > < i class = "fa fa-key" > < / i > Update Details< / a > < / li >
< li [ ngClass ] = " { ' active ' : ' en ' = = = translate . currentLang } " >
< li [ routerLinkActive ] = " [ ' active ' ] " > < a ( click ) = " logOut ( ) " > < i class = "fa fa-sign-out" > < / i > Logout< / a > < / li >
< a ( click ) = " translate . use ( ' en ' ) " [ translate ] = " ' NavigationBar . Language . English ' " > < / a >
< / li >
< li [ ngClass ] = " { ' active ' : ' fr ' = = = translate . currentLang } " >
< a ( click ) = " translate . use ( ' fr ' ) " [ translate ] = " ' NavigationBar . Language . French ' " > < / a >
< / li >
< li [ ngClass ] = " { ' active ' : ' da ' = = = translate . currentLang } " >
< a ( click ) = " translate . use ( ' da ' ) " [ translate ] = " ' NavigationBar . Language . Danish ' " > < / a >
< / li >
< li [ ngClass ] = " { ' active ' : ' de ' = = = translate . currentLang } " >
< a ( click ) = " translate . use ( ' de ' ) " [ translate ] = " ' NavigationBar . Language . German ' " > < / a >
< / li >
< li [ ngClass ] = " { ' active ' : ' it ' = = = translate . currentLang } " >
< a ( click ) = " translate . use ( ' it ' ) " [ translate ] = " ' NavigationBar . Language . Italian ' " > < / a >
< / li >
< li [ ngClass ] = " { ' active ' : ' es ' = = = translate . currentLang } " >
< a ( click ) = " translate . use ( ' es ' ) " [ translate ] = " ' NavigationBar . Language . Spanish ' " > < / a >
< / li >
< li [ ngClass ] = " { ' active ' : ' nl ' = = = translate . currentLang } " >
< a ( click ) = " translate . use ( ' nl ' ) " [ translate ] = " ' NavigationBar . Language . Dutch ' " > < / a >
< / li >
< / ul >
< / ul >
< / li >
< / li >
< / ul >
< / ul >
@ -57,6 +115,3 @@
< div [ ngClass ] = " { ' container top-spacing ' : showNav } " >
< div [ ngClass ] = " { ' container top-spacing ' : showNav } " >
< router-outlet > < / router-outlet >
< router-outlet > < / router-outlet >
< / div >
< / div >