mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Autoroute slug editor now has "view" link once it's been saved.
This commit is contained in:
@@ -27,6 +27,14 @@
|
||||
else {
|
||||
<span>@Url.MakeAbsolute("/")@urlPrefix</span>
|
||||
}
|
||||
@if (!String.IsNullOrEmpty(Model.CurrentUrl)) {
|
||||
<span>
|
||||
@Html.Link(
|
||||
T("View").Text,
|
||||
Url.MakeAbsolute("/") + urlPrefix + Model.CurrentUrl.TrimStart('/'),
|
||||
new { target = "_blank" })
|
||||
</span>
|
||||
}
|
||||
|
||||
<span class="hint">@T("Save the current item and leave the input empty to have it automatically generated using the pattern {0} e.g., {1}", defaultPattern.Name, defaultPattern.Description)</span>
|
||||
|
||||
|
Reference in New Issue
Block a user