aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/profile
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-03-06 14:29:14 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-03-06 14:29:14 +0200
commit4b094fb29ea7eaeb58f0c29df60e55586a74db76 (patch)
treedba5ca9fb171c25182b5e2450363b7dce0db1304 /src/app/components/profile
parentb379eed12c5f5fa1b1685dc2ad87191733a41d28 (diff)
downloadDevHive-Angular-4b094fb29ea7eaeb58f0c29df60e55586a74db76.tar
DevHive-Angular-4b094fb29ea7eaeb58f0c29df60e55586a74db76.tar.gz
DevHive-Angular-4b094fb29ea7eaeb58f0c29df60e55586a74db76.zip
Reverted footer
Diffstat (limited to 'src/app/components/profile')
-rw-r--r--src/app/components/profile/profile.component.html67
1 files changed, 23 insertions, 44 deletions
diff --git a/src/app/components/profile/profile.component.html b/src/app/components/profile/profile.component.html
index 0d9dc6a..0e5f633 100644
--- a/src/app/components/profile/profile.component.html
+++ b/src/app/components/profile/profile.component.html
@@ -3,48 +3,25 @@
<div id="content" *ngIf="dataArrived">
<nav id="navigation">
<button class="submit-btn" (click)="goBack()">ᐊ Back</button>
- <button
- class="submit-btn"
- (click)="navigateToSettings()"
- *ngIf="isTheLoggedInUser"
- >
- Settings
- </button>
- <button
- class="submit-btn"
- (click)="navigateToAdminPanel()"
- *ngIf="isTheLoggedInUser && isAdminUser"
- >
- Panel
- </button>
- <button class="submit-btn" (click)="logout()" *ngIf="isTheLoggedInUser">
- Logout
- </button>
+ <button class="submit-btn" (click)="navigateToSettings()" *ngIf="isTheLoggedInUser">Settings</button>
+ <button class="submit-btn" (click)="navigateToAdminPanel()" *ngIf="isTheLoggedInUser && isAdminUser">Panel</button>
+ <button class="submit-btn" (click)="logout()" *ngIf="isTheLoggedInUser">Logout</button>
</nav>
- <hr />
+ <hr>
<div class="scroll-standalone" (scroll)="onScroll($event)">
<div id="main-info" class="rounded-border">
- <img class="round-image" [src]="user.profilePictureURL" alt="" />
+ <img class="round-image" [src]="user.profilePictureURL" alt=""/>
<div id="other-main-info">
- <div id="name">{{ user.firstName }} {{ user.lastName }}</div>
- <div id="username">@{{ user.userName }}</div>
- <form
- [formGroup]="updateFrienship"
- (ngSubmit)="modifyFriend()"
- *ngIf="!isTheLoggedInUser && isUserLoggedIn"
- >
- <button id="add-friend" type="submit" class="submit-btn">
- {{ friendOfUser ? "Unfriend" : "Add friend" }}
- </button>
- <br />
- <input
- id="loggedin-password"
- type="password"
- formControlName="password"
- class="input-field"
- *ngIf="updatingFriendship"
- placeholder="Type in password to confirm"
- />
+ <div id="name">
+ {{ user.firstName }} {{ user.lastName }}
+ </div>
+ <div id="username">
+ @{{ user.userName }}
+ </div>
+ <form [formGroup]="updateFrienship" (ngSubmit)="modifyFriend()" *ngIf="!isTheLoggedInUser && isUserLoggedIn">
+ <button id="add-friend" type="submit" class="submit-btn">{{ friendOfUser ? 'Unfriend' : 'Add friend' }}</button>
+ <br>
+ <input id="loggedin-password" type="password" formControlName="password" class="input-field" *ngIf="updatingFriendship" placeholder="Type in password to confirm">
</form>
</div>
</div>
@@ -55,7 +32,9 @@
{{ lang.name }}
</div>
</div>
- <div *ngIf="user.languages.length === 0">&nbsp;None</div>
+ <div *ngIf="user.languages.length === 0">
+ &nbsp;None
+ </div>
</div>
<div class="secondary-info rounded-border">
Technologies:
@@ -64,18 +43,18 @@
{{ tech.name }}
</div>
</div>
- <div *ngIf="user.technologies.length === 0">&nbsp;None</div>
+ <div *ngIf="user.technologies.length === 0">
+ &nbsp;None
+ </div>
</div>
- <hr />
+ <hr>
<div id="posts">
<div id="no-posts" *ngIf="userPosts.length === 0">
- {{ user.firstName }} {{ user.lastName }} hasn't posted anything
- yet!
+ {{ user.firstName }} {{ user.lastName }} hasn't posted anything yet!
</div>
<div *ngFor="let userPost of userPosts">
<app-post [paramId]="userPost.postId.toString()"></app-post>
</div>
</div>
</div>
- <app-footer></app-footer>
</div>