Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
Factory
Resin
Client
Commits
532e3ac7
Commit
532e3ac7
authored
2 years ago
by
Bastien DUMONT
Browse files
Options
Downloads
Plain Diff
Merge branch '181-annuaire-masquer-structures-section-vide' into 'dev'
Resolve "[Annuaire] Masquer les structures en attente" Closes
#181
See merge request
!410
parents
55d95632
a3563304
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!418
V2.1.0
,
!410
Resolve "[Annuaire] Masquer les structures en attente"
,
!400
V2.0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/profile/profile.component.html
+34
-16
34 additions, 16 deletions
src/app/profile/profile.component.html
with
34 additions
and
16 deletions
src/app/profile/profile.component.html
+
34
−
16
View file @
532e3ac7
...
...
@@ -59,15 +59,15 @@
></app-button>
</div>
</section>
<section>
<!-- Private profile with pending structures -->
<section
*ngIf=
"!isPublic"
>
<div
class=
"header"
>
<h1
[ngPlural]=
"userProfile.structuresLink.length"
>
<ng-template
ngPluralCase=
"1"
>
Structure
</ng-template>
<ng-template
ngPluralCase=
"other"
>
Structures
</ng-template>
</h1>
<app-button
*ngIf=
"
!isPublic &&
userProfile.structuresLink.length > 0"
*ngIf=
"userProfile.structuresLink.length > 0"
class=
"hide-on-mobile"
[type]=
"'button'"
[iconBtn]=
"'edit'"
...
...
@@ -77,7 +77,7 @@
[routerLinkActive]=
"'active'"
></app-button>
<app-button
*ngIf=
"
!isPublic &&
userProfile.structuresLink.length > 0"
*ngIf=
"userProfile.structuresLink.length > 0"
class=
"hide-on-desktop"
[type]=
"'button'"
[iconBtn]=
"'edit'"
...
...
@@ -90,17 +90,16 @@
class=
"structuresContainer"
*ngIf=
"userProfile.structuresLink.length > 0 || userProfile.pendingStructuresLink.length > 0"
>
<ng-container
*ngIf=
"!this.isPublic"
>
<app-profile-structure
*ngFor=
"let structure of pendingStructures; let i = index"
[structureWithOwners]=
"structure"
[userProfile]=
"this.userProfile"
[isPublic]=
"this.isPublic"
[isPending]=
"true"
[joinRequestDate]=
"userProfile.pendingStructuresLink[i].createdAt"
(cancelJoin)=
"cancelJoin($event)"
></app-profile-structure>
</ng-container>
<app-profile-structure
*ngFor=
"let structure of pendingStructures; let i = index"
[structureWithOwners]=
"structure"
[userProfile]=
"this.userProfile"
[isPublic]=
"this.isPublic"
[isPending]=
"true"
[joinRequestDate]=
"userProfile.pendingStructuresLink[i].createdAt"
(cancelJoin)=
"cancelJoin($event)"
></app-profile-structure>
<app-profile-structure
*ngFor=
"let structure of structures; let i = index"
[structureWithOwners]=
"structure"
...
...
@@ -109,7 +108,6 @@
></app-profile-structure>
</div>
<app-button
*ngIf=
"!isPublic"
class=
"addStructure"
[style]=
"buttonTypeEnum.SecondaryUltraWide"
[iconBtn]=
"'add'"
...
...
@@ -118,6 +116,26 @@
tabindex=
"0"
></app-button>
</section>
<!-- Public profile -->
<section
*ngIf=
"isPublic && userProfile.structuresLink.length > 0"
>
<div
class=
"header"
>
<h1
[ngPlural]=
"userProfile.structuresLink.length"
>
<ng-template
ngPluralCase=
"1"
>
Structure
</ng-template>
<ng-template
ngPluralCase=
"other"
>
Structures
</ng-template>
</h1>
</div>
<div
class=
"structuresContainer"
*ngIf=
"userProfile.structuresLink.length > 0 || userProfile.pendingStructuresLink.length > 0"
>
<app-profile-structure
*ngFor=
"let structure of structures; let i = index"
[structureWithOwners]=
"structure"
[userProfile]=
"this.userProfile"
[isPublic]=
"this.isPublic"
></app-profile-structure>
</div>
</section>
<!-- Features not implemented yet -->
<!-- <section *ngIf="!isPublic">
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment