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>
28 lines
820 B
C#
28 lines
820 B
C#
using Microsoft.AspNetCore.Mvc.RazorPages;
|
|
using RMuseum.Models.Divan.ViewModels;
|
|
|
|
namespace DivanRazor.Pages
|
|
{
|
|
public class _MultipleQuotedPoemsPartialModel : PageModel
|
|
{
|
|
public DivanQuotedPoemViewModel[] DivanQuotedPoems { get; set; }
|
|
|
|
public string PoetImageUrl { get; set; }
|
|
|
|
public string PoetNickName { get; set; }
|
|
|
|
public bool CanEdit { get; set; }
|
|
|
|
public _QuotedPoemPartialModel GetQuotedPoemModel(DivanQuotedPoemViewModel quotedPoem, string poetImageUrl, string poetNickName)
|
|
{
|
|
return new _QuotedPoemPartialModel()
|
|
{
|
|
DivanQuotedPoemViewModel = quotedPoem,
|
|
PoetImageUrl = poetImageUrl,
|
|
PoetNickName = poetNickName,
|
|
CanEdit = CanEdit,
|
|
};
|
|
}
|
|
}
|
|
}
|