Autoroute slug editor now has "view" link once it's been saved.

This commit is contained in:
Bertrand Le Roy
2014-05-08 19:09:42 -07:00
parent d5c762f51f
commit e0c4c87a77

View File

@@ -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>