[Trunk | Library]:

1. assets/common-assets: Add beta_flag.svg.   
2. assets/common-assets/library.css: Add classes 'small-beta-indication' and 'large-beta-indication' to be used in navigation bar.
3. navigationBar.component.html: Add beta_flag.svg in navigation bar when the environment is 'beta'.


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@57237 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
konstantina.galouni 2019-10-02 14:03:54 +00:00
parent 30c8bac865
commit 1ba65bcbe7
1 changed files with 17 additions and 6 deletions

View File

@ -1,11 +1,15 @@
<div *ngIf="showMenu"> <div *ngIf="showMenu">
<div class="tm-header-mobile uk-hidden@m"> <div class="tm-header-mobile uk-hidden@m">
<nav class="uk-navbar-container uk-navbar" uk-navbar=""> <nav class="uk-navbar-container uk-navbar" uk-navbar="">
<div *ngIf="!onlyTop || userMenu" class="uk-navbar-left"> <div *ngIf="properties.environment =='beta'" class="uk-position-top-left">
<a class="uk-navbar-toggle" href="#tm-mobile" uk-toggle="" style="z-index:1000;"> <img class="small-beta-indication" src="{{logoPath}}beta_flag.svg" alt="BETA">
<div uk-navbar-toggle-icon="" class="uk-navbar-toggle-icon uk-icon custom-navbar-toggle-icon"> </div> </div>
</a> <!-- class="uk-navbar-right"--> <!-- if we want to revert the menu - put it on the right -->
</div> <div *ngIf="!onlyTop || userMenu" class="uk-navbar-left">
<a class="uk-navbar-toggle" href="#tm-mobile" uk-toggle="" style="z-index:1000;">
<div uk-navbar-toggle-icon="" class="uk-navbar-toggle-icon uk-icon custom-navbar-toggle-icon"> </div>
</a>
</div>
<div class="uk-navbar-center"> <div class="uk-navbar-center">
<a *ngIf="!community" class="uk-navbar-item uk-logo" routerLinkActive="uk-link" routerLink="/" > <a *ngIf="!community" class="uk-navbar-item uk-logo" routerLinkActive="uk-link" routerLink="/" >
<img src="{{logoPath}}logo-small-{{portal}}.png" alt="OpenAIRE" class="uk-responsive-height"> <img src="{{logoPath}}logo-small-{{portal}}.png" alt="OpenAIRE" class="uk-responsive-height">
@ -26,7 +30,8 @@
<user-mini></user-mini> <user-mini></user-mini>
</div--> </div-->
</nav> </nav>
<div id="tm-mobile" uk-offcanvas="" mode="slide" overlay="" class="uk-offcanvas" > <!-- uk-offcanvas="flip: true"--> <!-- if we want to revert the menu - put it on the right -->
<div id="tm-mobile" uk-offcanvas="" mode="slide" overlay="" class="uk-offcanvas uk-hidden@m" style="z-index:10000;" >
<div class="uk-offcanvas-bar"> <div class="uk-offcanvas-bar">
<button class="uk-offcanvas-close uk-close uk-icon" type="button" uk-close=""></button> <button class="uk-offcanvas-close uk-close uk-icon" type="button" uk-close=""></button>
<div class="uk-child-width-1-1 uk-grid" uk-grid=""> <div class="uk-child-width-1-1 uk-grid" uk-grid="">
@ -112,6 +117,9 @@
<div class="uk-container uk-container-expand"> <div class="uk-container uk-container-expand">
<nav class="uk-navbar" uk-navbar="{&quot;align&quot;:&quot;left&quot;}"> <nav class="uk-navbar" uk-navbar="{&quot;align&quot;:&quot;left&quot;}">
<div class="uk-navbar-left uk-visible@l "> <div class="uk-navbar-left uk-visible@l ">
<div *ngIf="properties.environment =='beta'" class="uk-position-top-left">
<img class="large-beta-indication" src="{{logoPath}}beta_flag.svg" alt="BETA">
</div>
<a *ngIf="!community" routerLinkActive="uk-link" routerLink="/" class="uk-logo uk-navbar-item"> <a *ngIf="!community" routerLinkActive="uk-link" routerLink="/" class="uk-logo uk-navbar-item">
<img src="{{logoPath}}logo-large-{{portal}}.png" alt="OpenAIRE" class="uk-responsive-height"> <img src="{{logoPath}}logo-large-{{portal}}.png" alt="OpenAIRE" class="uk-responsive-height">
</a> </a>
@ -142,6 +150,9 @@
</div> </div>
</div> </div>
<div class="uk-navbar-left uk-visible@m uk-hidden@l uk-width-1-3"> <div class="uk-navbar-left uk-visible@m uk-hidden@l uk-width-1-3">
<div *ngIf="properties.environment =='beta'" class="uk-position-top-left">
<img class="large-beta-indication" src="{{logoPath}}beta_flag.svg" alt="BETA">
</div>
<a *ngIf="!community" routerLinkActive="uk-link" routerLink="/" class="uk-logo uk-navbar-item"> <a *ngIf="!community" routerLinkActive="uk-link" routerLink="/" class="uk-logo uk-navbar-item">
<img src="{{logoPath}}logo-small-{{portal}}.png" alt="OpenAIRE" class="uk-responsive-height"> <img src="{{logoPath}}logo-small-{{portal}}.png" alt="OpenAIRE" class="uk-responsive-height">
</a> </a>