shortcut for editing a section metre

This commit is contained in:
Hamid Reza Mohammadi 2024-11-09 16:48:50 +03:30
parent b886d7f2e9
commit 9ccc7add33
3 changed files with 13 additions and 1 deletions

View File

@ -171,7 +171,7 @@ else
</td>
</tr>
<tr>
<tr id="metre">
<td>
وزن فعلی:
</td>

View File

@ -101,6 +101,12 @@
</td>
<td>
<a href="@Html.Raw($"/simi/?v={Uri.EscapeDataString(s.GanjoorMetre.Rhythm)}")">@s.GanjoorMetre.Rhythm</a>
@if (Model.LoggedIn)
{
<a href="/User/Section?poemId=@Model.PoemId&index=@s.Index#metre" role="button" class="cursor-pointer" title="ویرایش وزن">
<i class="notranslate noindent-info-button edit-poem-button"></i>
</a>
}
</td>
</tr>
}

View File

@ -405,6 +405,12 @@
</td>
<td>
<a href="@Html.Raw($"/simi/?v={Uri.EscapeDataString(s.GanjoorMetre.Rhythm)}&amp;a={Model.GanjoorPage.PoetOrCat.Poet.Id}")">@s.GanjoorMetre.Rhythm</a>
@if (Model.LoggedIn)
{
<a href="/User/Section?poemId=@Model.GanjoorPage.Id&index=@s.Index#metre" role="button" class="cursor-pointer" title="ویرایش وزن">
<i class="notranslate noindent-info-button edit-poem-button"></i>
</a>
}
</td>
</tr>
}