vgquotes/Src/VideoGameQuotes.Web/Views/Shared/ExceptionView.ascx

15 lines
482 B
Plaintext
Raw Normal View History

<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Portoa.Web.ErrorHandling.ErrorModel<VideoGameQuotes.Api.User>>" %>
<%@ Import Namespace="VideoGameQuotes.Api" %>
2011-02-11 05:21:31 +00:00
<%
if (Model.User == null || Model.User.Group < UserGroup.Admin) {
return;
}
if (Model.Exception != null) { %>
<h2>Exception Details</h2> <%
Html.RenderPartial("RecursiveExceptionView", Model.Exception);
} else { %>
<p class="info">No exception was thrown.</p>
<% }
2011-02-11 05:21:31 +00:00
%>