Esempio n. 1
0
        public override void Execute()
        {
            #line 6 "..\..\Help\Views\Index.cshtml"

            ViewBag.Title = HelpMessage.Help.NiceToString();
            var namespaces = HelpLogic.GetNamespaceHelps().OrderBy(a => a.Namespace);
            var appendices = HelpLogic.GetAppendixHelps();

            Schema schema = Schema.Current;


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

            DefineSection("head", () => {
                WriteLiteral("\r\n");

                WriteLiteral("    ");


            #line 16 "..\..\Help\Views\Index.cshtml"
                Write(Html.ScriptCss("~/help/Content/help.css"));


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

            WriteLiteral("<div");

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

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

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

            WriteLiteral(">");


            #line 19 "..\..\Help\Views\Index.cshtml"
            Write(HelpMessage.Help.NiceToString());


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


            #line 20 "..\..\Help\Views\Index.cshtml"


            #line default
            #line hidden

            #line 20 "..\..\Help\Views\Index.cshtml"
            using (Html.BeginForm("Search", "Help", FormMethod.Get, new { id = "form-search-big" }))
            {
            #line default
            #line hidden
                WriteLiteral("        <div");

                WriteLiteral(" class=\"input-group\"");

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

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

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

                WriteAttribute("placeholder", Tuple.Create(" placeholder=\"", 719), Tuple.Create("\"", 773)

            #line 23 "..\..\Help\Views\Index.cshtml"
                               , Tuple.Create(Tuple.Create("", 733), Tuple.Create <System.Object, System.Int32>(HelpSearchMessage.Search.NiceToString()

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

                WriteLiteral(" name=\"q\"");

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

                WriteLiteral(" class=\"input-group-btn\"");

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

                WriteLiteral(" class=\"btn btn-default\"");

                WriteLiteral(" type=\"submit\"");

                WriteLiteral("><i");

                WriteLiteral(" class=\"glyphicon glyphicon-search\"");

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


            #line 28 "..\..\Help\Views\Index.cshtml"
            }


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

            WriteLiteral(" class=\"responsive-columns\"");

            WriteLiteral(">\r\n");


            #line 30 "..\..\Help\Views\Index.cshtml"


            #line default
            #line hidden

            #line 30 "..\..\Help\Views\Index.cshtml"
            foreach (var nh in namespaces)
            {
            #line default
            #line hidden
                WriteLiteral("            <li>\r\n                <h3>\r\n                    <a");

                WriteAttribute("href", Tuple.Create(" href=\"", 1143), Tuple.Create("\"", 1214)

            #line 34 "..\..\Help\Views\Index.cshtml"
                               , Tuple.Create(Tuple.Create("", 1150), Tuple.Create <System.Object, System.Int32>(Url.Action((HelpController c) => c.ViewNamespace(nh.Namespace))

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

                WriteLiteral(">");


            #line 34 "..\..\Help\Views\Index.cshtml"
                Write(nh.Title);


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


            #line 35 "..\..\Help\Views\Index.cshtml"


            #line default
            #line hidden

            #line 35 "..\..\Help\Views\Index.cshtml"
                if (nh.Before != null)
                {
            #line default
            #line hidden
                    WriteLiteral("                        <small>");


            #line 37 "..\..\Help\Views\Index.cshtml"
                    Write(HelpMessage.In0.NiceToString(nh.Before));


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


            #line 38 "..\..\Help\Views\Index.cshtml"
                }


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


            #line 41 "..\..\Help\Views\Index.cshtml"


            #line default
            #line hidden

            #line 41 "..\..\Help\Views\Index.cshtml"
                foreach (var t in nh.Types.Where(t => schema.IsAllowed(t, inUserInterface: true) == null))
                {
            #line default
            #line hidden
                    WriteLiteral("                        <li><a");

                    WriteAttribute("href", Tuple.Create(" href=\"", 1616), Tuple.Create("\"", 1645)

            #line 43 "..\..\Help\Views\Index.cshtml"
                                   , Tuple.Create(Tuple.Create("", 1623), Tuple.Create <System.Object, System.Int32>(HelpUrls.EntityUrl(t)

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

                    WriteLiteral(">");


            #line 43 "..\..\Help\Views\Index.cshtml"
                    Write(t.NiceName());


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


            #line 44 "..\..\Help\Views\Index.cshtml"
                }


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


            #line 47 "..\..\Help\Views\Index.cshtml"
            }


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

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

            WriteLiteral(">");


            #line 51 "..\..\Help\Views\Index.cshtml"
            Write(HelpMessage.Appendices.NiceToString());


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


            #line 52 "..\..\Help\Views\Index.cshtml"


            #line default
            #line hidden

            #line 52 "..\..\Help\Views\Index.cshtml"
            if (Navigator.IsCreable(typeof(AppendixHelpEntity), isSearch: true))
            {
            #line default
            #line hidden
                WriteLiteral("        <a");

                WriteAttribute("href", Tuple.Create(" href=\"", 1922), Tuple.Create("\"", 1979)

            #line 54 "..\..\Help\Views\Index.cshtml"
                               , Tuple.Create(Tuple.Create("", 1929), Tuple.Create <System.Object, System.Int32>(Url.Action((HelpController c) => c.NewAppendix())

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

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


            #line 55 "..\..\Help\Views\Index.cshtml"
            }


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

            WriteLiteral(" class=\"responsive-columns\"");

            WriteLiteral(">\r\n");


            #line 58 "..\..\Help\Views\Index.cshtml"


            #line default
            #line hidden

            #line 58 "..\..\Help\Views\Index.cshtml"
            foreach (var a in appendices)
            {
            #line default
            #line hidden
                WriteLiteral("        <li>\r\n");

                WriteLiteral("            ");


            #line 61 "..\..\Help\Views\Index.cshtml"
                Write(Html.ActionLink(a.Title, (HelpController c) => c.ViewAppendix(a.UniqueName)));


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


            #line 63 "..\..\Help\Views\Index.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("</ol>\r\n");
        }
Esempio n. 2
0
        public override void Execute()
        {
            #line 5 "..\..\Help\Views\MiniMenu.cshtml"

            var ns       = (string)ViewData["namespace"];
            var type     = (Type)ViewData["type"];
            var appendix = (string)ViewData["appendix"];

            var namespaces = HelpLogic.GetNamespaceHelps();
            var appendices = HelpLogic.GetAppendixHelps();


            Schema schema = Schema.Current;


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


            #line 17 "..\..\Help\Views\MiniMenu.cshtml"
            using (Html.BeginForm("Search", "Help", FormMethod.Get, new { id = "form-search" }))
            {
            #line default
            #line hidden
                WriteLiteral("    <div");

                WriteLiteral(" class=\"input-group\"");

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

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

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

                WriteAttribute("placeholder", Tuple.Create(" placeholder=\"", 567), Tuple.Create("\"", 621)

            #line 20 "..\..\Help\Views\MiniMenu.cshtml"
                               , Tuple.Create(Tuple.Create("", 581), Tuple.Create <System.Object, System.Int32>(HelpSearchMessage.Search.NiceToString()

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

                WriteLiteral(" name=\"q\"");

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

                WriteLiteral(" class=\"input-group-btn\"");

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

                WriteLiteral(" class=\"btn btn-default\"");

                WriteLiteral(" type=\"submit\"");

                WriteLiteral("><i");

                WriteLiteral(" class=\"glyphicon glyphicon-search\"");

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


            #line 25 "..\..\Help\Views\MiniMenu.cshtml"
            }


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

            WriteAttribute("href", Tuple.Create(" href=\"", 823), Tuple.Create("\"", 874)

            #line 27 "..\..\Help\Views\MiniMenu.cshtml"
                           , Tuple.Create(Tuple.Create("", 830), Tuple.Create <System.Object, System.Int32>(Url.Action((HelpController h) => h.Index())

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

            WriteLiteral(">");


            #line 27 "..\..\Help\Views\MiniMenu.cshtml"
            Write(HelpMessage.Help.NiceToString());


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


            #line 28 "..\..\Help\Views\MiniMenu.cshtml"
            Write(HelpMessage.Entities.NiceToString());


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


            #line 30 "..\..\Help\Views\MiniMenu.cshtml"


            #line default
            #line hidden

            #line 30 "..\..\Help\Views\MiniMenu.cshtml"
            foreach (var item in namespaces.OrderBy(a => a.Namespace))
            {
            #line default
            #line hidden
                WriteLiteral("        <li>\r\n");


            #line 33 "..\..\Help\Views\MiniMenu.cshtml"


            #line default
            #line hidden

            #line 33 "..\..\Help\Views\MiniMenu.cshtml"
                if (item.Namespace != ns)
                {
            #line default
            #line hidden
                    WriteLiteral("                <a");

                    WriteAttribute("href", Tuple.Create(" href=\"", 1131), Tuple.Create("\"", 1204)

            #line 35 "..\..\Help\Views\MiniMenu.cshtml"
                                   , Tuple.Create(Tuple.Create("", 1138), Tuple.Create <System.Object, System.Int32>(Url.Action((HelpController h) => h.ViewNamespace(item.Namespace))

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

                    WriteLiteral(">\r\n");

                    WriteLiteral("                    ");


            #line 36 "..\..\Help\Views\MiniMenu.cshtml"
                    Write(item.Title);


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


            #line 37 "..\..\Help\Views\MiniMenu.cshtml"
                    if (item.Before != null)
                    {
            #line default
            #line hidden
                        WriteLiteral("                <small>");


            #line 39 "..\..\Help\Views\MiniMenu.cshtml"
                        Write(HelpMessage.In0.NiceToString(item.Before));


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


            #line 40 "..\..\Help\Views\MiniMenu.cshtml"
                    }
                }
                else
                {
            #line default
            #line hidden

            #line 44 "..\..\Help\Views\MiniMenu.cshtml"
                    Write(item.Title);


            #line default
            #line hidden

            #line 44 "..\..\Help\Views\MiniMenu.cshtml"

                    if (item.Before != null)
                    {
            #line default
            #line hidden
                        WriteLiteral("                <small>");


            #line 47 "..\..\Help\Views\MiniMenu.cshtml"
                        Write(HelpMessage.In0.NiceToString(item.Before));


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


            #line 48 "..\..\Help\Views\MiniMenu.cshtml"
                    }
                }


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


            #line 51 "..\..\Help\Views\MiniMenu.cshtml"


            #line default
            #line hidden

            #line 51 "..\..\Help\Views\MiniMenu.cshtml"
                if (item.Namespace == ns || type != null && item.Namespace == type.Namespace)
                {
            #line default
            #line hidden
                    WriteLiteral("                <ul>\r\n");


            #line 54 "..\..\Help\Views\MiniMenu.cshtml"


            #line default
            #line hidden

            #line 54 "..\..\Help\Views\MiniMenu.cshtml"
                    foreach (var t in item.Types.Where(t => schema.IsAllowed(t, inUserInterface: true) == null))
                    {
                        if (t != type)
                        {
            #line default
            #line hidden
                            WriteLiteral("                        <li><a");

                            WriteAttribute("href", Tuple.Create(" href=\"", 2016), Tuple.Create("\"", 2045)

            #line 58 "..\..\Help\Views\MiniMenu.cshtml"
                                           , Tuple.Create(Tuple.Create("", 2023), Tuple.Create <System.Object, System.Int32>(HelpUrls.EntityUrl(t)

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

                            WriteLiteral(">");


            #line 58 "..\..\Help\Views\MiniMenu.cshtml"
                            Write(t.NiceName());


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


            #line 59 "..\..\Help\Views\MiniMenu.cshtml"
                        }
                        else
                        {
            #line default
            #line hidden
                            WriteLiteral("                        <li>");


            #line 62 "..\..\Help\Views\MiniMenu.cshtml"
                            Write(t.NiceName());


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


            #line 63 "..\..\Help\Views\MiniMenu.cshtml"
                        }
                    }


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


            #line 66 "..\..\Help\Views\MiniMenu.cshtml"
                }


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


            #line 68 "..\..\Help\Views\MiniMenu.cshtml"
            }


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


            #line 70 "..\..\Help\Views\MiniMenu.cshtml"
            Write(HelpMessage.Appendices.NiceToString());


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


            #line 71 "..\..\Help\Views\MiniMenu.cshtml"


            #line default
            #line hidden

            #line 71 "..\..\Help\Views\MiniMenu.cshtml"
            if (Navigator.IsCreable(typeof(AppendixHelpEntity), isSearch: true))
            {
            #line default
            #line hidden
                WriteLiteral("        <a");

                WriteAttribute("href", Tuple.Create(" href=\"", 2456), Tuple.Create("\"", 2513)

            #line 73 "..\..\Help\Views\MiniMenu.cshtml"
                               , Tuple.Create(Tuple.Create("", 2463), Tuple.Create <System.Object, System.Int32>(Url.Action((HelpController c) => c.NewAppendix())

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

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


            #line 74 "..\..\Help\Views\MiniMenu.cshtml"
            }

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


            #line 76 "..\..\Help\Views\MiniMenu.cshtml"


            #line default
            #line hidden

            #line 76 "..\..\Help\Views\MiniMenu.cshtml"
            foreach (var item in appendices)
            {
                if (item.UniqueName != appendix)
                {
            #line default
            #line hidden
                    WriteLiteral("        <li><a");

                    WriteAttribute("href", Tuple.Create(" href=\"", 2654), Tuple.Create("\"", 2727)

            #line 80 "..\..\Help\Views\MiniMenu.cshtml"
                                   , Tuple.Create(Tuple.Create("", 2661), Tuple.Create <System.Object, System.Int32>(Url.Action((HelpController h) => h.ViewAppendix(item.UniqueName))

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

                    WriteLiteral(">\r\n");

                    WriteLiteral("            ");


            #line 81 "..\..\Help\Views\MiniMenu.cshtml"
                    Write(item.Title);


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


            #line 83 "..\..\Help\Views\MiniMenu.cshtml"
                }
                else
                {
            #line default
            #line hidden
                    WriteLiteral("        <li>\r\n");

                    WriteLiteral("            ");


            #line 87 "..\..\Help\Views\MiniMenu.cshtml"
                    Write(item.Title);


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


            #line 89 "..\..\Help\Views\MiniMenu.cshtml"
                }
            }


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