35 lines
616 B
Plaintext
35 lines
616 B
Plaintext
@using Salmon.Core.Cliff
|
|
|
|
|
|
@if(Value is null)
|
|
{
|
|
<span>(null)</span>
|
|
}
|
|
else
|
|
{
|
|
if (Predicate is not null && Predicate == "parent")
|
|
{
|
|
<a href=@($"Element/{System.Web.HttpUtility.UrlEncode(Value.ToString())}")>@Value.ToString()</a>
|
|
}
|
|
else if (Predicate is not null && Predicate == "Uri")
|
|
{
|
|
<a href=@Value.ToString()>@Value.ToString()</a>
|
|
}
|
|
else
|
|
{
|
|
<span>@Value.ToString()</span>
|
|
}
|
|
|
|
<CopyButton Value=@Value.ToString() />
|
|
}
|
|
|
|
|
|
|
|
@code {
|
|
[Parameter]
|
|
public object? Value { get; set; }
|
|
|
|
[Parameter]
|
|
public string Predicate { get; set; }
|
|
}
|