Add version label to menu bar

pull/14/head
Florian Hartwich 2017-10-14 18:43:00 +02:00
parent 43960fa3af
commit 732d8a15f0
3 changed files with 15 additions and 1 deletions

View File

@ -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 */

View File

@ -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">

View File

@ -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,7 +18,9 @@ export class AppComponent {
loading: boolean = false; loading: boolean = false;
constructor(public loginService: LoginService, version = 'v' + require('./../../../package.json').version;;
constructor(public loginService: LoginService,
private promotionService: PromotionService, private promotionService: PromotionService,
private awardingService: AwardingService, private awardingService: AwardingService,
private router: Router) { private router: Router) {