@model GeneralCommonSettingsModel @{ const int maxTextAreaRows = 10; const int minTextAreaRows = 5; int GetAreaRows(string rows) { if (string.IsNullOrEmpty(rows)) return 1; var rowsCount = rows.Split(Environment.NewLine).Length; return rowsCount switch { 0 => 1, < 10 => minTextAreaRows, _ => maxTextAreaRows }; } }
@Model.RobotsTxtSettings.CustomFileExists
} else {@Html.Raw(Model.RobotsTxtSettings.AdditionsInstruction)