Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing siteurl on single host #32

Merged
merged 4 commits into from
Mar 4, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,15 @@
{
<tr>
<td class="sitemap-name">
@if (Model.ShowHostsLabel)
{
<label>@Model.HostLabel</label>
}
@if (Model.ShowHostsDropDown)
{
<select asp-for="SitemapViewModel.SiteUrl" asp-items="Model.SiteHosts"></select>
}
else
{
<label>@Model.HostLabel</label>
<input type="hidden" class="form-control align-middle" asp-for="SitemapViewModel.SiteUrl" value="@Model.HostLabel"/>
brianweet marked this conversation as resolved.
Show resolved Hide resolved
}
<input type="text" class="form-control" asp-for="SitemapViewModel.RelativePathEditPart"/>Sitemap.xml
<br/><br/>
Language:
Expand Down Expand Up @@ -136,14 +137,15 @@
<form method="post">
<tr class="insert">
<td class="sitemap-name">
@if (Model.ShowHostsLabel)
{
<label asp-for="SitemapViewModel.RelativePath"></label>
}
@if (Model.ShowHostsDropDown)
{
<select asp-for="SitemapViewModel.SiteUrl" asp-items="Model.SiteHosts"></select>
}
else
{
<label asp-for="SitemapViewModel.RelativePath"></label>
<input type="hidden" class="form-control align-middle" asp-for="SitemapViewModel.SiteUrl" value="@Model.HostLabel"/>
marisks marked this conversation as resolved.
Show resolved Hide resolved
}

<input type="text" class="form-control" asp-for="SitemapViewModel.RelativePath" />Sitemap.xml
<br /><br />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public IndexModel(
[BindProperty] public IList<SelectListItem> SiteHosts { get; set; }
public bool ShowHostsDropDown { get; set; }
public string HostLabel { get; set; }
public bool ShowHostsLabel { get; set; }
[BindProperty] public IList<SelectListItem> LanguageBranches { get; set; }
protected int EditIndex { get; set; }
protected InsertItemPosition InsertItemPosition { get; set; }
Expand Down Expand Up @@ -198,7 +197,6 @@ private void PopulateHostListControl()
else
{
HostLabel = SiteHosts.ElementAt(0).Value;
ShowHostsLabel = true;
}
}

Expand Down