File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
src/AbpCompanyName.AbpProjectName.WebMpa/Views/Shared Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 1
1
@using System .Threading
2
2
@using System .Web .Optimization
3
3
@using Abp .Timing
4
+ @using Abp .Dependency
5
+ @using Abp .Web .Mvc .Alerts
4
6
@{
5
7
SetAntiForgeryCookie ();
8
+ AlertList alerts = null ;
9
+ IocManager .Instance .Using <IAlertManager >(alertManager => alerts = alertManager .Alerts );
6
10
}
7
11
<!DOCTYPE html>
8
12
<html lang =" en" >
41
45
@Html.Partial( "_TopBar")
42
46
43
47
<div class =" container" >
48
+ @if (alerts .Any ())
49
+ {
50
+ <div id =" AbpPageAlerts" >
51
+ @foreach ( var alertMessage in alerts )
52
+ {
53
+ <
div class =
" alert [email protected] ().ToLower() @(alertMessage.Dismissible ? " alert-dismisable " : " " )" role =
" alert" >
54
+ <h4 class =" alert-heading" >
55
+ @alertMessage.Title
56
+ @if (alertMessage .Dismissible )
57
+ {
58
+ <button type =" button" class =" close" data-dismiss =" alert" aria-label =" Close" ><span aria-hidden =" true" >× ; </span ></button >
59
+ }
60
+ </h4 >
61
+ <p >@alertMessage.Text </p >
62
+ </div >
63
+ }
64
+ </div >
65
+ }
44
66
@RenderBody()
45
67
</div >
46
68
You can’t perform that action at this time.
0 commit comments