mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-01 09:48:37 +00:00
Show comments section on userpage even if there are no comments
This commit is contained in:
parent
ca4e32dd75
commit
90f70238d1
1 changed files with 21 additions and 18 deletions
|
@ -81,10 +81,14 @@
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
@if (Model.ProfileUser.Comments > 0)
|
|
||||||
{
|
<div class="ui yellow segment">
|
||||||
<div class="ui yellow segment">
|
|
||||||
<h1>Comments</h1>
|
<h1>Comments</h1>
|
||||||
|
@if (Model.ProfileUser.Comments == 0)
|
||||||
|
{
|
||||||
|
<p>There are no comments.</p>
|
||||||
|
}
|
||||||
|
|
||||||
@foreach (Comment comment in Model.Comments!)
|
@foreach (Comment comment in Model.Comments!)
|
||||||
{
|
{
|
||||||
DateTimeOffset timestamp = DateTimeOffset.FromUnixTimeSeconds(comment.Timestamp / 1000);
|
DateTimeOffset timestamp = DateTimeOffset.FromUnixTimeSeconds(comment.Timestamp / 1000);
|
||||||
|
@ -97,5 +101,4 @@
|
||||||
<div class="ui divider"></div>
|
<div class="ui divider"></div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue