|
1 | | -@using System.Collections |
2 | | -@using DeveloperTools.Models |
3 | | -@using EPiServer.Shell |
4 | | -@inherits System.Web.Mvc.WebViewPage<IEnumerable<DeveloperTools.Models.RouteModel>> |
5 | | - |
6 | | -@{ |
7 | | - Layout = Paths.ToResource("EPiServer.DeveloperTools", "Views/Shared/DevToolsMaster.cshtml"); |
8 | | -} |
| 1 | +@model IEnumerable<EPiServer.DeveloperTools.Features.Routes.RouteModel> |
9 | 2 |
|
10 | 3 | <div class="epi-contentArea"> |
11 | 4 | <h1 class="EP-prefix">Routes</h1> |
12 | 5 | <p> |
13 | | - Dumps all routes registered in the Application and you can find out which routes can handle a request. |
| 6 | + Dumps all endpoints registered in the application. |
14 | 7 | </p> |
15 | 8 | </div> |
16 | 9 | <div class="epi-formArea"> |
17 | | - <div> |
| 10 | + @*<div> |
18 | 11 | @using (Html.BeginForm("Index", "Routes", new { }, FormMethod.Post)) |
19 | 12 | { |
20 | 13 | @Html.AntiForgeryToken() |
|
24 | 17 | <input type="submit" value="Find Route" class="epi-cmsButton-text epi-cmsButton-tools epi-cmsButton-Search"/> |
25 | 18 | </span> |
26 | 19 | } |
27 | | - </div> |
| 20 | + </div>*@ |
28 | 21 | <br/> |
29 | 22 | <table cellpadding="0" cellspacing="0" border="0" class="display" id="theList"> |
30 | 23 | <thead> |
31 | 24 | <tr> |
32 | 25 | <th align="left">Order</th> |
33 | 26 | <th align="left">Name</th> |
34 | | - <th align="left">Type</th> |
35 | 27 | <th align="left">Url</th> |
36 | | - <th align="left">RouteHandler </th> |
37 | | - <th align="left">Defaults </th> |
| 28 | + <th align="left">RouteHandler</th> |
| 29 | + <th align="left">Methods</th> |
| 30 | + <th align="left">Parameters</th> |
| 31 | + <th align="left">Defaults</th> |
38 | 32 | </tr> |
39 | 33 | </thead> |
40 | 34 | <tbody> |
|
43 | 37 | <tr @(entry.IsSelected ? "style='background-color:LightGreen'" : string.Empty)> |
44 | 38 | <td>@entry.Order</td> |
45 | 39 | <td>@entry.Name</td> |
46 | | - <td>@entry.Type</td> |
47 | 40 | <td>@entry.Url</td> |
48 | 41 | <td>@entry.RouteHandler</td> |
| 42 | + <td>@entry.Methods</td> |
| 43 | + <td>@entry.Parameters</td> |
49 | 44 | <td>@entry.Defaults</td> |
50 | 45 | </tr> |
51 | | - if (entry.IsSelected) |
52 | | - { |
53 | | - <tr style='background-color: LightGreen'> |
54 | | - <td>@entry.Order</td> |
55 | | - <td></td> |
56 | | - <td>@entry.DataTokens</td> |
57 | | - <td></td> |
58 | | - <td></td> |
59 | | - <td></td> |
60 | | - </tr> |
61 | | - <tr style='background-color: LightGreen'> |
62 | | - <td>@entry.Order</td> |
63 | | - <td></td> |
64 | | - <td>@entry.Values</td> |
65 | | - <td></td> |
66 | | - <td></td> |
67 | | - <td></td> |
68 | | - </tr> |
69 | | - } |
70 | 46 | } |
71 | 47 | </tbody> |
72 | 48 | </table> |
73 | 49 |
|
74 | 50 | </div> |
75 | 51 |
|
76 | | -@section Scripts { |
| 52 | +@section AdditionalScripts { |
77 | 53 | <script> |
78 | 54 | $(document).ready(function () { |
79 | 55 | $('#theList').dataTable( |
|
0 commit comments