divan/DivanRazor/Pages/Misc/_PoetSpecLinePartial.cshtml
Anas Rashid 532d005cdb Rename Ganjoor -> Divan throughout the code
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>
2026-10-04 23:49:01 +02:00

31 lines
1.0 KiB
Plaintext

@model DivanRazor.Pages._PoetSpecLinePartialModel
@{
Layout = null;
}
<div class="divan-comment" id="@(Model.Line.Id == 0 ? "comment-error" : $"line-{Model.Line.Id}")" data-sanitizer-remaining-text="@(Model.Line.Id == 0 ? Model.SanitizerRemainingText : null)">
@if (Model.Line.Id == 0)
{
@Model.Line.Contents
}
else
{
@Html.Raw(Model.Line.Contents)
}
</div>
@if (Model.Line.Id != 0 && !Model.Line.Published)
{
<div class="clear-both red-color">
پیشنهاد شما پس از بررسی قابل مشاهده خواهد بود.
</div>
}
@if (Model.ModeratePoetPhotos)
{
<div class="clear-both">
<a role="button" href="/User/SuggestedPoetSpecLines?id=@Model.Line.Id" class="pagebutton" title="ویرایش"><i class="notranslate noindent-info-button edit-poem-button"></i></a>
<a role="button" onclick="deleteSpec(@Model.Line.Id)" class="pagebutton" title="حذف"><i class="notranslate noindent-info-button delete-icon"></i></a>
</div>
}