-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModulePageLayout.razor
88 lines (84 loc) · 2.27 KB
/
ModulePageLayout.razor
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
@inherits LayoutComponentBase
@inject IBlazorUIProvider UIProvider
@layout MainLayout
@inject IModuleHost ModuleHost
<PageParent>
<PageTitle>@($"{context.Title} - {context.Module?.Manifest.DisplayName} - {UIProvider.SiteInfo.Name}")</PageTitle>
<PageHeader>
<PageHeaderTitle>
@if (context.TitleFragment is not null)
{
@context.TitleFragment
}
else
{
<span>@context.Title</span>
}
</PageHeaderTitle>
<PageHeaderBreadcrumb>
@if (context.Breadcrumb is not null)
{
@context.Breadcrumb
}
else
{
<Breadcrumb>
<BreadcrumbItem>
<span>
<AntModuleIcon Module="context.Module"></AntModuleIcon>
<span>@(context.Module?.Manifest.DisplayName ?? context.Module?.Manifest.Name ?? "")</span>
</span>
</BreadcrumbItem>
</Breadcrumb>
}
</PageHeaderBreadcrumb>
<PageHeaderSubtitle>
@if (context.SubtitleFragment is not null)
{
@context.SubtitleFragment
}
else
{
}
</PageHeaderSubtitle>
<PageHeaderTags>
@if (context.Tags is not null)
{
@context.Tags
}
else
{
}
</PageHeaderTags>
<PageHeaderFooter>
@if (context.HeaderFooter is not null)
{
@context.HeaderFooter
}
else
{
}
</PageHeaderFooter>
<PageHeaderExtra>
@if (context.HeaderExtra is not null)
{
@context.HeaderExtra
}
else
{
}
</PageHeaderExtra>
<PageHeaderContent>
@if (context.HeaderContent is not null)
{
@context.HeaderContent
}
else
{
}
</PageHeaderContent>
</PageHeader>
<div class="container">
@Body
</div>
</PageParent>