public override void Execute()
        {
            WriteLiteral("<h2>Contact details</h2>\r\n");


            #line 4 "..\..\Views\Partials\_CompetitionContactDetails.cshtml"

            var socialMedia = new SocialMedia
            {
                DisplayName = Model.CompetitionName,
                Facebook    = Model.Facebook,
                Twitter     = Model.Twitter,
                Instagram   = Model.Instagram,
                YouTube     = Model.YouTube
            };
            if (!string.IsNullOrWhiteSpace(Model.PublicContactDetails) || !string.IsNullOrWhiteSpace(Model.Website) || socialMedia.HasSocialMedia())
            {
            #line default
            #line hidden

            #line 15 "..\..\Views\Partials\_CompetitionContactDetails.cshtml"
                Write(Html.Raw(Model.PublicContactDetails));


            #line default
            #line hidden

            #line 15 "..\..\Views\Partials\_CompetitionContactDetails.cshtml"


                if (!string.IsNullOrWhiteSpace(Model.Website))
                {
            #line default
            #line hidden
                    WriteLiteral("            <p>Visit the <a");

                    WriteAttribute("href", Tuple.Create(" href=\"", 636), Tuple.Create("\"", 657)

            #line 19 "..\..\Views\Partials\_CompetitionContactDetails.cshtml"
                                   , Tuple.Create(Tuple.Create("", 643), Tuple.Create <System.Object, System.Int32>(Model.Website

            #line default
            #line hidden
                                                                                                                    , 643), false)
                                   );

                    WriteLiteral(">");


            #line 19 "..\..\Views\Partials\_CompetitionContactDetails.cshtml"
                    Write(Model.CompetitionName);


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


            #line 20 "..\..\Views\Partials\_CompetitionContactDetails.cshtml"
                }



            #line default
            #line hidden

            #line 22 "..\..\Views\Partials\_CompetitionContactDetails.cshtml"
                Write(Html.Partial("_SocialMedia", socialMedia));


            #line default
            #line hidden

            #line 22 "..\..\Views\Partials\_CompetitionContactDetails.cshtml"
                ;
            }
            else
            {
            #line default
            #line hidden

            #line 26 "..\..\Views\Partials\_CompetitionContactDetails.cshtml"
                Write(Html.Partial("_ContactDetailsMissing", "competition"));


            #line default
            #line hidden

            #line 26 "..\..\Views\Partials\_CompetitionContactDetails.cshtml"
            }


            #line default
            #line hidden
        }
        public override void Execute()
        {
            #line 8 "..\..\Views\Team.cshtml"

            var authorizedToEdit = Model.IsAuthorized[AuthorizedAction.EditTeam] || Model.IsAuthorized[AuthorizedAction.DeleteTeam];
            Html.RequiresJs("~/js/show-all-competitions.js");


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

            WriteLiteral(" class=\"container-xl\"");

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


            #line 13 "..\..\Views\Team.cshtml"
            Write(Model.Team.TeamNameLocationAndPlayerType());


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


            #line 15 "..\..\Views\Team.cshtml"


            #line default
            #line hidden

            #line 15 "..\..\Views\Team.cshtml"
            if (Model.Team.UntilYear.HasValue)
            {
            #line default
            #line hidden
                WriteLiteral("        <div");

                WriteLiteral(" class=\"alert alert-info\"");

                WriteLiteral(">\r\n            <p><strong>This team is no longer active.</strong></p>\r\n        </" +
                             "div>\r\n");


            #line 20 "..\..\Views\Team.cshtml"
            }


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

            WriteAttribute("class", Tuple.Create(" class=\"", 710), Tuple.Create("\"", 787)
                           , Tuple.Create(Tuple.Create("", 718), Tuple.Create("nav", 718), true)
                           , Tuple.Create(Tuple.Create(" ", 721), Tuple.Create("nav-tabs", 722), true)

            #line 22 "..\..\Views\Team.cshtml"
                           , Tuple.Create(Tuple.Create("", 730), Tuple.Create <System.Object, System.Int32>(authorizedToEdit ? " nav-tabs-has-edit" : string.Empty

            #line default
            #line hidden
                                                                                                            , 730), false)
                           );

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

            WriteLiteral(" class=\"nav-item\"");

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

            WriteLiteral(" class=\"nav-link active\"");

            WriteLiteral(">Summary</em>\r\n        </li>\r\n        <li");

            WriteLiteral(" class=\"nav-item\"");

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

            WriteLiteral(" class=\"nav-link\"");

            WriteAttribute("href", Tuple.Create(" href=\"", 953), Tuple.Create("\"", 989)

            #line 27 "..\..\Views\Team.cshtml"
                           , Tuple.Create(Tuple.Create("", 960), Tuple.Create <System.Object, System.Int32>(Model.Team.TeamRoute

            #line default
            #line hidden
                                                                                                            , 960), false)
                           , Tuple.Create(Tuple.Create("", 981), Tuple.Create("/matches", 981), true)
                           );

            WriteLiteral(">Matches</a>\r\n        </li>\r\n        <li");

            WriteLiteral(" class=\"nav-item\"");

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

            WriteLiteral(" class=\"nav-link\"");

            WriteAttribute("href", Tuple.Create(" href=\"", 1081), Tuple.Create("\"", 1117)

            #line 30 "..\..\Views\Team.cshtml"
                           , Tuple.Create(Tuple.Create("", 1088), Tuple.Create <System.Object, System.Int32>(Model.Team.TeamRoute

            #line default
            #line hidden
                                                                                                             , 1088), false)
                           , Tuple.Create(Tuple.Create("", 1109), Tuple.Create("/players", 1109), true)
                           );

            WriteLiteral(">Players</a>\r\n        </li>\r\n        <li");

            WriteLiteral(" class=\"nav-item\"");

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

            WriteLiteral(" class=\"nav-link\"");

            WriteAttribute("href", Tuple.Create(" href=\"", 1209), Tuple.Create("\"", 1248)

            #line 33 "..\..\Views\Team.cshtml"
                           , Tuple.Create(Tuple.Create("", 1216), Tuple.Create <System.Object, System.Int32>(Model.Team.TeamRoute

            #line default
            #line hidden
                                                                                                             , 1216), false)
                           , Tuple.Create(Tuple.Create("", 1237), Tuple.Create("/statistics", 1237), true)
                           );

            WriteLiteral(">Statistics</a>\r\n        </li>\r\n");


            #line 35 "..\..\Views\Team.cshtml"


            #line default
            #line hidden

            #line 35 "..\..\Views\Team.cshtml"
            if (authorizedToEdit)
            {
            #line default
            #line hidden
                WriteLiteral("            <li");

                WriteLiteral(" class=\"nav-item nav-item-admin\"");

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

                WriteLiteral(" class=\"nav-link nav-link-edit\"");

                WriteAttribute("href", Tuple.Create(" href=\"", 1423), Tuple.Create("\"", 1456)

            #line 38 "..\..\Views\Team.cshtml"
                               , Tuple.Create(Tuple.Create("", 1430), Tuple.Create <System.Object, System.Int32>(Model.Team.TeamRoute

            #line default
            #line hidden
                                                                                                                 , 1430), false)
                               , Tuple.Create(Tuple.Create("", 1451), Tuple.Create("/edit", 1451), true)
                               );

                WriteLiteral(">Edit team</a>\r\n            </li>\r\n");


            #line 40 "..\..\Views\Team.cshtml"
            }


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

            WriteLiteral("    ");


            #line 43 "..\..\Views\Team.cshtml"
            Write(Html.Raw(Model.Team.Introduction));


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


            #line 45 "..\..\Views\Team.cshtml"


            #line default
            #line hidden

            #line 45 "..\..\Views\Team.cshtml"
            if (Model.Team.MatchLocations.Count > 0 || !string.IsNullOrWhiteSpace(Model.Team.PlayingTimes))
            {
            #line default
            #line hidden
                WriteLiteral("        <h2>When and where</h2>\r\n");


            #line 48 "..\..\Views\Team.cshtml"
                if (Model.Team.MatchLocations.Count > 0)
                {
            #line default
            #line hidden
                    WriteLiteral("            <p>This team plays at ");


            #line 50 "..\..\Views\Team.cshtml"
                    Write(Html.Raw(Model.Team.MatchLocations.Humanize(x => $"<a href=\"{Html.Encode(x.MatchLocationRoute)}\">{Html.Encode(x.NameAndLocalityOrTownIfDifferent())}</a>")));


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


            #line 51 "..\..\Views\Team.cshtml"
                }
                if (!string.IsNullOrWhiteSpace(Model.Team.PlayingTimes))
                {
            #line default
            #line hidden

            #line 54 "..\..\Views\Team.cshtml"
                    Write(Html.Raw(Model.Team.PlayingTimes));


            #line default
            #line hidden

            #line 54 "..\..\Views\Team.cshtml"
                }
            }


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


            #line 58 "..\..\Views\Team.cshtml"


            #line default
            #line hidden

            #line 58 "..\..\Views\Team.cshtml"

            var seasonListModel = new SeasonListViewModel
            {
                ShowCompetitionHeading = true
            };
            seasonListModel.Competitions.AddRange(Model.Team.Seasons
                                                  .GroupBy(x => x.Season.Competition.CompetitionId)
                                                  .Select(seasonsInACompetition =>
            {
                var competition = seasonsInACompetition.First().Season.Competition;
                competition.Seasons.AddRange(seasonsInACompetition.Select(season => season.Season));
                return(competition);
            })
                                                  .OrderByDescending(x => x.Seasons.First().FromYear).ThenByDescending(x => x.Seasons.First().UntilYear).ThenBy(x => x.ComparableName()));



            #line default
            #line hidden

            #line 73 "..\..\Views\Team.cshtml"
            Write(Html.Partial("_SeasonListExpandable", seasonListModel));


            #line default
            #line hidden

            #line 73 "..\..\Views\Team.cshtml"
            ;


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


            #line 76 "..\..\Views\Team.cshtml"


            #line default
            #line hidden

            #line 76 "..\..\Views\Team.cshtml"
            if (!string.IsNullOrWhiteSpace(Model.Team.Cost))
            {
            #line default
            #line hidden
                WriteLiteral("        <h2>How much does it cost?</h2>\r\n");


            #line 79 "..\..\Views\Team.cshtml"


            #line default
            #line hidden

            #line 79 "..\..\Views\Team.cshtml"
                Write(Html.Raw(Model.Team.Cost));


            #line default
            #line hidden

            #line 79 "..\..\Views\Team.cshtml"
            }


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


            #line 83 "..\..\Views\Team.cshtml"


            #line default
            #line hidden

            #line 83 "..\..\Views\Team.cshtml"

            var socialMedia = new SocialMedia
            {
                DisplayName = Model.Team.TeamName,
                Facebook    = Model.Team.Facebook,
                Twitter     = Model.Team.Twitter,
                Instagram   = Model.Team.Instagram,
                YouTube     = Model.Team.YouTube
            };
            if (!string.IsNullOrWhiteSpace(Model.Team.PublicContactDetails) || !string.IsNullOrWhiteSpace(Model.Team.Website) || socialMedia.HasSocialMedia())
            {
            #line default
            #line hidden

            #line 94 "..\..\Views\Team.cshtml"
                Write(Html.Raw(Model.Team.PublicContactDetails));


            #line default
            #line hidden

            #line 94 "..\..\Views\Team.cshtml"


                if (!string.IsNullOrWhiteSpace(Model.Team.Website))
                {
            #line default
            #line hidden
                    WriteLiteral("                <p>Visit <a");

                    WriteAttribute("href", Tuple.Create(" href=\"", 3711), Tuple.Create("\"", 3737)

            #line 98 "..\..\Views\Team.cshtml"
                                   , Tuple.Create(Tuple.Create("", 3718), Tuple.Create <System.Object, System.Int32>(Model.Team.Website

            #line default
            #line hidden
                                                                                                                     , 3718), false)
                                   );

                    WriteLiteral(">");


            #line 98 "..\..\Views\Team.cshtml"
                    Write(Model.Team.TeamName);


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


            #line 99 "..\..\Views\Team.cshtml"
                }



            #line default
            #line hidden

            #line 101 "..\..\Views\Team.cshtml"
                Write(Html.Partial("_SocialMedia", socialMedia));


            #line default
            #line hidden

            #line 101 "..\..\Views\Team.cshtml"
            }
            else if (Model.Team.TeamType != TeamType.Representative)
            {
                // Prompt for more contact information, unless it's a representative team when we don't expect it


            #line default
            #line hidden

            #line 106 "..\..\Views\Team.cshtml"
                Write(Html.Partial("_ContactDetailsMissing", "team"));


            #line default
            #line hidden

            #line 106 "..\..\Views\Team.cshtml"
            }


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


            #line 110 "..\..\Views\Team.cshtml"


            #line default
            #line hidden

            #line 110 "..\..\Views\Team.cshtml"
            if (Model.Team.ClubMark)
            {
            #line default
            #line hidden

            #line 112 "..\..\Views\Team.cshtml"
                Write(Html.Partial("_ClubMark"));


            #line default
            #line hidden

            #line 112 "..\..\Views\Team.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("</div>");
        }