mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Adds a link "View" in "Admin/Index.cshtml" to see how it looks the Taxonomony on the front-end (#8323)
Fixes #8322
This commit is contained in:
parent
0469c3a2fd
commit
5015809444
@ -53,6 +53,7 @@
|
||||
</td>
|
||||
<td>
|
||||
@if (!taxonomyEntry.IsInternal) {
|
||||
@Html.ItemDisplayLink(T("View").Text, taxonomyEntry.ContentItem) <text>|</text>
|
||||
if (Authorizer.Authorize(Permissions.CreateTaxonomy)) {
|
||||
@Html.ItemEditLink(T("Edit").Text, taxonomyEntry.ContentItem, new { ReturnUrl = Request.RawUrl }) <text>|</text>
|
||||
}
|
||||
|
@ -41,11 +41,17 @@
|
||||
<tr>
|
||||
<td>
|
||||
<input type="hidden" value="@Model.Terms[termIndex].Id" name="@Html.NameOf(m => m.Terms[ti].Id)" />
|
||||
@* Tabs for levels *@ @for (var i = 1; i <= termEntry.GetLevels(); i++) { <span class="gap"> </span> }
|
||||
@* Tabs for levels *@ @for (var i = 1; i <= termEntry.GetLevels(); i++) {<span class="gap"> </span>}
|
||||
<input type="checkbox" value="true" name="@Html.NameOf(m => m.Terms[ti].IsChecked)" />
|
||||
@Html.ItemDisplayLink(termEntry.Name, termEntry.ContentItem)
|
||||
@if (Authorizer.Authorize(Permissions.EditTerm)) {
|
||||
@Html.ItemEditLink(termEntry.Name, termEntry.ContentItem, new { returnUrl = Url.Action("Index", "TermAdmin", new { taxonomyId = Model.Taxonomy.Id }) })
|
||||
}
|
||||
else {
|
||||
@Html.ItemDisplayText(termEntry.ContentItem)
|
||||
}
|
||||
</td>
|
||||
<td>
|
||||
@Html.ItemDisplayLink(T("View").Text, termEntry.ContentItem) <text>|</text>
|
||||
@if (Authorizer.Authorize(Permissions.EditTerm)) {
|
||||
@Html.ItemEditLink(T("Edit").Text, termEntry.ContentItem, new { returnUrl = Url.Action("Index", "TermAdmin", new { taxonomyId = Model.Taxonomy.Id }) }) <text>|</text>
|
||||
@Html.ActionLink(T("Move").ToString(), "MoveTerm", new { taxonomyId = Model.Taxonomy.Id, termIds = termEntry.Id })
|
||||
|
Loading…
Reference in New Issue
Block a user