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 11@using System .Globalization
2- @using System .Threading
3- @using System .Threading .Tasks
42@using Abp .Timing
53@using AbpCompanyName .AbpProjectName .Web .Views .Shared .Components .LanguageSelection
64@using AbpCompanyName .AbpProjectName .Web .Views .Shared .Components .TopMenu
75@using Abp .Web .Security .AntiForgery
86@inject IAbpAntiForgeryManager AbpAntiForgeryManager
7+ @using Abp .Web .Mvc .Alerts
8+ @inject IAlertManager AlertManager
99@{
1010 AbpAntiForgeryManager .SetCookie (Context );
1111}
8080 </div >
8181
8282 <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+
83103 @RenderBody()
84104 </div >
85105
You can’t perform that action at this time.
0 commit comments