2021-03-22 12:09:25 -04:00
@using SharedLibraryCore.Interfaces
@using Data.Models
2021-03-23 16:30:49 -04:00
@using Data.Models.Client
2022-04-19 19:43:58 -04:00
@using WebfrontCore.Permissions
@using WebfrontCore.ViewModels
2020-08-17 22:21:11 -04:00
@model SharedLibraryCore.Dtos.PlayerInfo
2018-03-22 14:50:09 -04:00
@{
2021-03-23 16:30:49 -04:00
var match = System.Text.RegularExpressions.Regex.Match(Model.Name.ToUpper(), "[A-Z]").Value;
var shortCode = match == string.Empty ? "?" : match;
var gravatarUrl = Model.Meta.FirstOrDefault(m => m.Key == "GravatarEmail")?.Value;
2022-02-23 13:47:00 -05:00
var isFlagged = Model.LevelInt == (int)EFClient.Permission.Flagged;
var isPermBanned = Model.LevelInt == (int)EFClient.Permission.Banned;
2021-03-23 16:30:49 -04:00
var isTempBanned = Model.ActivePenalty?.Type == EFPenalty.PenaltyType.TempBan;
var translationKey = $"WEBFRONT_PROFILE_{Model.ActivePenalty?.Type.ToString().ToUpper()}_INFO";
2022-02-23 13:47:00 -05:00
var ignoredMetaTypes = new[] { MetaType.Information, MetaType.Other, MetaType.QuickMessage };
2020-08-17 22:21:11 -04:00
2022-04-19 19:43:58 -04:00
string ClassForPenaltyType(EFPenalty.PenaltyType type)
{
return type switch
2019-03-24 22:34:20 -04:00
{
2022-04-19 19:43:58 -04:00
EFPenalty.PenaltyType.Ban => "alert-danger",
EFPenalty.PenaltyType.Flag => "alert-secondary",
EFPenalty.PenaltyType.TempBan => "alert-secondary",
2022-10-24 19:58:12 -04:00
EFPenalty.PenaltyType.TempMute => "alert-secondary",
EFPenalty.PenaltyType.Mute => "alert-secondary",
2022-04-19 19:43:58 -04:00
_ => "alert"
2022-09-08 16:03:38 -04:00
};
2022-04-19 19:43:58 -04:00
}
2021-07-01 22:58:09 -04:00
2022-04-19 19:43:58 -04:00
string ClassForProfileBackground()
{
return (ViewBag.PermissionsSet as IEnumerable<string>).HasPermission(WebfrontEntity.ClientLevel, WebfrontPermission.Read) ? $"level-bgcolor-{Model.LevelInt}" : "level-bgcolor-0";
}
}
2018-04-15 00:26:27 -04:00
2022-04-19 19:43:58 -04:00
<div class="content row mt-20">
2022-06-09 14:59:00 -04:00
<div class="col-12 col-lg-9">
2022-04-21 13:39:09 -04:00
@if (Model.ActivePenalty != null)
{
<has-permission entity="ClientLevel" required-permission="Read">
<div class="alert @ClassForPenaltyType(Model.ActivePenalty.Type) mt-10 mb-10" role="alert">
@foreach (var result in Utilities.SplitTranslationTokens(translationKey))
{
switch (result.MatchValue)
2020-08-17 22:21:11 -04:00
{
2022-04-21 13:39:09 -04:00
case "reason":
<span class="text-light-dm font-weight-lighter">@(ViewBag.Authorized ? !string.IsNullOrEmpty(Model.ActivePenalty.AutomatedOffense) && Model.ActivePenalty.Type != EFPenalty.PenaltyType.Warning ? Utilities.FormatExt(ViewBag.Localization["WEBFRONT_PROFILE_ANTICHEAT_DETECTION"], Model.ActivePenalty.AutomatedOffense) : Model.ActivePenalty.Offense.StripColors() : Model.ActivePenalty.Offense.StripColors())</span>
break;
case "time":
2023-01-24 15:43:00 -05:00
if (Model.ActivePenalty.Expires.HasValue)
{
<span class="text-light-dm font-weight-lighter">
@((Model.ActivePenalty.Expires.Value - DateTime.UtcNow).HumanizeForCurrentCulture())
</span>
}
2022-04-21 13:39:09 -04:00
break;
default:
<span>@result.MatchValue</span>
break;
2020-08-17 22:21:11 -04:00
}
2022-04-21 13:39:09 -04:00
}
</div>
</has-permission>
}
2022-04-19 19:43:58 -04:00
2022-07-05 13:02:43 -04:00
<h2 class="content-title mb-0">@ViewBag.Localization["WEBFRONT_PROFILE_TITLE"]</h2>
2022-06-07 22:58:32 -04:00
<div class="font-size-12 text-muted">@ViewBag.Localization[$"GAME_{Model.Game}"]</div>
2022-04-19 19:43:58 -04:00
2022-04-21 13:39:09 -04:00
<div id="profile_wrapper" class="mb-10 mt-10">
2022-04-19 19:43:58 -04:00
2022-04-21 13:39:09 -04:00
<!-- online status indicator -->
@if (Model.Online)
{
2022-07-05 13:02:43 -04:00
<div class="bg-success rounded-circle position-absolute status-indicator z-20 mt-10 ml-10" data-toggle="tooltip" data-placement="bottom" data-title="@ViewBag.Localization["WEBFRONT_PROFILE_TOOLTIP_ONLINE"]"></div>
2022-04-21 13:39:09 -04:00
<div class="bg-success rounded-circle position-absolute status-indicator with-ripple z-10 mt-10 ml-10"></div>
}
2022-04-19 19:43:58 -04:00
2022-04-21 13:39:09 -04:00
<!-- main profile row -->
<div class="card p-15 ml-0 mr-0 mt-0 mb-10 d-flex flex-fill flex-wrap flex-column flex-md-row justify-content-center">
<div class="pl-5 pr-5 d-flex flex-column flex-md-row">
<div id="profile_avatar" class="w-150 w-md-100 h-150 h-md-100 mt-5 mb-5 d-flex justify-content-center align-self-center rounded @ClassForProfileBackground() @(isTempBanned ? "penalties-bgcolor-tempban" : "")" style="background-image:url('@($"https://gravatar.com/avatar/{gravatarUrl}?size=168&default=blank&rating=pg")">
@if (string.IsNullOrEmpty(gravatarUrl))
{
<div class="profile-shortcode align-self-center text-dark-lm">@shortCode</div>
}
</div>
<div class="d-flex flex-column align-self-center ml-20 mr-20 mt-10 mb-10 mt-md-0 mb-md-0 text-center text-md-left">
<!-- name -->
<div id="profile_name">
2022-07-09 17:32:23 -04:00
<span class="font-size-20 font-weight-medium text-force-break">
2022-04-21 13:39:09 -04:00
<color-code value="@Model.Name"></color-code>
</span>
<has-permission entity="MetaAliasUpdate" required-permission="Read">
<div class="dropdown with-arrow">
<div data-toggle="dropdown" id="profileAliasHistory" aria-haspopup="true" aria-expanded="false">
@if (Model.Aliases.Any())
{
<i class="oi oi-caret-bottom font-size-12" aria-hidden="true"></i>
}
2022-04-19 19:43:58 -04:00
</div>
2022-04-21 13:39:09 -04:00
<div class="dropdown-menu dropdown-menu-center @(Model.Aliases.Where(alias => !alias.Item1.Contains(" ")).Max(alias => (int?)alias.Item1.Length) >= 15 ? "w-250" : "")" aria-labelledby="profileAliasHistory">
@foreach (var (alias, dateAdded) in Model.Aliases.OrderByDescending(alias => alias.Item2).Take(15))
{
<a asp-controller="Client" asp-action="Find" asp-route-clientName="@alias.StripColors()" class="dropdown-item" data-toggle="tooltip" data-title="@dateAdded.HumanizeForCurrentCulture()">
<i class="oi oi-magnifying-glass text-muted mr-5"></i>
<color-code value="@alias"></color-code>
</a>
}
@if (Model.Aliases.Count > 15)
{
<div class="dropdown-divider"></div>
2022-07-05 13:02:43 -04:00
<span class="dropdown-item bg-dark-dm bg-light-lm">@((ViewBag.Localization["WEBFRONT_PROFILE_ALIAS_COUNT_MORE_FORMAT"] as string).FormatExt(Model.Aliases.Count - 15))</span>
2022-04-21 13:39:09 -04:00
}
2022-04-19 19:43:58 -04:00
</div>
</div>
</has-permission>
2022-04-21 13:39:09 -04:00
</div>
<!-- permission level -->
<has-permission entity="ClientLevel" required-permission="Read">
<div class="align-self-center align-self-md-start font-weight-bold font-size-16 level-color-@Model.LevelInt">
<div class="d-flex flex-row">
2022-07-09 17:32:23 -04:00
<color-code value="@Model.Level"></color-code>
2022-04-21 13:39:09 -04:00
</div>
</div>
</has-permission>
2021-01-09 13:37:20 -05:00
2022-04-21 13:39:09 -04:00
<!-- guid -->
<has-permission entity="ClientGuid" required-permission="Read">
<div class="dropdown dropup with-arrow">
<div class="text-muted" data-toggle="dropdown" id="altGuidFormatsDropdown" aria-haspopup="true" aria-expanded="false">@Model.NetworkId.ToString("X")</div>
<div class="dropdown-menu" aria-labelledby="altGuidFormatsDropdown">
<div class="p-10 font-size-12">
2022-07-05 13:02:43 -04:00
<div class="">@ViewBag.Localization["WEBFRONT_PROFILE_POPOVER_ALTERNATIVE_GUID"]</div>
2022-04-21 13:39:09 -04:00
<div class="dropdown-divider mt-5 mb-5"></div>
<div class="text-muted font-weight-lighter">@((ulong)Model.NetworkId)</div>
2022-04-19 19:43:58 -04:00
</div>
</div>
2022-04-21 13:39:09 -04:00
</div>
</has-permission>
2022-04-19 19:43:58 -04:00
2022-04-21 13:39:09 -04:00
<!-- ip address -->
<div class="align-self-center align-self-md-start d-flex flex-row">
<span class="text-muted mr-5">@Model.IPAddress</span>
<has-permission entity="MetaAliasUpdate" required-permission="Read">
<div class="dropdown with-arrow">
<div data-toggle="dropdown" id="profileIPAddressHistory" aria-haspopup="true" aria-expanded="false">
@if (Model.IPs.Any(ip => !string.IsNullOrEmpty(ip.Item1)))
{
<i class="oi oi-caret-bottom font-size-12 text-muted" aria-hidden="true"></i>
}
</div>
<div class="dropdown-menu dropdown-menu-center" aria-labelledby="profileAliasHistory">
@foreach (var (ip, dateAdded) in Model.IPs.OrderByDescending(ip => ip.Item2).Take(15))
{
if (string.IsNullOrEmpty(ip))
2022-04-19 19:43:58 -04:00
{
2022-04-21 13:39:09 -04:00
continue;
2022-04-19 19:43:58 -04:00
}
2022-04-21 13:39:09 -04:00
<div class="d-flex dropdown-item" data-toggle="tooltip" data-title="@dateAdded.HumanizeForCurrentCulture()">
<a asp-controller="Client" asp-action="Find" asp-route-clientName="@ip">
2022-04-19 19:43:58 -04:00
<i class="oi oi-magnifying-glass text-muted mr-5"></i>
2022-04-21 13:39:09 -04:00
</a>
<a href="#contextModal" class="profile-ip-lookup dropdown-item p-0 m-0" data-ip="@ip">
2022-04-19 19:43:58 -04:00
<color-code value="@ip"></color-code>
</a>
2022-04-21 13:39:09 -04:00
</div>
}
@if (Model.IPs.Count > 15)
{
<div class="dropdown-divider"></div>
2022-07-09 17:32:23 -04:00
<span class="dropdown-item bg-dark-dm bg-light-lm">@((ViewBag.Localization["WEBFRONT_PROFILE_ALIAS_COUNT_MORE_FORMAT"] as string).FormatExt(Model.IPs.Count - 15))</span>
2022-04-21 13:39:09 -04:00
}
2022-04-19 19:43:58 -04:00
</div>
2022-04-21 13:39:09 -04:00
</div>
</has-permission>
2021-01-09 13:37:20 -05:00
</div>
2022-04-19 19:43:58 -04:00
</div>
2022-04-21 13:39:09 -04:00
</div>
2022-04-19 19:43:58 -04:00
2022-07-20 11:32:26 -04:00
@if (!string.IsNullOrWhiteSpace(Model.NoteMeta?.Note))
{
<has-permission entity="ClientNote" required-permission="Read">
<div class="rounded border p-10 m-10 d-flex flex-column flex-md-row" style="border-style: dashed !important">
<i class="align-self-center oi oi-clipboard"></i>
<div class="align-self-center font-size-12 font-weight-light pl-10 pr-10">
@foreach (var line in Model.NoteMeta.Note.Split("\n"))
{
<div class="text-force-break">@line.TrimEnd('\r')</div>
}
<div class="mt-5">
2022-07-20 12:39:46 -04:00
<a asp-controller="Client" asp-action="Profile" asp-route-id="@Model.NoteMeta.OriginEntityId" class="no-decoration ">
<color-code value="@Model.NoteMeta.OriginEntityName"></color-code>
</a>
2022-07-20 11:32:26 -04:00
<span>— @Model.NoteMeta.ModifiedDate.HumanizeForCurrentCulture()</span>
</div>
</div>
</div>
</has-permission>
}
2022-04-21 13:39:09 -04:00
<div class="flex-fill d-flex justify-content-center justify-content-md-end mt-10 mt-md-0">
<!-- country flag -->
<div id="ipGeoDropdown" class="dropdown with-arrow align-self-center">
<a href="#" data-toggle="dropdown" id="avatar-popover-toggle" aria-haspopup="true" aria-expanded="false">
@if (!string.IsNullOrEmpty(Model.GeoLocationInfo.CountryCode))
{
<div class="profile-country-flag w-100 rounded align-self-center" style="background-image: url('https://flagcdn.com/w160/@(Model.GeoLocationInfo.CountryCode.ToLower()).png')" data-ip="@Model.IPAddress"></div>
}
</a>
<div class="dropdown-menu dropdown-menu-center z-30" aria-labelledby="avatar-popover-toggle">
<has-permission entity="ClientIPAddress" required-permission="Read">
<h6 class="dropdown-header font-weight-bold">@Model.IPAddress</h6>
<div class="dropdown-divider"></div>
</has-permission>
<div class="dropdown-item geo-country">@Model.GeoLocationInfo.Country</div>
@if (!string.IsNullOrEmpty(Model.GeoLocationInfo.Region))
{
<div class="dropdown-item text-muted geo-region">@Model.GeoLocationInfo.Region</div>
<div class="dropdown-divider"></div>
}
@if (!string.IsNullOrEmpty(Model.GeoLocationInfo.Organization))
{
<div class="dropdown-item geo-organization">@Model.GeoLocationInfo.Organization</div>
}
2022-04-19 19:43:58 -04:00
</div>
</div>
</div>
2022-06-07 22:58:32 -04:00
2022-04-21 13:39:09 -04:00
<div>
<hr class="mr-5 ml-5"/>
<!-- meta info block -->
<div class="d-flex flex-column flex-md-row text-center text-md-left flex-wrap">
<partial name="Meta/_Information.cshtml" model="@Model.Meta"/>
</div>
</div>
2019-03-24 22:34:20 -04:00
</div>
2022-04-21 13:39:09 -04:00
</div>
2021-03-22 12:09:25 -04:00
2019-08-04 18:06:07 -04:00
2022-04-21 13:39:09 -04:00
<hr class="mt-10 mb-10"/>
2019-03-25 22:12:16 -04:00
2022-04-21 13:39:09 -04:00
<!-- meta filter list -->
<div class="mb-10 mt-15">
@foreach (var type in Enum.GetValues(typeof(MetaType)).Cast<MetaType>().Where(meta => !ignoredMetaTypes.Contains(meta)).OrderByDescending(meta => meta == MetaType.All))
2022-04-19 19:43:58 -04:00
{
2022-04-21 13:39:09 -04:00
var buttonClass = !Model.MetaFilterType.HasValue && type == MetaType.All || Model.MetaFilterType.HasValue && Model.MetaFilterType.Value.ToString() == type.ToString() ? "btn-primary text-light" : "text-muted";
<a asp-action="Profile" asp-controller="Client"
class="meta-filter no-decoration"
asp-route-id="@Model.ClientId"
asp-route-metaFilterType="@type"
data-meta-type="@type">
<button class="btn btn-sm d-none d-md-inline mt-5 mb-5 @buttonClass">@type.ToTranslatedName()</button>
<button class="btn btn-block d-block d-md-none mt-10 mb-10 @buttonClass">@type.ToTranslatedName()</button>
</a>
2022-04-19 19:43:58 -04:00
}
2022-04-21 13:39:09 -04:00
</div>
2022-04-19 19:43:58 -04:00
2022-04-21 13:39:09 -04:00
@if (!ViewBag.Authorized && !ViewBag.EnablePrivilegedUserPrivacy || ViewBag.Authorized)
{
<div class="row d-md-flex pt-2">
<div id="profile_events" class="text-muted text-left pl-md-0 pr-md-0">
@await Component.InvokeAsync("ProfileMetaList", new { clientId = Model.ClientId, count = 30, offset = 0, startAt = DateTime.UtcNow, metaType = Model.MetaFilterType })
</div>
2020-08-17 22:21:11 -04:00
</div>
2022-04-21 13:39:09 -04:00
}
<hr class="mt-10 mb-10"/>
<div class="text-center">
<i id="loaderLoad" class="oi oi-chevron-bottom loader-load-more text-primary" aria-hidden="true"></i>
</div>
2022-04-19 19:43:58 -04:00
2018-02-21 20:29:23 -05:00
</div>
2018-02-24 00:56:03 -05:00
2022-04-19 19:43:58 -04:00
<!-- actions desktop -->
@{
var menuItems = new SideContextMenuItems
{
2022-07-05 13:02:43 -04:00
MenuTitle = ViewBag.Localization["WEBFRONT_PROFILE_CONTEXT_MENU_TITLE"]
2022-04-19 19:43:58 -04:00
};
if (Model.Online)
{
menuItems.Items.Add(new SideContextMenuItem
{
2022-07-05 13:02:43 -04:00
Title = ViewBag.Localization["WEBFRONT_PROFILE_CONTEXT_MENU_ACTION_JOIN"],
2022-04-19 19:43:58 -04:00
IsLink = true,
IsButton = true,
Reference = Model.ConnectProtocolUrl,
2022-07-05 13:02:43 -04:00
Tooltip = (ViewBag.Localization["WEBFRONT_PROFILE_CONTEXT_MENU_TOOLTIP_JOIN"] as string).FormatExt(Model.CurrentServerName.StripColors()),
2022-04-19 19:43:58 -04:00
Icon = "oi-play-circle"
});
}
if (Model.LevelInt != -1 && ViewBag.Authorized)
{
menuItems.Items.Add(new SideContextMenuItem
{
2022-07-05 13:02:43 -04:00
Title = ViewBag.Localization["WEBFRONT_PROFILE_CONTEXT_MENU_ACTION_LEVEL"],
2022-04-19 19:43:58 -04:00
IsButton = true,
Reference = "edit",
Icon = "oi-cog",
2022-04-28 11:09:25 -04:00
EntityId = Model.ClientId
2022-04-19 19:43:58 -04:00
});
}
2022-07-20 11:32:26 -04:00
2022-06-11 12:34:00 -04:00
if (ViewBag.Authorized)
{
2022-07-19 21:37:48 -04:00
menuItems.Items.Add(new SideContextMenuItem
{
2022-07-20 11:32:26 -04:00
Title = ViewBag.Localization["WEBFRONT_PROFILE_CONTEXT_MENU_TAG"],
2022-07-19 21:37:48 -04:00
IsButton = true,
Reference = "SetClientTag",
Icon = "oi-tag",
EntityId = Model.ClientId
});
2022-07-20 11:32:26 -04:00
if ((ViewBag.PermissionsSet as IEnumerable<string>).HasPermission(WebfrontEntity.ClientNote, WebfrontPermission.Write))
{
menuItems.Items.Add(new SideContextMenuItem
{
Title = ViewBag.Localization["WEBFRONT_PROFILE_CONTEXT_MENU_NOTE"],
IsButton = true,
Reference = "AddClientNote",
Icon = "oi-clipboard",
EntityId = Model.ClientId
});
}
2022-06-11 12:34:00 -04:00
menuItems.Items.Add(new SideContextMenuItem
{
2022-07-05 13:02:43 -04:00
Title = ViewBag.Localization["WEBFRONT_PROFILE_CONTEXT_MENU_ACTION_MESSAGE"],
2022-06-11 12:34:00 -04:00
IsButton = true,
Reference = "OfflineMessage",
Icon = "oi oi-envelope-closed",
EntityId = Model.ClientId
});
}
2022-04-19 19:43:58 -04:00
menuItems.Items.Add(new SideContextMenuItem
{
2022-07-05 13:02:43 -04:00
Title = ViewBag.Localization["WEBFRONT_PROFILE_CONTEXT_MENU_ACTION_STATS"],
2022-04-19 19:43:58 -04:00
IsButton = true,
IsLink = true,
Reference = Url.Action("Advanced", "ClientStatistics", new { id = Model.ClientId }),
Icon = "oi-graph",
});
if (!isPermBanned && ViewBag.Authorized)
{
menuItems.Items.Add(new SideContextMenuItem
{
2022-07-05 13:02:43 -04:00
Title = isFlagged ? ViewBag.Localization["WEBFRONT_ACTION_UNFLAG_NAME"] : ViewBag.Localization["WEBFRONT_ACTION_FLAG_NAME"],
2022-04-19 19:43:58 -04:00
IsButton = true,
Reference = isFlagged ? "unflag" : "flag",
2022-04-28 11:09:25 -04:00
Icon = "oi-flag",
EntityId = Model.ClientId
2022-04-19 19:43:58 -04:00
});
}
2022-06-07 22:58:32 -04:00
2022-04-22 17:56:29 -04:00
if (Model.LevelInt < (int)ViewBag.User.Level && Model.Online)
{
menuItems.Items.Add(new SideContextMenuItem
{
2022-07-05 13:02:43 -04:00
Title = ViewBag.Localization["WEBFRONT_ACTION_KICK_NAME"],
2022-04-22 17:56:29 -04:00
IsButton = true,
Reference = "kick",
Icon = "oi-circle-x",
2022-04-28 11:09:25 -04:00
EntityId = Model.ClientId
2022-04-22 17:56:29 -04:00
});
}
2022-04-19 19:43:58 -04:00
2022-10-24 19:58:12 -04:00
if ((Model.LevelInt < (int)ViewBag.User.Level && !isPermBanned || isTempBanned) && ViewBag.Authorized)
2022-04-19 19:43:58 -04:00
{
menuItems.Items.Add(new SideContextMenuItem
{
2022-07-05 13:02:43 -04:00
Title = ViewBag.Localization["WEBFRONT_ACTION_BAN_NAME"],
2022-04-19 19:43:58 -04:00
IsButton = true,
Reference = "ban",
Icon = "oi-lock-unlocked",
2022-04-28 11:09:25 -04:00
EntityId = Model.ClientId
2022-04-19 19:43:58 -04:00
});
}
2022-10-24 19:58:12 -04:00
if ((Model.LevelInt < (int)ViewBag.User.Level && isPermBanned || isTempBanned) && ViewBag.Authorized)
2022-04-19 19:43:58 -04:00
{
menuItems.Items.Add(new SideContextMenuItem
{
2022-07-05 13:02:43 -04:00
Title = ViewBag.Localization["WEBFRONT_ACTION_UNBAN_NAME"],
2022-04-19 19:43:58 -04:00
IsButton = true,
Reference = "unban",
Icon = "oi-lock-locked",
2022-04-28 11:09:25 -04:00
EntityId = Model.ClientId
2022-04-19 19:43:58 -04:00
});
}
2022-06-11 12:34:00 -04:00
2022-10-25 15:03:35 -04:00
foreach (var interaction in Model.Interactions.Where(i => (int)ViewBag.User.Level >= ((int?)i.MinimumPermission ?? 0)))
2022-09-08 16:03:38 -04:00
{
menuItems.Items.Add(new SideContextMenuItem
{
Title = interaction.Name,
Tooltip = interaction.Description,
EntityId = interaction.EntityId,
Icon = interaction.DisplayMeta,
Reference = interaction.ActionPath,
Meta = System.Text.Json.JsonSerializer.Serialize(interaction.ActionMeta),
IsButton = true
});
}
2021-01-09 13:37:20 -05:00
}
2022-04-19 19:43:58 -04:00
<partial name="_SideContextMenu" for="@menuItems"></partial>
2018-02-21 20:29:23 -05:00
2019-03-29 22:56:56 -04:00
</div>
2018-03-27 00:54:20 -04:00
@section targetid {
2021-03-22 12:09:25 -04:00
<input type="hidden" name="targetId" value="@Model.ClientId"/>
2018-03-27 00:54:20 -04:00
}
2018-02-21 20:29:23 -05:00
@section scripts {
2018-04-09 23:33:42 -04:00
<environment include="Development">
<script type="text/javascript" src="~/js/profile.js"></script>
</environment>
2020-08-17 22:21:11 -04:00
<script>initLoader('/Client/Meta/@Model.ClientId', '#profile_events', 30, 30, [{ 'name': 'metaFilterType', 'value': '@Model.MetaFilterType' }]);</script>
2022-01-22 13:49:12 -05:00
}