public override void Execute()
        {
            #line 2 "..\..\Views\Packages\DisplayPackage.cshtml"

            ViewBag.Tab = "Packages";
            Layout      = "~/Views/Shared/TwoColumnLayout.cshtml";



            #line default
            #line hidden

            DefineSection("SideColumn", () => {
                WriteLiteral("\r\n    <img class=\"logo\" src=\"");



            #line 7 "..\..\Views\Packages\DisplayPackage.cshtml"
                Write(Model.IconUrl ?? @Links.Content.Images.packageDefaultIcon_png);


            #line default
            #line hidden
                WriteLiteral("\" alt=\"Icon for package ");



            #line 7 "..\..\Views\Packages\DisplayPackage.cshtml"
                Write(Model.Id);


            #line default
            #line hidden
                WriteLiteral("\" onerror=\"this.src=\'");



            #line 7 "..\..\Views\Packages\DisplayPackage.cshtml"
                Write(Links.Content.Images.packageDefaultIcon_png);


            #line default
            #line hidden
                WriteLiteral("\';\" />\r\n    <div id=\"stats\">\r\n        <div class=\"stat\">\r\n            <p class=\"s" +
                             "tat-number\">");



            #line 10 "..\..\Views\Packages\DisplayPackage.cshtml"
                Write(Model.TotalDownloadCount.ToString("n0"));


            #line default
            #line hidden
                WriteLiteral("</p>\r\n            <p class=\"stat-label\">\r\n                Downloads</p>\r\n        " +
                             "</div>\r\n        <div class=\"stat\">\r\n            <p class=\"stat-number\">");



            #line 15 "..\..\Views\Packages\DisplayPackage.cshtml"
                Write(Model.DownloadCount.ToString("n0"));


            #line default
            #line hidden
                WriteLiteral("</p>\r\n            <p class=\"stat-label\">\r\n                Downloads of v ");



            #line 17 "..\..\Views\Packages\DisplayPackage.cshtml"
                Write(Model.Version);


            #line default
            #line hidden
                WriteLiteral("</p>\r\n        </div>\r\n        <div class=\"stat\">\r\n            <p class=\"stat-numb" +
                             "er\">");



            #line 20 "..\..\Views\Packages\DisplayPackage.cshtml"
                Write(Model.LastUpdated.ToShortDateString());


            #line default
            #line hidden
                WriteLiteral("</p>\r\n            <p class=\"stat-label\">\r\n                Last update</p>\r\n      " +
                             "  </div>\r\n    </div>\r\n    <nav>\r\n        <ul class=\"links\">\r\n");



            #line 27 "..\..\Views\Packages\DisplayPackage.cshtml"
                if (!String.IsNullOrEmpty(Model.ProjectUrl))
                {
            #line default
            #line hidden
                    WriteLiteral("                <li><a href=\"");



            #line 28 "..\..\Views\Packages\DisplayPackage.cshtml"
                    Write(Model.ProjectUrl);


            #line default
            #line hidden
                    WriteLiteral("\" title=\"Visit the project site to learn more about this package\">\r\n             " +
                                 "       Project Site</a></li>\r\n");



            #line 30 "..\..\Views\Packages\DisplayPackage.cshtml"
                }


            #line default
            #line hidden


            #line 31 "..\..\Views\Packages\DisplayPackage.cshtml"
                if (!String.IsNullOrEmpty(Model.LicenseUrl))
                {
            #line default
            #line hidden
                    WriteLiteral("                <li><a href=\"");



            #line 32 "..\..\Views\Packages\DisplayPackage.cshtml"
                    Write(Model.LicenseUrl);


            #line default
            #line hidden
                    WriteLiteral("\" title=\"Make sure you agree with the license\">License</a></li>\r\n");



            #line 33 "..\..\Views\Packages\DisplayPackage.cshtml"
                }


            #line default
            #line hidden
                WriteLiteral("            <li><a href=\"");



            #line 34 "..\..\Views\Packages\DisplayPackage.cshtml"
                Write(Url.Action(MVC.Packages.ReportAbuse(Model.Id, Model.Version)));


            #line default
            #line hidden
                WriteLiteral("\" title=\"Report Abuse\">\r\n                Report Abuse</a></li>\r\n            <li><" +
                             "a href=\"");



            #line 36 "..\..\Views\Packages\DisplayPackage.cshtml"
                Write(Url.Action(MVC.Packages.ContactOwners(Model.Id)));


            #line default
            #line hidden
                WriteLiteral("\">Contact Owners</a></li>\r\n");



            #line 37 "..\..\Views\Packages\DisplayPackage.cshtml"
                if (User.Identity.IsAuthenticated)
                {
            #line default
            #line hidden
                    WriteLiteral("                <li><a href=\"");



            #line 39 "..\..\Views\Packages\DisplayPackage.cshtml"
                    Write(Url.PackageDownload(2, Model.Id, Model.Version));


            #line default
            #line hidden
                    WriteLiteral("\" title=\"Download the raw nupkg file.\">Download</a></li>\r\n");



            #line 40 "..\..\Views\Packages\DisplayPackage.cshtml"
                }
                else
                {
            #line default
            #line hidden
                    WriteLiteral("                <li><a href=\"");



            #line 41 "..\..\Views\Packages\DisplayPackage.cshtml"
                    Write(Url.Action(@MVC.Packages.Download()));


            #line default
            #line hidden
                    WriteLiteral("\" title=\"How do I download?\">How to Download</a></li>\r\n");



            #line 42 "..\..\Views\Packages\DisplayPackage.cshtml"
                }


            #line default
            #line hidden


            #line 43 "..\..\Views\Packages\DisplayPackage.cshtml"
                if (Model.IsOwner(User))
                {
            #line default
            #line hidden
                    WriteLiteral("                <li><a href=\"");



            #line 44 "..\..\Views\Packages\DisplayPackage.cshtml"
                    Write(Url.EditPackage(Model));


            #line default
            #line hidden
                    WriteLiteral("\">Edit Package</a></li>\r\n");



                    WriteLiteral("                <li><a href=\"");



            #line 45 "..\..\Views\Packages\DisplayPackage.cshtml"
                    Write(Url.ManagePackageOwners(Model));


            #line default
            #line hidden
                    WriteLiteral("\">Manage Owners</a></li>\r\n");



                    WriteLiteral("                <li><a href=\"");



            #line 46 "..\..\Views\Packages\DisplayPackage.cshtml"
                    Write(Url.DeletePackage(Model));


            #line default
            #line hidden
                    WriteLiteral("\" class=\"delete\">Delete Package</a></li>\r\n");



            #line 47 "..\..\Views\Packages\DisplayPackage.cshtml"
                }


            #line default
            #line hidden
                WriteLiteral("        </ul>\r\n    </nav>\r\n");
            });

            WriteLiteral("\r\n<div class=\"package-page\">\r\n");



            #line 52 "..\..\Views\Packages\DisplayPackage.cshtml"
            if (Model.Prerelease)
            {
            #line default
            #line hidden
                WriteLiteral("        <p class=\"prerelease-message\">\r\n            This is a prerelease version " +
                             "of ");



            #line 55 "..\..\Views\Packages\DisplayPackage.cshtml"
                Write(Model.Title);


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



            #line 57 "..\..\Views\Packages\DisplayPackage.cshtml"
            }
            else if (!Model.IsLatestVersionAvailable)
            {
            #line default
            #line hidden
                WriteLiteral("        <p class=\"not-latest-message\">\r\n            This is not the <a href=\"");



            #line 61 "..\..\Views\Packages\DisplayPackage.cshtml"
                Write(Url.Package(Model.Id));


            #line default
            #line hidden
                WriteLiteral("\" title=\"View the latest version\">latest\r\n                version</a> of ");



            #line 62 "..\..\Views\Packages\DisplayPackage.cshtml"
                Write(Model.Title);


            #line default
            #line hidden
                WriteLiteral(" available.\r\n        </p>\r\n");



            #line 64 "..\..\Views\Packages\DisplayPackage.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("    <hgroup class=\"page-heading\">\r\n        <h1>");



            #line 66 "..\..\Views\Packages\DisplayPackage.cshtml"
            Write(Model.Title);


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



            #line 67 "..\..\Views\Packages\DisplayPackage.cshtml"
            Write(Model.Version);


            #line default
            #line hidden
            WriteLiteral("</h2>\r\n    </hgroup>\r\n    <p>");



            #line 69 "..\..\Views\Packages\DisplayPackage.cshtml"
            Write(Model.Description);


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



            #line 71 "..\..\Views\Packages\DisplayPackage.cshtml"
            if (!Model.Listed && Model.IsOwner(User))
            {
            #line default
            #line hidden
                WriteLiteral("        <p  class=\"message warning\">\r\n            This package is unlisted and hi" +
                             "dden from package listings.\r\n            You can see the package because you are" +
                             " one of its owners. To list the package again, \r\n            <a href=\"");



            #line 76 "..\..\Views\Packages\DisplayPackage.cshtml"
                Write(Url.DeletePackage(Model));


            #line default
            #line hidden
                WriteLiteral("\">change its listing setting</a>.\r\n        </p>                             \r\n");



            #line 78 "..\..\Views\Packages\DisplayPackage.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("    <p>\r\n        To install ");



            #line 80 "..\..\Views\Packages\DisplayPackage.cshtml"
            Write(Model.Title);


            #line default
            #line hidden
            WriteLiteral(", run the following command in the <a href=\"http://docs.nuget.org/docs/start-here" +
                         "/using-the-package-manager-console\">\r\n            Package Manager Console</a>\r\n " +
                         "   </p>\r\n    <div class=\"nuget-badge\">\r\n        <p>\r\n            <code>PM&gt; In" +
                         "stall-Package ");



            #line 85 "..\..\Views\Packages\DisplayPackage.cshtml"
            Write(Model.Id);


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



            #line 86 "..\..\Views\Packages\DisplayPackage.cshtml"
            if (!Model.LatestVersion || !Model.Listed)
            {
            #line default
            #line hidden
                WriteLiteral(" ");

                WriteLiteral(" -Version ");



            #line 87 "..\..\Views\Packages\DisplayPackage.cshtml"
                Write(Model.Version);


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



            #line 87 "..\..\Views\Packages\DisplayPackage.cshtml"
            }


            #line default
            #line hidden


            #line 88 "..\..\Views\Packages\DisplayPackage.cshtml"
            if (Model.Prerelease)
            {
            #line default
            #line hidden
                WriteLiteral(" -Pre ");



            #line 89 "..\..\Views\Packages\DisplayPackage.cshtml"
            }

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



            #line 92 "..\..\Views\Packages\DisplayPackage.cshtml"
            if (!String.IsNullOrWhiteSpace(Model.ReleaseNotes))
            {
            #line default
            #line hidden
                WriteLiteral("        <h3>Release Notes</h3>\r\n");



            #line 95 "..\..\Views\Packages\DisplayPackage.cshtml"
                foreach (var note in Model.ReleaseNotes.Split('\n'))
                {
            #line default
            #line hidden
                    WriteLiteral("            <p>");



            #line 97 "..\..\Views\Packages\DisplayPackage.cshtml"
                    Write(note);


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



            #line 98 "..\..\Views\Packages\DisplayPackage.cshtml"
                }
            }


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



            #line 102 "..\..\Views\Packages\DisplayPackage.cshtml"
            Write(ViewHelpers.OwnersGravatar(Model.Owners, 32, Url));


            #line default
            #line hidden
            WriteLiteral("\r\n    <h3>Authors</h3>\r\n    <ul class=\"authors\">\r\n");



            #line 105 "..\..\Views\Packages\DisplayPackage.cshtml"
            foreach (var author in Model.Authors)
            {
            #line default
            #line hidden
                WriteLiteral("            <li><a href=\"");



            #line 107 "..\..\Views\Packages\DisplayPackage.cshtml"
                Write(Url.Search(author.Name));


            #line default
            #line hidden
                WriteLiteral("\" title=\"Search for ");



            #line 107 "..\..\Views\Packages\DisplayPackage.cshtml"
                Write(author.Name);


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



            #line 107 "..\..\Views\Packages\DisplayPackage.cshtml"
                Write(author.Name);


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



            #line 108 "..\..\Views\Packages\DisplayPackage.cshtml"
            }


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



            #line 110 "..\..\Views\Packages\DisplayPackage.cshtml"
            if (!String.IsNullOrEmpty(Model.Copyright))
            {
            #line default
            #line hidden
                WriteLiteral("        <h3>Copyright</h3>\r\n");



                WriteLiteral("        <p>");



            #line 113 "..\..\Views\Packages\DisplayPackage.cshtml"
                Write(Model.Copyright);


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



            #line 114 "..\..\Views\Packages\DisplayPackage.cshtml"
            }


            #line default
            #line hidden


            #line 115 "..\..\Views\Packages\DisplayPackage.cshtml"
            if (@Model.Tags.AnySafe())
            {
            #line default
            #line hidden
                WriteLiteral("        <h3>Tags</h3>\r\n");



                WriteLiteral("        <ul class=\"tags\">\r\n");



            #line 119 "..\..\Views\Packages\DisplayPackage.cshtml"
                foreach (var tag in Model.Tags)
                {
            #line default
            #line hidden
                    WriteLiteral("                <li><a href=\"");



            #line 121 "..\..\Views\Packages\DisplayPackage.cshtml"
                    Write(Url.Search(tag));


            #line default
            #line hidden
                    WriteLiteral("\" title=\"Search for ");



            #line 121 "..\..\Views\Packages\DisplayPackage.cshtml"
                    Write(tag);


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



            #line 121 "..\..\Views\Packages\DisplayPackage.cshtml"
                    Write(tag);


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



            #line 122 "..\..\Views\Packages\DisplayPackage.cshtml"
                }


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



            #line 124 "..\..\Views\Packages\DisplayPackage.cshtml"
            }


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



            #line 126 "..\..\Views\Packages\DisplayPackage.cshtml"
            if (Model.Dependencies.Any())
            {
            #line default
            #line hidden
                WriteLiteral(@"        <table class=""sexy-table"">
            <thead>
                <tr>
                    <th class=""first"">
                        Id
                    </th>
                    <th class=""last"">
                        Version Range
                    </th>
                </tr>
            </thead>
            <tbody>
");



            #line 140 "..\..\Views\Packages\DisplayPackage.cshtml"
                foreach (var dependency in Model.Dependencies)
                {
            #line default
            #line hidden
                    WriteLiteral("                    <tr>\r\n                        <td>\r\n                         " +
                                 "   <a href=\"");



            #line 144 "..\..\Views\Packages\DisplayPackage.cshtml"
                    Write(Url.Package(dependency.Id));


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



            #line 144 "..\..\Views\Packages\DisplayPackage.cshtml"
                    Write(dependency.Id);


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



            #line 146 "..\..\Views\Packages\DisplayPackage.cshtml"
                    Write(dependency.VersionSpec);


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



            #line 149 "..\..\Views\Packages\DisplayPackage.cshtml"
                }


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



            #line 152 "..\..\Views\Packages\DisplayPackage.cshtml"
            }
            else
            {
            #line default
            #line hidden
                WriteLiteral("        <p>");



            #line 155 "..\..\Views\Packages\DisplayPackage.cshtml"
                Write(Model.Id);


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



            #line 155 "..\..\Views\Packages\DisplayPackage.cshtml"
                Write(Model.Version);


            #line default
            #line hidden
                WriteLiteral(" does not have any dependencies\r\n        </p>\r\n");



            #line 157 "..\..\Views\Packages\DisplayPackage.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral(@"    <h3>Version History</h3>
    <table class=""sexy-table"">
        <thead>
            <tr>
                <th class=""first"">
                    Version
                </th>
                <th>
                    Downloads
                </th>
                <th class=""");



            #line 168 "..\..\Views\Packages\DisplayPackage.cshtml"
            Write(Model.IsOwner(User) ? "" : "last");


            #line default
            #line hidden
            WriteLiteral("\">\r\n                    Last updated\r\n                </th>\r\n");



            #line 171 "..\..\Views\Packages\DisplayPackage.cshtml"
            if (Model.IsOwner(User))
            {
            #line default
            #line hidden
                WriteLiteral("                <th class=\"last\">\r\n                    Listed\r\n                </" +
                             "th>\r\n");



            #line 176 "..\..\Views\Packages\DisplayPackage.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("            </tr>\r\n        </thead>\r\n        <tbody>\r\n");



            #line 180 "..\..\Views\Packages\DisplayPackage.cshtml"
            foreach (var packageVersion in Model.PackageVersions)
            {
                if (packageVersion.Listed || Model.IsOwner(User))
                {
            #line default
            #line hidden


            #line 184 "..\..\Views\Packages\DisplayPackage.cshtml"
                    WriteLiteral("                    <tr class=\"versionTableRow ");


            #line default
            #line hidden

            #line 184 "..\..\Views\Packages\DisplayPackage.cshtml"
                    if (packageVersion.LatestVersion)
                    {
            #line default
            #line hidden
                        WriteLiteral("recommended ");



            #line 185 "..\..\Views\Packages\DisplayPackage.cshtml"
                    }

            #line default
            #line hidden


            #line 185 "..\..\Views\Packages\DisplayPackage.cshtml"
                    WriteLiteral("\">\r\n                        <td class=\"version\" ");


            #line default
            #line hidden

            #line 186 "..\..\Views\Packages\DisplayPackage.cshtml"
                    if (packageVersion.LatestVersion)
                    {
            #line default
            #line hidden
                        WriteLiteral("title=\"Latest Version\"");



            #line 187 "..\..\Views\Packages\DisplayPackage.cshtml"
                    }

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



            #line 188 "..\..\Views\Packages\DisplayPackage.cshtml"
                    if (!packageVersion.IsCurrent(Model))
                    {
            #line default
            #line hidden
                        WriteLiteral("                                <a href=\"");



            #line 190 "..\..\Views\Packages\DisplayPackage.cshtml"
                        Write(Url.Package(packageVersion));


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



            #line 190 "..\..\Views\Packages\DisplayPackage.cshtml"
                        Write(packageVersion.Title);


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



            #line 190 "..\..\Views\Packages\DisplayPackage.cshtml"
                        Write(packageVersion.Version);


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



            #line 191 "..\..\Views\Packages\DisplayPackage.cshtml"
                    }
                    else
                    {
            #line default
            #line hidden
                        WriteLiteral("                                <span>");



            #line 194 "..\..\Views\Packages\DisplayPackage.cshtml"
                        Write(packageVersion.Title);


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



            #line 194 "..\..\Views\Packages\DisplayPackage.cshtml"
                        Write(packageVersion.Version);


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



            #line 195 "..\..\Views\Packages\DisplayPackage.cshtml"
                    }


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



            #line 197 "..\..\Views\Packages\DisplayPackage.cshtml"
                    Write(packageVersion.DownloadCount);


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



            #line 199 "..\..\Views\Packages\DisplayPackage.cshtml"
                    Write(packageVersion.LastUpdated.ToString("D"));


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



            #line 201 "..\..\Views\Packages\DisplayPackage.cshtml"
                    if (Model.IsOwner(User))
                    {
            #line default
            #line hidden
                        WriteLiteral("                        <td><a href=\"");



            #line 203 "..\..\Views\Packages\DisplayPackage.cshtml"
                        Write(Url.DeletePackage(packageVersion));


            #line default
            #line hidden
                        WriteLiteral("\" class=\"delete\">");



            #line 203 "..\..\Views\Packages\DisplayPackage.cshtml"
                        Write(packageVersion.Listed ? "yes" : "no");


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



            #line 205 "..\..\Views\Packages\DisplayPackage.cshtml"
                    }


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



            #line 207 "..\..\Views\Packages\DisplayPackage.cshtml"
                }
            }


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