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 11@using System .Globalization
22@using Abp .Configuration
33@using Abp .Configuration .Startup
4+ @using Abp .Web .Mvc .Alerts
45@using Abp .Web .Security .AntiForgery
56@using AbpCompanyName .AbpProjectName
67@using AbpCompanyName .AbpProjectName .Configuration
1516@inject IMultiTenancyConfig MultiTenancyConfig
1617@inject IWebResourceManager WebResourceManager
1718@inject ISettingManager SettingManager
19+ @inject IAlertManager AlertManager
1820@{
1921 Layout = null ;
2022 AbpAntiForgeryManager .SetCookie (Context );
143145
144146 <section class =" content" >
145147 <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+
146164 @RenderBody()
147165 </div >
148166 </section >
You can’t perform that action at this time.
0 commit comments