BlazorStart/Start/Client/Components/Bookmark.razor

21 lines
450 B
Plaintext
Raw Normal View History

2021-12-05 23:50:48 +00:00
<li>
@if (!String.IsNullOrEmpty(this.Model.Notes))
{
<details>
<summary>
<a href="@this.Model.Url" class="bookmarkLink">@this.Model.Title</a>
</summary>
@this.Model.Notes
</details>
}
else
{
<a href="@this.Model.Url" class="bookmarkLink">@this.Model.Title</a>
}
</li>
@code {
[Parameter]
public BookmarkDto Model { get; set; } = null!;
}