#28 Remove environment page from the error page.
This commit is contained in:
parent
83c6ea7116
commit
26a6b5dc33
|
|
@ -132,10 +132,6 @@ namespace Microsoft.AspNet.Diagnostics
|
||||||
Cookies = request.Cookies,
|
Cookies = request.Cookies,
|
||||||
Headers = request.Headers
|
Headers = request.Headers
|
||||||
};
|
};
|
||||||
|
|
||||||
/* TODO:
|
|
||||||
model.Environment = context;
|
|
||||||
*/
|
|
||||||
|
|
||||||
var errorPage = new ErrorPage(model);
|
var errorPage = new ErrorPage(model);
|
||||||
return errorPage.ExecuteAsync(context);
|
return errorPage.ExecuteAsync(context);
|
||||||
|
|
|
||||||
|
|
@ -90,22 +90,6 @@ namespace Microsoft.AspNet.Diagnostics
|
||||||
return GetString("ErrorPageHtml_CookiesButton");
|
return GetString("ErrorPageHtml_CookiesButton");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Environment
|
|
||||||
/// </summary>
|
|
||||||
internal static string ErrorPageHtml_EnvironmentButton
|
|
||||||
{
|
|
||||||
get { return GetString("ErrorPageHtml_EnvironmentButton"); }
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Environment
|
|
||||||
/// </summary>
|
|
||||||
internal static string FormatErrorPageHtml_EnvironmentButton()
|
|
||||||
{
|
|
||||||
return GetString("ErrorPageHtml_EnvironmentButton");
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Headers
|
/// Headers
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -133,10 +133,6 @@
|
||||||
<value>Cookies</value>
|
<value>Cookies</value>
|
||||||
<comment>as in http request cookies</comment>
|
<comment>as in http request cookies</comment>
|
||||||
</data>
|
</data>
|
||||||
<data name="ErrorPageHtml_EnvironmentButton" xml:space="preserve">
|
|
||||||
<value>Environment</value>
|
|
||||||
<comment>as in environment dictionary</comment>
|
|
||||||
</data>
|
|
||||||
<data name="ErrorPageHtml_HeadersButton" xml:space="preserve">
|
<data name="ErrorPageHtml_HeadersButton" xml:space="preserve">
|
||||||
<value>Headers</value>
|
<value>Headers</value>
|
||||||
<comment>as in http request headers</comment>
|
<comment>as in http request headers</comment>
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -71,9 +71,6 @@
|
||||||
<li id="headers" tabindex="4">
|
<li id="headers" tabindex="4">
|
||||||
@Resources.ErrorPageHtml_HeadersButton
|
@Resources.ErrorPageHtml_HeadersButton
|
||||||
</li>
|
</li>
|
||||||
<li id="environment" tabindex="5">
|
|
||||||
@Resources.ErrorPageHtml_EnvironmentButton
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div id="stackpage" class="page">
|
<div id="stackpage" class="page">
|
||||||
|
|
@ -221,30 +218,6 @@
|
||||||
<p>@Resources.ErrorPageHtml_NoHeaderData</p>
|
<p>@Resources.ErrorPageHtml_NoHeaderData</p>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@{
|
|
||||||
/* TODO:
|
|
||||||
<div id="environmentpage" class="page">
|
|
||||||
<table>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>@Resources.ErrorPageHtml_VariableColumn</th>
|
|
||||||
<th>@Resources.ErrorPageHtml_ValueColumn</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
@foreach (var kv in Model.Environment.OrderBy(kv => kv.Key))
|
|
||||||
{
|
|
||||||
<tr>
|
|
||||||
<td>@kv.Key</td>
|
|
||||||
<td>@kv.Value</td>
|
|
||||||
</tr>
|
|
||||||
}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
<script>
|
<script>
|
||||||
//<!--
|
//<!--
|
||||||
<%$ include: ErrorPage.js %>
|
<%$ include: ErrorPage.js %>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue