#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.34014
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace Disco.Web.Views.Shared.DisplayTemplates
{
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using System.Net;
    using System.Text;
    using System.Web;
    using System.Web.Helpers;
    using System.Web.Mvc;
    using System.Web.Mvc.Ajax;
    using System.Web.Mvc.Html;
    using System.Web.Routing;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.WebPages;
    using Disco;
    using Disco.BI.Extensions;
    using Disco.Models.Repository;
    using Disco.Services;
    using Disco.Services.Authorization;
    using Disco.Services.Web;
    using Disco.Web;
    using Disco.Web.Extensions;
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
    [System.Web.WebPages.PageVirtualPathAttribute("~/Views/Shared/DisplayTemplates/Exception.cshtml")]
    public partial class _Exception : Disco.Services.Web.WebViewPage<System.Exception>
    {
        public _Exception()
        {
        }
        public override void Execute()
        {
            
            #line 2 "..\..\Views\Shared\DisplayTemplates\Exception.cshtml"
  
    var ex = Model;

            
            #line default
            #line hidden
WriteLiteral("\r\n<i");

WriteLiteral(" class=\"icon\"");

WriteLiteral("></i>\r\n");

            
            #line 6 "..\..\Views\Shared\DisplayTemplates\Exception.cshtml"
 while (ex != null)
{

            
            #line default
            #line hidden
WriteLiteral("    <div");

WriteLiteral(" class=\"form\"");

WriteLiteral(" style=\"width: 650px\"");

WriteLiteral(">\r\n        <h2");

WriteLiteral(" class=\"error\"");

WriteLiteral(">");

            
            #line 9 "..\..\Views\Shared\DisplayTemplates\Exception.cshtml"
                     Write(ex.Message);

            
            #line default
            #line hidden
WriteLiteral("</h2>\r\n        <table>\r\n            <tr>\r\n                <td>\r\n                 " +
"   Details <a");

WriteLiteral(" href=\"#\"");

WriteLiteral(" class=\"toClipboard smallMessage\"");

WriteLiteral(">(Copy to Clipboard)</a>\r\n                </td>\r\n            </tr>\r\n            <" +
"tr>\r\n                <td>\r\n                    <div");

WriteLiteral(" class=\"code stacktrace\"");

WriteLiteral(" style=\"width: 638px;\"");

WriteLiteral(">");

            
            #line 18 "..\..\Views\Shared\DisplayTemplates\Exception.cshtml"
                                                                  Write(ex.Message);

            
            #line default
            #line hidden
WriteLiteral("\r\n[");

            
            #line 19 "..\..\Views\Shared\DisplayTemplates\Exception.cshtml"
Write(ex.GetType().FullName);

            
            #line default
            #line hidden
WriteLiteral("]\r\n\r\nStack Trace:\r\n");

            
            #line 22 "..\..\Views\Shared\DisplayTemplates\Exception.cshtml"
Write(ex.StackTrace);

            
            #line default
            #line hidden
WriteLiteral("</div>\r\n                </td>\r\n            </tr>\r\n        </table>\r\n    </div>\r\n");

            
            #line 27 "..\..\Views\Shared\DisplayTemplates\Exception.cshtml"

    ex = ex.InnerException;
}

            
            #line default
            #line hidden
WriteLiteral(@"<script>
    $(function () {
        var toClipboardLinks = $('#layout_Error').find('a.toClipboard');

        if (window.clipboardData) {
            // Clipboard access available
            toClipboardLinks.click(function (e) {
                $this = $(this);

                var details = $this.closest('table').find('div.stacktrace').text();
                details = $.trim(details).replace(/\n/gm, '\r\n');
                window.clipboardData.setData('Text', details);

                alert('Details copied to Clipboard');

                return false;
            });
        } else {
            // No Clipboard access available - hide links
            toClipboardLinks.hide();
        }
    });
</script>
");

        }
    }
}
#pragma warning restore 1591
