File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Mvc/Views/Shared Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 1
1
@using System .Globalization
2
2
@using Abp .Configuration
3
3
@using Abp .Configuration .Startup
4
+ @using Abp .Web .Mvc .Alerts
4
5
@using Abp .Web .Security .AntiForgery
5
6
@using AbpCompanyName .AbpProjectName
6
7
@using AbpCompanyName .AbpProjectName .Configuration
15
16
@inject IMultiTenancyConfig MultiTenancyConfig
16
17
@inject IWebResourceManager WebResourceManager
17
18
@inject ISettingManager SettingManager
19
+ @inject IAlertManager AlertManager
18
20
@{
19
21
Layout = null ;
20
22
AbpAntiForgeryManager .SetCookie (Context );
143
145
144
146
<section class =" content" >
145
147
<div class =" container-fluid" >
148
+ @if (AlertManager .Alerts .Any ())
149
+ {
150
+ <div id =" AbpPageAlerts" >
151
+ @foreach ( var alertMessage in AlertManager .Alerts )
152
+ {
153
+ <
div class =
" alert [email protected] ().ToLower() @(alertMessage.Dismissible ? " alert-dismisable " : " " )" role =
" alert" >
154
+ @if (alertMessage .Dismissible )
155
+ {
156
+ <button type =" button" class =" close" data-dismiss =" alert" aria-label =" Close" ><span aria-hidden =" true" >× ; </span ></button >
157
+ }
158
+ <strong >@alertMessage.Title </strong > @alertMessage.Text
159
+ </div >
160
+ }
161
+ </div >
162
+ }
163
+
146
164
@RenderBody()
147
165
</div >
148
166
</section >
You can’t perform that action at this time.
0 commit comments