@model BTCPayServer.Components.TruncateCenter.TruncateCenterViewModel @{ var classes = string.IsNullOrEmpty(Model.Classes) ? string.Empty : Model.Classes.Trim(); var isTruncated = !string.IsNullOrEmpty(Model.Start) && !string.IsNullOrEmpty(Model.End); @if (Model.Copy) classes += " truncate-center--copy"; @if (Model.Elastic) classes += " truncate-center--elastic"; } @if (Model.IsVue) { @if (Model.Elastic) { } else { } } else { @(Model.Elastic || !isTruncated ? Model.Text : $"{Model.Start}…") @if (isTruncated) { @Model.End } @Model.Text } @if (Model.Copy) { } @if (!string.IsNullOrEmpty(Model.Link)) { }