#208 improving bookmarks page UI

This commit is contained in:
Hamid Reza Mohammadi 2021-09-27 18:03:09 +03:30
parent 4e9e80db8b
commit 3b10e0c6cb
2 changed files with 8 additions and 5 deletions

View File

@ -38,23 +38,26 @@ else
<div style="background-color:@color" id="bookmark-@bookmark.Id">
<blockquote>
<p>
<small>در @bookmark.DateTime.ToFriendlyPersianDateTextify()</small>
از <a href="@($"{bookmark.PoemFullUrl}#bn{bookmark.CoupletIndex + 1}")">@bookmark.PoemFullTitle</a> <small>در @bookmark.DateTime.ToFriendlyPersianDateTextify()</small>
</p>
<a href="@($"{bookmark.PoemFullUrl}#bn{bookmark.CoupletIndex + 1}")">
<img src="@bookmark.PoetImageUrl" style="width:unset;display:unset;border:unset" alt="@bookmark.PoetName" />
</a>
<div id="bookmark-text-@bookmark.Id">
<p>
@bookmark.VerseText
</p>
@if(!string.IsNullOrEmpty(bookmark.Verse2Text))
@if (!string.IsNullOrEmpty(bookmark.Verse2Text))
{
<p>
@bookmark.Verse2Text
</p>
}
</div>
</blockquote>
</div>

View File

@ -157,7 +157,7 @@ namespace RMuseum.Services.Implementation
{
Id = bookmark.Id,
PoetName = bookmark.Poem.Cat.Poet.Nickname,
PoetImageUrl = $"{WebServiceUrl.Url}{$"/api/poet/image/{bookmark.Poem.FullUrl.Substring(1, bookmark.Poem.FullUrl.IndexOf('/', 1) - 1)}.gif"}",
PoetImageUrl = $"{WebServiceUrl.Url}{$"/api/ganjoor/poet/image/{bookmark.Poem.FullUrl.Substring(1, bookmark.Poem.FullUrl.IndexOf('/', 1) - 1)}.gif"}",
PoemFullTitle = bookmark.Poem.FullTitle,
PoemFullUrl = bookmark.Poem.FullUrl,
CoupletIndex = bookmark.CoupletIndex,