updated previewBadge with option to open in PreviewMode in BackOffice and with new styling

This commit is contained in:
Niels Lyngsø
2019-12-17 13:50:35 +01:00
parent 62c701d5c3
commit 9640f05582
4 changed files with 416 additions and 227 deletions

View File

@@ -64,7 +64,8 @@ namespace Umbraco.Web
var htmlBadge =
String.Format(Current.Configs.Settings().Content.PreviewBadge,
IOHelper.ResolveUrl(SystemDirectories.Umbraco),
Current.UmbracoContext.HttpContext.Server.UrlEncode(Current.UmbracoContext.HttpContext.Request.Path));
Current.UmbracoContext.HttpContext.Server.UrlEncode(Current.UmbracoContext.HttpContext.Request.Path),
Current.UmbracoContext.PublishedRequest.PublishedContent.Id);
return new MvcHtmlString(htmlBadge);
}
return new MvcHtmlString("");