@L["Update"]
@@ -183,22 +183,25 @@
@GetCommentContentArea(comment.Id, comment.Text).Invoke(null)
-
-
-
- @GetCommentActionArea(comment.Id, comment.Author.Id, false).Invoke(null)
+ @if (!Model.Input.IsReadOnly)
+ {
+
+
+
+ @GetCommentActionArea(comment.Id, comment.Author.Id, false).Invoke(null)
+
-
-
-
-
- @GetEditArea(comment.Id, Model.Input.RawCommentTexts[comment.Id], comment.ConcurrencyStamp).Invoke(null)
+ @GetEditArea(comment.Id, Model.Input.RawCommentTexts[comment.Id], comment.ConcurrencyStamp).Invoke(null)
+ }
@if (comment.Replies.Any())
{
@@ -212,23 +215,26 @@
@GetCommentContentArea(reply.Id, reply.Text).Invoke(null)
-
-
-
- @GetCommentActionArea(reply.Id, reply.Author.Id, true).Invoke(null)
+ @if (!Model.Input.IsReadOnly)
+ {
+
+
+
+ @GetCommentActionArea(reply.Id, reply.Author.Id, true).Invoke(null)
+
-
-
-
-
- @GetEditArea(reply.Id, Model.Input.RawCommentTexts[reply.Id], reply.ConcurrencyStamp).Invoke(null)
+ @GetEditArea(reply.Id, Model.Input.RawCommentTexts[reply.Id], reply.ConcurrencyStamp).Invoke(null)
+ }
}