need to use context rather than filter

This commit is contained in:
sbwalker 2023-08-31 14:18:19 -04:00
parent 0d56d35646
commit 211d8c7f19
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@
{
<br /><small>@SharedLocalizer["Search.Source"]:</small> <strong>@(new Uri(context.PackageUrl).Host)</strong>
}
@if (_price == "free")
@if (context.Price == null)
{
<br /><small>@SharedLocalizer["Search.Downloads"]:</small> <strong>@(String.Format("{0:n0}", context.Downloads))</strong>
}

View File

@ -82,7 +82,7 @@
{
<br /><small>@SharedLocalizer["Search.Source"]:</small> <strong>@(new Uri(context.PackageUrl).Host)</strong>
}
@if (_price == "free")
@if (context.Price == null)
{
<br /><small>@SharedLocalizer["Search.Downloads"]:</small> <strong>@(String.Format("{0:n0}", context.Downloads))</strong>
}