Got a profile

This commit is contained in:
Paul Schneider
2023-04-01 13:03:56 +01:00
parent 86aebbdc9c
commit 2562c9a569
9 changed files with 20 additions and 13 deletions

View File

@ -2,8 +2,8 @@
<div class="performer @(Model.Active?"active":"inactive")">
@Html.DisplayFor(m=>m.UserName)
@if (Model.SettingsClassName!=null)
{ await Html.RenderPartialAsync( Model.SettingsClassName,Model.Settings); }
@if (!string.IsNullOrWhiteSpace(Model.SettingsClassName))
{ await Html.RenderPartialAsync(Model.SettingsClassName, Model.Settings); }
@if (Model.WebSite!=null) {
<a target="yaext" href="@Model.WebSite" class="btn btn-info">WebSite: @Model.WebSite</a>

View File

@ -25,6 +25,7 @@
@using Microsoft.AspNetCore.Authorization;;
@using Microsoft.AspNetCore.Mvc;
@using Microsoft.AspNetCore.Html;
@using Microsoft.AspNetCore.Identity;
@using Yavsc.Helpers;
@using PayPal.PayPalAPIInterfaceService.Model;
@ -33,3 +34,5 @@
@inject IAuthorizationService AuthorizationService
@inject Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer<Yavsc.Startup> SR
@inject Microsoft.Extensions.Options.IOptions<SiteSettings> SiteSettings
@inject SignInManager<ApplicationUser> SignInManager
@inject UserManager<ApplicationUser> UserManager