mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-02 10:08:39 +00:00
Add profile pictures
This commit is contained in:
parent
c7909d7151
commit
b41a8d93ab
3 changed files with 52 additions and 32 deletions
|
@ -6,7 +6,10 @@
|
|||
}
|
||||
|
||||
<div class="ui grid">
|
||||
<div class="eight wide column">
|
||||
<div class="eight wide column" style="display: flex;">
|
||||
<div style="margin-right: 10px; background-image: url('/gameAssets/@Model.WebsiteAvatarHash'); height: 100px; width: 100px; background-size: cover; background-position: center; border-radius: .28571429rem;">
|
||||
</div>
|
||||
<div style="height: fit-content; vertical-align: center; align-self: center">
|
||||
@if (showLink)
|
||||
{
|
||||
<h2 style="margin-bottom: 2px;">
|
||||
|
@ -29,5 +32,5 @@
|
|||
<i class="purple camera icon" title="Uploaded Photos"></i><span>@Model.PhotosByMe</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
|
@ -38,7 +38,10 @@
|
|||
}
|
||||
|
||||
<div class="ui grid">
|
||||
<div class="eight wide column">
|
||||
<div class="eight wide column" style="display: flex">
|
||||
<div style="margin-right: 10px; background-image: url('/gameAssets/@Model.ProfileUser.WebsiteAvatarHash'); height: 100px; width: 100px; background-size: cover; background-position: center; border-radius: .28571429rem;">
|
||||
</div>
|
||||
<div style="height: fit-content; vertical-align: center; align-self: center">
|
||||
<h1>@Model.Title</h1>
|
||||
<p>
|
||||
<i>@Model.ProfileUser!.Status</i>
|
||||
|
@ -51,6 +54,7 @@
|
|||
<i class="purple camera icon" title="Uploaded Photos"></i><span>@Model.ProfileUser.PhotosByMe</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="eight wide right aligned column">
|
||||
<br>
|
||||
@if (Model.ProfileUser != Model.User && Model.User != null)
|
||||
|
|
|
@ -25,6 +25,19 @@ public class User
|
|||
/// </summary>
|
||||
public string Biography { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public string WebsiteAvatarHash {
|
||||
get {
|
||||
string avatarHash = this.IconHash;
|
||||
|
||||
if (string.IsNullOrWhiteSpace(avatarHash)) avatarHash = this.YayHash;
|
||||
if (string.IsNullOrWhiteSpace(avatarHash)) avatarHash = this.MehHash;
|
||||
if (string.IsNullOrWhiteSpace(avatarHash)) avatarHash = this.BooHash;
|
||||
|
||||
return avatarHash;
|
||||
}
|
||||
}
|
||||
|
||||
[NotMapped]
|
||||
public int Reviews {
|
||||
get {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue