mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 10:54:50 +08:00
Merge
--HG-- branch : dev
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
<html>
|
||||
<body onload="iframeResizePipe()">
|
||||
<iframe id="helpframe" src="" frameborder="0" width="0" height="0"></iframe>
|
||||
<script type="text/javascript">
|
||||
function iframeResizePipe() {
|
||||
var height = document.body.scrollHeight;
|
||||
var helpFrame = document.getElementById('helpframe') || frames['helpframe'];
|
||||
helpFrame.src = 'Admin/DashboardProxy' + '#' + height;
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Your advisory message here -->
|
||||
</body>
|
||||
</html>
|
@@ -154,7 +154,6 @@
|
||||
<Compile Include="WebRole.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Advisory.html" />
|
||||
<Content Include="Default.aspx" />
|
||||
<Content Include="Global.asax" />
|
||||
</ItemGroup>
|
||||
|
@@ -1,14 +0,0 @@
|
||||
<html>
|
||||
<body onload="iframeResizePipe()">
|
||||
<iframe id="helpframe" src="" frameborder="0" width="0" height="0"></iframe>
|
||||
<script type="text/javascript">
|
||||
function iframeResizePipe() {
|
||||
var height = document.body.scrollHeight;
|
||||
var helpFrame = document.getElementById('helpframe') || frames['helpframe'];
|
||||
helpFrame.src = 'Admin/DashboardProxy' + '#' + height;
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Your advisory message here -->
|
||||
</body>
|
||||
</html>
|
@@ -1,4 +1,5 @@
|
||||
@model dynamic
|
||||
@using Orchard.Utility.Extensions;
|
||||
|
||||
<script type="text/javascript">
|
||||
// Resize iframe to full height
|
||||
@@ -11,7 +12,7 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<iframe id="advisory" src="http://www.orchardproject.net/advisory" frameborder="0" height="0" width="100%" >
|
||||
<iframe id="advisory" src="http://www.orchardproject.net/advisory?url=@Server.UrlEncode(Url.AbsoluteAction("Index", "Helper", new { area = "Dashboard" }))" frameborder="0" height="0" width="100%" >
|
||||
<p>Your browser does not support iframes.</p>
|
||||
</iframe>
|
||||
|
||||
|
@@ -121,7 +121,6 @@
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Advisory.html" />
|
||||
<Content Include="Default.aspx" />
|
||||
<Content Include="Global.asax" />
|
||||
<Content Include="Refresh.html" />
|
||||
|
@@ -1,4 +1,6 @@
|
||||
using System;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace Orchard.Utility.Extensions {
|
||||
public static class HttpRequestExtensions {
|
||||
@@ -33,5 +35,11 @@ namespace Orchard.Utility.Extensions {
|
||||
public static string ToUrlString(this HttpRequest request) {
|
||||
return string.Format("{0}://{1}{2}", request.Url.Scheme, request.Headers["Host"], request.RawUrl);
|
||||
}
|
||||
|
||||
public static string AbsoluteAction(this UrlHelper url, string action, string controller, object routeValues) {
|
||||
Uri requestUrl = url.RequestContext.HttpContext.Request.Url;
|
||||
return string.Concat(requestUrl.GetLeftPart(UriPartial.Authority),url.Action(action, controller, routeValues));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user