Projects (GanjooRazor -> DivanRazor, GanjoorService.sln -> DivanService.sln), files, folders, classes, namespaces, settings, API routes (/api/divan) and DB tables (Divan*). External addresses (ganjoor.net, github.com/ganjoor) unchanged. Migrations renamed consistently (no pending model changes); requires a fresh database. Upstream RUNNING_LOCALLY/SEMANTIC_SEARCH docs archived unmodified under docs/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
942 B
C#
30 lines
942 B
C#
using Microsoft.AspNetCore.Mvc.RazorPages;
|
|
using RMuseum.Models.Divan.ViewModels;
|
|
|
|
namespace DivanRazor.Pages
|
|
{
|
|
/// <summary>
|
|
/// Model for the comments list + count message shared between the initial page render
|
|
/// (_PoemPagePartial.cshtml) and the AJAX sort-toggle refresh (OnGetCommentsPartialAsync).
|
|
/// </summary>
|
|
public class _CommentsListPartialModel : PageModel
|
|
{
|
|
public DivanCommentSummaryViewModel[] Comments { get; set; }
|
|
public int PoemId { get; set; }
|
|
public bool LoggedIn { get; set; }
|
|
|
|
public _CommentPartialModel GetCommentModel(DivanCommentSummaryViewModel comment)
|
|
{
|
|
return new _CommentPartialModel()
|
|
{
|
|
Comment = comment,
|
|
Error = "",
|
|
InReplyTo = null,
|
|
LoggedIn = LoggedIn,
|
|
DivSuffix = "",
|
|
PoemId = PoemId,
|
|
};
|
|
}
|
|
}
|
|
}
|