|
61 | 61 | </div> |
62 | 62 |
|
63 | 63 | <ng-template #programTpl> |
64 | | - @if (!isUserMember && !isUserManager) { @if (info().name.includes("Кейс-чемпионат MIR")) { |
| 64 | + @if (userType() !== undefined) { @if (!isUserMember && !isUserManager) { @if |
| 65 | + (info().name.includes("Кейс-чемпионат MIR")) { |
65 | 66 | <a href="https://case-champ.ru/corporate#rec1176757836"> |
66 | 67 | <app-button |
67 | 68 | [disabled]="!!registerDateExpired" |
|
97 | 98 | зарегистрироваться |
98 | 99 | </app-button> |
99 | 100 | </a> |
100 | | - } } @else if (isUserMember && !isUserManager && !isUserExpert) { |
| 101 | + } } @if (isUserMember && !isUserManager && !isUserExpert) { |
101 | 102 | <app-button |
102 | 103 | size="medium" |
103 | 104 | [style.opacity]="registerDateExpired ? '0.5' : '1'" |
|
108 | 109 | <span>подать проект</span> |
109 | 110 | <i appIcon icon="plus" appSquare="10"></i> |
110 | 111 | </app-button> |
111 | | - } @else if (isUserManager || isUserExpert) { @if (isUserMember) { |
| 112 | + } @if ((isUserManager || isUserExpert) && isUserMember) { |
112 | 113 | <a [routerLink]="'/office/program/' + info().id + '/projects-rating'"> |
113 | 114 | <app-button |
114 | 115 | [appearance]="isProjectsRatingPage ? 'inline' : 'outline'" |
|
118 | 119 | оценка проектов |
119 | 120 | </app-button> |
120 | 121 | </a> |
121 | | - } } |
| 122 | + } |
122 | 123 |
|
123 | 124 | <a |
124 | 125 | class="info__presentation" |
|
158 | 159 |
|
159 | 160 | <div class="info__divider"></div> |
160 | 161 |
|
161 | | - @if (!isUserManager) { |
| 162 | + @if (isUserManager || isUserExpert) { |
| 163 | + <a [routerLink]="'/office/program/' + info().id + '/projects'"> |
| 164 | + <app-button |
| 165 | + [appearance]="isProjectsPage ? 'inline' : 'outline'" |
| 166 | + size="medium" |
| 167 | + [disabled]="isUserExpert && !isUserManager" |
| 168 | + [style.opacity]="isUserExpert && !isUserManager ? '0.5' : '1'" |
| 169 | + customTypographyClass="text-body-12" |
| 170 | + > |
| 171 | + проекты-участники |
| 172 | + </app-button> |
| 173 | + </a> |
| 174 | + } @else { |
162 | 175 | <a class="info__more"> |
163 | 176 | <app-button |
164 | 177 | appearance="outline" |
|
170 | 183 | узнать подробнее |
171 | 184 | </app-button> |
172 | 185 | </a> |
173 | | - } @else { |
174 | | - <a [routerLink]="'/office/program/' + info().id + '/projects'"> |
| 186 | + } @if (isUserManager || isUserExpert) { |
| 187 | + <a [routerLink]="'/office/program/' + info().id + '/members'"> |
175 | 188 | <app-button |
176 | | - [appearance]="isProjectsPage ? 'inline' : 'outline'" |
| 189 | + [appearance]="isMembersPage ? 'inline' : 'outline'" |
177 | 190 | size="medium" |
178 | | - [disabled]="isUserMember ? true : isUserManager ? false : false" |
179 | | - [style.opacity]="isUserMember ? '0.5' : isUserManager ? '1' : '0.5'" |
| 191 | + [disabled]="isUserExpert && !isUserManager" |
| 192 | + [style.opacity]="isUserExpert && !isUserManager ? '0.5' : '1'" |
180 | 193 | customTypographyClass="text-body-12" |
181 | 194 | > |
182 | | - проекты-участники |
| 195 | + участники |
183 | 196 | </app-button> |
184 | 197 | </a> |
185 | | - } @if (!isUserManager) { |
| 198 | + } @else { |
186 | 199 | <a class="info__contacts"> |
187 | 200 | <app-button |
188 | 201 | appearance="outline" |
|
194 | 207 | информация с ссылок |
195 | 208 | </app-button> |
196 | 209 | </a> |
197 | | - } @else { |
198 | | - <a [routerLink]="'/office/program/' + info().id + '/members'"> |
199 | | - <app-button |
200 | | - [appearance]="isMembersPage ? 'inline' : 'outline'" |
201 | | - size="medium" |
202 | | - [disabled]="isUserMember || isUserExpert ? true : isUserManager ? false : true" |
203 | | - [style.opacity]="isUserMember || isUserExpert ? '0.5' : isUserManager ? '1' : '1'" |
204 | | - customTypographyClass="text-body-12" |
205 | | - > |
206 | | - участники |
207 | | - </app-button> |
208 | | - </a> |
209 | | - } |
| 210 | + } } |
210 | 211 |
|
211 | 212 | <app-modal [open]="showSubmitProjectModal()" (openChange)="toggleSubmitProjectModal()"> |
212 | 213 | <div class="cancel"> |
|
0 commit comments