mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-02 10:08:39 +00:00
parent
3e3d6b74aa
commit
81622441be
1 changed files with 18 additions and 13 deletions
|
@ -1,7 +1,6 @@
|
||||||
@using System.IO
|
@using System.IO
|
||||||
@using System.Web
|
@using System.Web
|
||||||
@using LBPUnion.ProjectLighthouse.Types.Profiles
|
@using LBPUnion.ProjectLighthouse.Types.Profiles
|
||||||
|
|
||||||
<div class="ui yellow segment" id="comments">
|
<div class="ui yellow segment" id="comments">
|
||||||
<style>
|
<style>
|
||||||
.comment {
|
.comment {
|
||||||
|
@ -23,10 +22,23 @@
|
||||||
}
|
}
|
||||||
else if (!Model.CommentsEnabled)
|
else if (!Model.CommentsEnabled)
|
||||||
{
|
{
|
||||||
<b><i>Comments are disabled</i></b>
|
<b>
|
||||||
|
<i>Comments are disabled.</i>
|
||||||
|
</b>
|
||||||
}
|
}
|
||||||
|
|
||||||
@for (int i = 0; i < Model.Comments.Count; i++)
|
@if (Model.CommentsEnabled && Model.User != null)
|
||||||
|
{
|
||||||
|
<div class="ui divider"></div>
|
||||||
|
<form class="ui reply form" action="@Url.RouteUrl(ViewContext.RouteData.Values)/postComment">
|
||||||
|
<div class="field">
|
||||||
|
<textarea style="min-height: 70px; height: 70px; max-height:120px" name="msg"></textarea>
|
||||||
|
</div>
|
||||||
|
<input type="submit" class="ui blue button">
|
||||||
|
</form>
|
||||||
|
}
|
||||||
|
|
||||||
|
@for(int i = 0; i < Model.Comments.Count; i++)
|
||||||
{
|
{
|
||||||
Comment comment = Model.Comments[i];
|
Comment comment = Model.Comments[i];
|
||||||
DateTimeOffset timestamp = DateTimeOffset.FromUnixTimeSeconds(comment.Timestamp / 1000);
|
DateTimeOffset timestamp = DateTimeOffset.FromUnixTimeSeconds(comment.Timestamp / 1000);
|
||||||
|
@ -50,7 +62,9 @@
|
||||||
<b><a href="/user/@comment.PosterUserId">@comment.Poster.Username</a>: </b>
|
<b><a href="/user/@comment.PosterUserId">@comment.Poster.Username</a>: </b>
|
||||||
@if (comment.Deleted)
|
@if (comment.Deleted)
|
||||||
{
|
{
|
||||||
<i><span>@decodedMessage</span></i>
|
<i>
|
||||||
|
<span>@decodedMessage</span>
|
||||||
|
</i>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -66,13 +80,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
@if(Model.CommentsEnabled && Model.User != null){
|
|
||||||
<div class="ui divider"></div>
|
|
||||||
<form class="ui reply form" action="@Url.RouteUrl(ViewContext.RouteData.Values)/postComment">
|
|
||||||
<div class="field">
|
|
||||||
<textarea style="min-height: 70px; height: 70px; max-height:120px" name="msg"></textarea>
|
|
||||||
</div>
|
|
||||||
<input type="submit" class="ui blue button">
|
|
||||||
</form>
|
|
||||||
}
|
|
||||||
</div>
|
</div>
|
Loading…
Add table
Add a link
Reference in a new issue