#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.User
{
    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/User/Show.cshtml")]
    public partial class Show : Disco.Services.Web.WebViewPage<Disco.Web.Models.User.ShowModel>
    {
        public Show()
        {
        }
        public override void Execute()
        {
            
            #line 2 "..\..\Views\User\Show.cshtml"
  
    Authorization.Require(Claims.User.Show);

    ViewBag.Title = Html.ToBreadcrumb("Users", MVC.User.Index(), string.Format("User: {0} ({1})", Model.User.DisplayName, Model.User.FriendlyId()));

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

WriteLiteral(" id=\"User_Show\"");

WriteLiteral(">\r\n");

WriteLiteral("    ");

            
            #line 8 "..\..\Views\User\Show.cshtml"
Write(Html.Partial(MVC.User.Views.UserParts._Subject, Model));

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

WriteLiteral(" type=\"text/javascript\"");

WriteLiteral(">\r\n        $(function () {\r\n            var $tabs = $(\'#UserDetailTabs\');\r\n      " +
"      if ($tabs.children().length > 1) {\r\n                $tabs.tabs({\r\n        " +
"            activate: function (event, ui) {\r\n                        window.set" +
"Timeout(function () {\r\n                            var $window = $(window);\r\n   " +
"                         var tabHeight = $tabs.height();\r\n                      " +
"      var tabOffset = $tabs.offset();\r\n                            var windowScr" +
"ollTop = $window.scrollTop();\r\n                            var windowHeight = $w" +
"indow.height();\r\n\r\n                            var tabTopNotShown = windowScroll" +
"Top - tabOffset.top;\r\n                            if (tabTopNotShown > 0) {\r\n   " +
"                             $(\'html\').animate({ scrollTop: tabOffset.top }, 125" +
");\r\n                            } else {\r\n                                var ta" +
"bBottomNotShown = ((windowScrollTop + windowHeight) - (tabHeight + tabOffset.top" +
")) * -1;\r\n                                if (tabBottomNotShown > 0) {\r\n        " +
"                            if (tabHeight > windowHeight)\r\n                     " +
"                   $(\'html\').animate({ scrollTop: tabOffset.top }, 125);\r\n      " +
"                              else\r\n                                        $(\'h" +
"tml\').animate({ scrollTop: windowScrollTop + tabBottomNotShown }, 125);\r\n       " +
"                         }\r\n                            }\r\n                     " +
"   }, 1);\r\n                    }\r\n                });\r\n            } else {\r\n   " +
"             $tabs.hide();\r\n            }\r\n        });\r\n    </script>\r\n    <div");

WriteLiteral(" id=\"UserDetailTabs\"");

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

WriteLiteral(" id=\"UserDetailTabItems\"");

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

            
            #line 44 "..\..\Views\User\Show.cshtml"
        
            
            #line default
            #line hidden
            
            #line 44 "..\..\Views\User\Show.cshtml"
         if (Authorization.Has(Claims.User.ShowJobs))
        {
            
            
            #line default
            #line hidden
            
            #line 46 "..\..\Views\User\Show.cshtml"
       Write(Html.Partial(MVC.User.Views.UserParts._Jobs, Model));

            
            #line default
            #line hidden
            
            #line 46 "..\..\Views\User\Show.cshtml"
                                                                
        }

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

            
            #line 48 "..\..\Views\User\Show.cshtml"
         if (Authorization.Has(Claims.User.ShowAssignmentHistory))
        {
            
            
            #line default
            #line hidden
            
            #line 50 "..\..\Views\User\Show.cshtml"
       Write(Html.Partial(MVC.User.Views.UserParts._AssignmentHistory, Model));

            
            #line default
            #line hidden
            
            #line 50 "..\..\Views\User\Show.cshtml"
                                                                             
        }

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

            
            #line 52 "..\..\Views\User\Show.cshtml"
         if (Authorization.Has(Claims.User.ShowAttachments))
        {
            
            
            #line default
            #line hidden
            
            #line 54 "..\..\Views\User\Show.cshtml"
       Write(Html.Partial(MVC.User.Views.UserParts._Resources, Model));

            
            #line default
            #line hidden
            
            #line 54 "..\..\Views\User\Show.cshtml"
                                                                     
        }

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

            
            #line 56 "..\..\Views\User\Show.cshtml"
         if (Authorization.Has(Claims.User.ShowAuthorization))
        {
            
            
            #line default
            #line hidden
            
            #line 58 "..\..\Views\User\Show.cshtml"
       Write(Html.Partial(MVC.User.Views.UserParts._Authorization, Model));

            
            #line default
            #line hidden
            
            #line 58 "..\..\Views\User\Show.cshtml"
                                                                         
        }

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

        }
    }
}
#pragma warning restore 1591
