File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed
src/AbpCompanyName.AbpProjectName.Web/Views/Shared Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change 1
1
@using System .Globalization
2
- @using System .Threading
3
- @using System .Threading .Tasks
4
2
@using Abp .Timing
5
3
@using AbpCompanyName .AbpProjectName .Web .Views .Shared .Components .LanguageSelection
6
4
@using AbpCompanyName .AbpProjectName .Web .Views .Shared .Components .TopMenu
7
5
@using Abp .Web .Security .AntiForgery
8
6
@inject IAbpAntiForgeryManager AbpAntiForgeryManager
7
+ @using Abp .Web .Mvc .Alerts
8
+ @inject IAlertManager AlertManager
9
9
@{
10
10
AbpAntiForgeryManager .SetCookie (Context );
11
11
}
80
80
</div >
81
81
82
82
<div class =" container body-content" >
83
+ @if (AlertManager .Alerts .Any ())
84
+ {
85
+ <div id =" AbpPageAlerts" >
86
+ @foreach ( var alertMessage in AlertManager .Alerts )
87
+ {
88
+ <
div class =
" alert [email protected] ().ToLower() @(alertMessage.Dismissible ? " alert-dismisable " : " " )" role =
" alert" >
89
+ <h4 class =" alert-heading" >
90
+ @alertMessage.Title
91
+ @if (alertMessage .Dismissible )
92
+ {
93
+ <button type =" button" class =" close" data-dismiss =" alert" aria-label =" Close" ><span aria-hidden =" true" >× ; </span ></button >
94
+ }
95
+ </h4 >
96
+
97
+ <p >@alertMessage.Text </p >
98
+ </div >
99
+ }
100
+ </div >
101
+ }
102
+
83
103
@RenderBody()
84
104
</div >
85
105
You can’t perform that action at this time.
0 commit comments