bugfix
parent
be0819ee1b
commit
58dc362623
|
|
@ -59,7 +59,7 @@ export class LicenceService {
|
|||
|
||||
public checkEditAvailability(page?: any) {
|
||||
if (!this.isActive) return this.error('Срок действия лицензии истек. Режим редактирования не доступен. Продлите лицензию или обратитесь в службу поддержки НИР (+7 499 490 04 65, help@nirgroup.ru)');
|
||||
if ((page?.type?.name === 'registry') && !this.hasOption('registries')) return this.error('Срок действия лицензии истек. Режим редактирования не доступен. Продлите лицензию или обратитесь в службу поддержки НИР (+7 499 490 04 65, help@nirgroup.ru)');
|
||||
if ((page?.type?.name === 'registry') && !this.hasOption('registries')) return this.error('Данная опция не входит в Вашу лицензию. Для включения опции обратитесь в службу поддержки НИР (+7 499 490 04 65, help@nirgroup.ru)');
|
||||
if ((page?.type?.name === 'publications') && !this.hasOption('publications')) return this.error('Данная опция не входит в Вашу лицензию. Для включения опции обратитесь в службу поддержки НИР (+7 499 490 04 65, help@nirgroup.ru)');
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ export class AppComponent {
|
|||
}
|
||||
|
||||
get isRtl() {
|
||||
return this.pagesService.isRtl;
|
||||
return this.pagesService.isRtl && this.pagesService.currentPage;
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<div class="footer layout-corral">
|
||||
<div class="footer layout-corral" *ngIf="isRusPage">
|
||||
<div class="block">
|
||||
<div class="logo">
|
||||
<img src="assets/images/logo_vniigaz_wt_280x110.svg" alt="">
|
||||
|
|
@ -8,13 +8,15 @@
|
|||
</div>
|
||||
<div class="contact">
|
||||
<div>
|
||||
<a href="tel:+74986574518">+7 (498) 657-45-18</a>
|
||||
<a href="tel:+74986574518" dir="ltr">+7 (498) 657-45-18</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="mailto:info@vniigaz-cert.ru">info@vniigaz-cert.ru</a>
|
||||
</div>
|
||||
<div>
|
||||
142717, Российская Федерация, Московская область, г. Видное, посёлок Развилка, ВНИИГАЗ
|
||||
<span dir="ltr">
|
||||
142717, Российская Федерация, Московская область, г. Видное, посёлок Развилка, ВНИИГАЗ
|
||||
</span>
|
||||
</div>
|
||||
<div class="icons">
|
||||
<a href="https://vk.com/vniigazcert" target="_blank">
|
||||
|
|
@ -40,3 +42,49 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer layout-corral" *ngIf="!isRusPage">
|
||||
<div class="block">
|
||||
<div class="logo">
|
||||
<img src="assets/images/logo_vniigaz_wt_280x110.svg" alt="">
|
||||
<!-- <div *ngIf="!isLoggedIn" class="footer-login">
|
||||
<a (click)="login()">Вход в личный кабинет</a>
|
||||
</div> -->
|
||||
</div>
|
||||
<div class="contact">
|
||||
<div>
|
||||
<a href="tel:+74986574518" dir="ltr">+7 (498) 657-45-18</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="mailto:info@vniigaz-cert.ru">info@vniigaz-cert.ru</a>
|
||||
</div>
|
||||
<div>
|
||||
<span dir="ltr">
|
||||
VNIIGAZ, Razvilka settl., Vidnoye, Moscow region, Russian Federation, 142717
|
||||
</span>
|
||||
</div>
|
||||
<div class="icons">
|
||||
<a href="https://vk.com/vniigazcert" target="_blank">
|
||||
<img src="assets/images/icons/vk_white_29x28.svg" alt="">
|
||||
</a>
|
||||
<a href="https://ok.ru/group/59746745647125" target="_blank">
|
||||
<img src="assets/images/icons/ok_orange_28x28.svg" alt="">
|
||||
</a>
|
||||
<a href="https://dzen.ru/vniigazcert" target="_blank">
|
||||
<img src="assets/images/icons/zen_black_28x28.svg" alt="">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="line"></div>
|
||||
<div class="copyright">
|
||||
<div>
|
||||
© 1998–{{year}} Private Institution Certification Center VNIIGAZ-Certificate
|
||||
</div>
|
||||
<div class="nir">
|
||||
<a href="https://nirgroup.ru">Powered by the NIR platform</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import {Component} from '@angular/core';
|
||||
import {AuthenticationService} from "@app/_services";
|
||||
import {PagesService} from "@app/_services/pages.service";
|
||||
|
||||
@Component({
|
||||
selector: 'footer',
|
||||
|
|
@ -10,7 +11,9 @@ export class FooterComponent {
|
|||
|
||||
public year = new Date().getFullYear();
|
||||
|
||||
constructor(public authService: AuthenticationService) {
|
||||
constructor(
|
||||
public authService: AuthenticationService,
|
||||
public pagesService: PagesService) {
|
||||
}
|
||||
|
||||
get isLoggedIn() {
|
||||
|
|
@ -24,6 +27,10 @@ export class FooterComponent {
|
|||
this.authService.popup('login');
|
||||
}
|
||||
|
||||
get isRusPage(){
|
||||
return this.pagesService.rootPage.slug ===""
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
<div class="inline center header-right">
|
||||
<locale></locale>
|
||||
<a class="btn vnii" href="https://ais.vniigaz-cert.ru/" target="_blank">Личный кабинет (АИС СЦ)</a>
|
||||
<a class="btn vnii" href="https://ais.vniigaz-cert.ru/" target="_blank" *ngIf="isRusPage">Личный кабинет (АИС СЦ)</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -28,6 +28,10 @@ export class HeaderComponent {
|
|||
return !this.pagesService.currentPage?.parents.data.length && this.pagesService.currentPage
|
||||
}
|
||||
|
||||
get isRusPage(){
|
||||
return this.rootPage.slug ===""
|
||||
}
|
||||
|
||||
openMobileMenu(){
|
||||
this.router.navigate([{outlets: {slider: 'pages-menu'}}], {skipLocationChange: true}).then();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,10 +16,13 @@
|
|||
|
||||
.site-admin-control-toggle{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
align-items:flex-start;
|
||||
gap: 16px;
|
||||
cursor: pointer;
|
||||
margin-bottom: 32px;
|
||||
switch{
|
||||
margin-top: 2px;
|
||||
}
|
||||
}
|
||||
.site-admin-page-block{
|
||||
display: flex;
|
||||
|
|
|
|||
|
|
@ -315,6 +315,7 @@ header{
|
|||
.dropdown{
|
||||
top: 27px;
|
||||
left: -120px;
|
||||
right: -110px;
|
||||
}
|
||||
img{
|
||||
height:18px;
|
||||
|
|
|
|||
Loading…
Reference in New Issue