Add version label to menu bar
parent
43960fa3af
commit
732d8a15f0
|
@ -29,6 +29,15 @@ li {
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.version-label {
|
||||||
|
display:block;
|
||||||
|
position: fixed;
|
||||||
|
top: 32px;
|
||||||
|
left: 106px;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #7e7d64;
|
||||||
|
}
|
||||||
|
|
||||||
.unprocessed {
|
.unprocessed {
|
||||||
-webkit-animation-name: color-blink; /* Safari 4.0 - 8.0 */
|
-webkit-animation-name: color-blink; /* Safari 4.0 - 8.0 */
|
||||||
-webkit-animation-duration: 4s; /* Safari 4.0 - 8.0 */
|
-webkit-animation-duration: 4s; /* Safari 4.0 - 8.0 */
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
<a class="navbar-brand" href="#" style="padding-top: 2px">
|
<a class="navbar-brand" href="#" style="padding-top: 2px">
|
||||||
<img height="40px" src="assets/opt-logo-klein.png">
|
<img height="40px" src="assets/opt-logo-klein.png">
|
||||||
</a>
|
</a>
|
||||||
|
<span class="version-label">{{version}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="collapse navbar-collapse" id="mynavbar">
|
<div class="collapse navbar-collapse" id="mynavbar">
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,8 @@ import {PromotionService} from "./services/promotion-service/promotion.service";
|
||||||
import {AwardingService} from "./services/awarding-service/awarding.service";
|
import {AwardingService} from "./services/awarding-service/awarding.service";
|
||||||
import {RouteConfig} from "./app.config";
|
import {RouteConfig} from "./app.config";
|
||||||
|
|
||||||
|
declare function require(url: string);
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-root',
|
selector: 'app-root',
|
||||||
templateUrl: 'app.component.html',
|
templateUrl: 'app.component.html',
|
||||||
|
@ -16,6 +18,8 @@ export class AppComponent {
|
||||||
|
|
||||||
loading: boolean = false;
|
loading: boolean = false;
|
||||||
|
|
||||||
|
version = 'v' + require('./../../../package.json').version;;
|
||||||
|
|
||||||
constructor(public loginService: LoginService,
|
constructor(public loginService: LoginService,
|
||||||
private promotionService: PromotionService,
|
private promotionService: PromotionService,
|
||||||
private awardingService: AwardingService,
|
private awardingService: AwardingService,
|
||||||
|
|
Loading…
Reference in New Issue