mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-29 08:28:39 +00:00
commit
17a06dee2b
1 changed files with 57 additions and 54 deletions
|
@ -1,4 +1,4 @@
|
||||||
@using System.Web
|
@using System.Web
|
||||||
@using System.IO
|
@using System.IO
|
||||||
@using LBPUnion.ProjectLighthouse.Localization
|
@using LBPUnion.ProjectLighthouse.Localization
|
||||||
@using LBPUnion.ProjectLighthouse.PlayerData.Profiles
|
@using LBPUnion.ProjectLighthouse.PlayerData.Profiles
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
<i>Comments are disabled.</i>
|
<i>Comments are disabled.</i>
|
||||||
</b>
|
</b>
|
||||||
}
|
}
|
||||||
else if (Model.Comments.Count > 50)
|
else if (Model.Comments.Count >= 50)
|
||||||
{
|
{
|
||||||
<p>There are more than 50 comments. Displaying the newest ones.</p>
|
<p>There are more than 50 comments. Displaying the newest ones.</p>
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
<p>There @(count == 1 ? "is" : "are") @count comment@(count == 1 ? "" : "s").</p>
|
<p>There @(count == 1 ? "is" : "are") @count comment@(count == 1 ? "" : "s").</p>
|
||||||
}
|
}
|
||||||
|
|
||||||
@if (Model.CommentsEnabled && Model.User != null)
|
@if (!Model.ProfileUser.IsBanned && Model.CommentsEnabled && Model.User != null)
|
||||||
{
|
{
|
||||||
<div class="ui divider"></div>
|
<div class="ui divider"></div>
|
||||||
<form class="ui reply form" action="@Url.RouteUrl(ViewContext.RouteData.Values)/postComment" method="post">
|
<form class="ui reply form" action="@Url.RouteUrl(ViewContext.RouteData.Values)/postComment" method="post">
|
||||||
|
@ -51,6 +51,8 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@if (!Model.ProfileUser.IsBanned)
|
||||||
|
{
|
||||||
@for(int i = 0; i < Model.Comments.Count; i++)
|
@for(int i = 0; i < Model.Comments.Count; i++)
|
||||||
{
|
{
|
||||||
Comment comment = Model.Comments[i];
|
Comment comment = Model.Comments[i];
|
||||||
|
@ -110,6 +112,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
}
|
||||||
<script>
|
<script>
|
||||||
function deleteComment(commentId){
|
function deleteComment(commentId){
|
||||||
if (window.confirm("Are you sure you want to delete this?\nThis action cannot be undone.")){
|
if (window.confirm("Are you sure you want to delete this?\nThis action cannot be undone.")){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue