@using PlexRequests.UI.Helpers @Html.Partial("_Sidebar") @{ int port; if (Model.Port == 0) { port = 3579; } else { port = Model.Port; } var baseUrl = Html.GetBaseUrl(); var formAction = "/admin"; if (!string.IsNullOrEmpty(baseUrl.ToHtmlString())) { formAction = "/" + baseUrl.ToHtmlString() + formAction; } var plexTheme = string.Empty; var originalTheme = string.Empty; if (!string.IsNullOrEmpty(Model.ThemeName)) { plexTheme = Model.ThemeName.Equals(Themes.PlexTheme) ? "selected=\"selected\"" : string.Empty; originalTheme = Model.ThemeName.Equals(Themes.OriginalTheme) ? "selected=\"selected\"" : string.Empty; } else { plexTheme = "selected=\"selected\""; } }