#420 renaming SuggestQuoted to EditQuoted
This commit is contained in:
parent
7bcece4775
commit
282da2837c
@ -1,5 +1,5 @@
|
||||
@page
|
||||
@model GanjooRazor.Areas.Admin.Pages.SuggestQuotedModel
|
||||
@model GanjooRazor.Areas.Admin.Pages.EditQuotedModel
|
||||
@using DNTPersianUtils.Core
|
||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@{
|
||||
@ -54,7 +54,7 @@
|
||||
@foreach (var q in Model.AllPoemQuoteds)
|
||||
{
|
||||
<tr id="tr-@q.Id">
|
||||
<td><a href="/Admin/SuggestQuoted/?p=@q.PoemId&id=@q.Id">@q.PoemId-@q.RelatedPoemId</a> </td>
|
||||
<td><a href="/Admin/EditQuoted/?p=@q.PoemId&id=@q.Id">@q.PoemId-@q.RelatedPoemId</a> </td>
|
||||
<td>@q.CachedRelatedPoemPoetName</td>
|
||||
<td>
|
||||
@if (q.CoupletVerse1ShouldBeEmphasized)
|
||||
@ -519,7 +519,7 @@
|
||||
<td>
|
||||
@if (Model.ReverseId != null)
|
||||
{
|
||||
<a href="/Admin/SuggestQuoted/?p=@Model.GanjoorQuotedPoem.RelatedPoemId&id=@Model.ReverseId">نمایش معکوس</a>
|
||||
<a href="/Admin/EditQuoted/?p=@Model.GanjoorQuotedPoem.RelatedPoemId&id=@Model.ReverseId">نمایش معکوس</a>
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -552,7 +552,7 @@
|
||||
@foreach (var q in Model.AllPoemQuoteds)
|
||||
{
|
||||
<tr>
|
||||
<td><a href="/Admin/SuggestQuoted/?p=@q.PoemId&id=@q.Id">#</a> </td>
|
||||
<td><a href="/Admin/EditQuoted/?p=@q.PoemId&id=@q.Id">#</a> </td>
|
||||
<td>@q.CachedRelatedPoemPoetName</td>
|
||||
<td>@q.CoupletVerse1</td>
|
||||
<td>@q.CoupletVerse2</td>
|
||||
@ -17,7 +17,7 @@ using System.Net;
|
||||
namespace GanjooRazor.Areas.Admin.Pages
|
||||
{
|
||||
[IgnoreAntiforgeryToken(Order = 1001)]
|
||||
public class SuggestQuotedModel : PageModel
|
||||
public class EditQuotedModel : PageModel
|
||||
{
|
||||
public string LastMessage { get; set; }
|
||||
|
||||
@ -30,7 +30,7 @@ namespace GanjooRazor.Areas.Admin.Pages
|
||||
/// constructor
|
||||
/// </summary>
|
||||
/// <param name="httpClient"></param>
|
||||
public SuggestQuotedModel(HttpClient httpClient)
|
||||
public EditQuotedModel(HttpClient httpClient)
|
||||
{
|
||||
_httpClient = httpClient;
|
||||
}
|
||||
@ -311,7 +311,7 @@ namespace GanjooRazor.Areas.Admin.Pages
|
||||
GanjoorQuotedPoem = JObject.Parse(await response.Content.ReadAsStringAsync()).ToObject<GanjoorQuotedPoemViewModel>();
|
||||
}
|
||||
|
||||
LastMessage = $"انجام شد. <br /><a href=\"/Admin/SuggestQuoted/?p={GanjoorQuotedPoem.PoemId}&id={GanjoorQuotedPoem.Id}\">برگشت</a>";
|
||||
LastMessage = $"انجام شد. <br /><a href=\"/Admin/EditQuoted/?p={GanjoorQuotedPoem.PoemId}&id={GanjoorQuotedPoem.Id}\">برگشت</a>";
|
||||
|
||||
}
|
||||
}
|
||||
@ -419,7 +419,7 @@ namespace GanjooRazor.Areas.Admin.Pages
|
||||
else
|
||||
{
|
||||
reverseRelation = JObject.Parse(await response.Content.ReadAsStringAsync()).ToObject<GanjoorQuotedPoemViewModel>();
|
||||
return new JsonResult($"/Admin/SuggestQuoted/?p={reverseRelation.PoemId}&id={reverseRelation.Id}");
|
||||
return new JsonResult($"/Admin/EditQuoted/?p={reverseRelation.PoemId}&id={reverseRelation.Id}");
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -646,7 +646,7 @@
|
||||
|
||||
@if(Model.CanEdit)
|
||||
{
|
||||
<a href="/Admin/SuggestQuoted/?p=@Model.GanjoorPage.Id" class="pagebutton comments-link">پیشنهاد مشق شعر</a>
|
||||
<a href="/Admin/EditQuoted/?p=@Model.GanjoorPage.Id" class="pagebutton comments-link">پیشنهاد مشق شعر</a>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -226,7 +226,7 @@
|
||||
|
||||
@if (Model.CanEdit)
|
||||
{
|
||||
<a href="/Admin/SuggestQuoted/?p=@Model.GanjoorQuotedPoemViewModel.PoemId&id=@Model.GanjoorQuotedPoemViewModel.Id" class="pagebutton comments-link">ویرایش</a>
|
||||
<a href="/Admin/EditQuoted/?p=@Model.GanjoorQuotedPoemViewModel.PoemId&id=@Model.GanjoorQuotedPoemViewModel.Id" class="pagebutton comments-link">ویرایش</a>
|
||||
}
|
||||
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user