Skip to content

Commit

Permalink
Add "Manage Sources" button next to sitemaps. (#13772)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek committed May 30, 2023
1 parent f4aa35b commit 0a8a189
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@
<label class="form-check-label" for="itemIds-@entry.SitemapId">&nbsp;</label>
</div>
<div class="w-100">
<a class="@(entry.Enabled ? String.Empty: "text-muted")" asp-action="Display" asp-route-sitemapId="@entry.SitemapId">@entry.Name</a>
<div class="float-end">
<a class="btn btn-info btn-sm" asp-action="Display" asp-route-sitemapId="@entry.SitemapId">@T["Manage Sources"]</a>
@if (entry.Enabled)
{
<a asp-action="Index" asp-controller="Sitemap" asp-area="OrchardCore.Sitemaps" asp-route-sitemapId="@entry.SitemapId" target="_blank" class="btn btn-success btn-sm">@T["View"]</a>
Expand All @@ -86,7 +88,6 @@
</ul>
</div>
</div>
<a class="@(entry.Enabled ? "": "text-muted")" asp-action="Display" asp-route-sitemapId="@entry.SitemapId">@entry.Name</a>
</div>
</li>
}
Expand Down

0 comments on commit 0a8a189

Please sign in to comment.