forked from zzzprojects/System.Linq.Dynamic.Core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIndex.cshtml
More file actions
57 lines (51 loc) · 1.65 KB
/
Index.cshtml
File metadata and controls
57 lines (51 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
@model IEnumerable<DynamicLinqWebDocs.Models.Class>
@{
ViewBag.Title = "Library Reference";
}
<h2>@ViewBag.Title</h2>
@foreach (var ns in Model.GroupBy(x => x.Namespace).OrderBy(x => x.Key))
{
var interfaces = @ns.Where(x => x.IsInterface).ToArray();
var classes = @ns.Where(x => !x.IsInterface).ToArray();
<h3>Namespace: @ns.Key</h3>
if (interfaces.Length > 0)
{
<table class="table">
<thead>
<tr>
<th>Interface</th>
<th>Description</th>
</tr>
</thead>
<tbody>
@foreach (var interfaceObj in interfaces.OrderBy(x => x.Name))
{
<tr>
<td>@Html.ActionLink(interfaceObj.Name, "Class", "Library", new { className = interfaceObj.Name }, null)</td>
<td>@Html.FormatMarkdown(interfaceObj.Description)</td>
</tr>
}
</tbody>
</table>
}
if (classes.Length > 0)
{
<table class="table">
<thead>
<tr>
<th>Class</th>
<th>Description</th>
</tr>
</thead>
<tbody>
@foreach (var classObj in classes.OrderBy(x => x.Name))
{
<tr>
<td>@Html.ActionLink(classObj.Name, "Class", "Library", new { className = classObj.Name }, null)</td>
<td>@Html.FormatMarkdown(classObj.Description)</td>
</tr>
}
</tbody>
</table>
}
}