Skip to content

Commit 717df93

Browse files
committed
Improve the management page UI
1 parent 1799b7a commit 717df93

3 files changed

Lines changed: 31 additions & 41 deletions

File tree

common.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<PropertyGroup>
33
<LangVersion>latest</LangVersion>
4-
<Version>3.0.0</Version>
4+
<Version>3.1.0-preview.1</Version>
55
<NoWarn>$(NoWarn);CS1591;CS0436</NoWarn>
66
<AbpProjectType>module</AbpProjectType>
77
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>

src/EasyAbp.PrivateMessaging.Web/Pages/PrivateMessaging/PrivateMessages/PrivateMessage/Inbox.cshtml

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,31 +17,26 @@
1717
{
1818
<abp-style src="/Pages/PrivateMessaging/PrivateMessages/PrivateMessage/common.css"/>
1919
}
20+
@section content_toolbar
21+
{
22+
<abp-button id="OutboxButton"
23+
text="@L["PrivateMessageOutbox"].Value"
24+
size="Small"
25+
button-type="Secondary" />
26+
@if (await Authorization.IsGrantedAsync(PrivateMessagingPermissions.PrivateMessages.Create))
27+
{
28+
<abp-button id="NewPrivateMessageButton"
29+
text="@L["CreatePrivateMessage"].Value"
30+
icon="plus"
31+
size="Small"
32+
button-type="Primary" />
33+
}
34+
}
2035
@{
2136
PageLayout.Content.Title = L["PrivateMessageInbox"].Value;
22-
PageLayout.Content.BreadCrumb.Add(L["Menu:PrivateMessage"].Value);
2337
}
2438

2539
<abp-card>
26-
<abp-card-header>
27-
<abp-row>
28-
<abp-column size-md="_6">
29-
<abp-card-title>@L["PrivateMessageInbox"]</abp-card-title>
30-
</abp-column>
31-
<abp-column size-md="_6" class="text-end">
32-
<abp-button id="OutboxButton"
33-
text="@L["PrivateMessageOutbox"].Value"
34-
button-type="Secondary" />
35-
@if (await Authorization.IsGrantedAsync(PrivateMessagingPermissions.PrivateMessages.Create))
36-
{
37-
<abp-button id="NewPrivateMessageButton"
38-
text="@L["CreatePrivateMessage"].Value"
39-
icon="plus"
40-
button-type="Primary" />
41-
}
42-
</abp-column>
43-
</abp-row>
44-
</abp-card-header>
4540
<abp-card-body>
4641
<abp-table striped-rows="true" id="PrivateMessageTable" class="nowrap">
4742
<thead>

src/EasyAbp.PrivateMessaging.Web/Pages/PrivateMessaging/PrivateMessages/PrivateMessage/Outbox.cshtml

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,26 @@
1818
{
1919
<abp-style src="/Pages/PrivateMessaging/PrivateMessages/PrivateMessage/common.css"/>
2020
}
21+
@section content_toolbar
22+
{
23+
<abp-button id="InboxButton"
24+
text="@L["PrivateMessageInbox"].Value"
25+
size="Small"
26+
button-type="Secondary" />
27+
@if (await Authorization.IsGrantedAsync(PrivateMessagingPermissions.PrivateMessages.Create))
28+
{
29+
<abp-button id="NewPrivateMessageButton"
30+
text="@L["CreatePrivateMessage"].Value"
31+
icon="plus"
32+
size="Small"
33+
button-type="Primary"/>
34+
}
35+
}
2136
@{
2237
PageLayout.Content.Title = L["PrivateMessageInbox"].Value;
23-
PageLayout.Content.BreadCrumb.Add(L["Menu:PrivateMessage"].Value);
2438
}
2539

2640
<abp-card>
27-
<abp-card-header>
28-
<abp-row>
29-
<abp-column size-md="_2">
30-
<h2>@L["PrivateMessageOutbox"]</h2>
31-
</abp-column>
32-
<abp-column size-md="_10" class="text-end">
33-
<abp-button id="InboxButton"
34-
text="@L["PrivateMessageInbox"].Value"
35-
button-type="Secondary" />
36-
@if (await Authorization.IsGrantedAsync(PrivateMessagingPermissions.PrivateMessages.Create))
37-
{
38-
<abp-button id="NewPrivateMessageButton"
39-
text="@L["CreatePrivateMessage"].Value"
40-
icon="plus"
41-
button-type="Primary"/>
42-
}
43-
</abp-column>
44-
</abp-row>
45-
</abp-card-header>
4641
<abp-card-body>
4742
<abp-table striped-rows="true" id="PrivateMessageTable">
4843
<thead>

0 commit comments

Comments
 (0)