File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed
src/AbpCompanyName.AbpProjectName.WebMpa/Views/Shared Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change 22@using System .Web .Optimization
33@using Abp .Configuration
44@using Abp .Timing
5- @using Abp .Web .Mvc .Extensions
65@using AbpCompanyName .AbpProjectName
76@using AbpCompanyName .AbpProjectName .Configuration
7+ @using Abp .Dependency
8+ @using Abp .Web .Mvc .Alerts
89@{
910 Layout = null ;
1011 SetAntiForgeryCookie ();
1112 var uiTheme = SettingManager .GetSettingValue (AppSettingNames .UiTheme );
13+ AlertList alerts = null ;
14+ IocManager .Instance .Using <IAlertManager >(alertManager => alerts = alertManager .Alerts );
1215}
1316<!DOCTYPE html>
1417<html lang =" en" >
110113
111114 <section class =" content" >
112115 <div class =" container-fluid" >
116+ @if (alerts .Any ())
117+ {
118+ <div id =" AbpPageAlerts" >
119+ @foreach ( var alertMessage in alerts )
120+ {
121+ <
div class =
" alert [email protected] ().ToLower() @(alertMessage.Dismissible ? " alert-dismisable " : " " )" role =
" alert" >
122+ <h4 class =" alert-heading" >
123+ @alertMessage.Title
124+ @if (alertMessage .Dismissible )
125+ {
126+ <button type =" button" class =" close" data-dismiss =" alert" aria-label =" Close" ><span aria-hidden =" true" >× ; </span ></button >
127+ }
128+ </h4 >
129+ <p >@alertMessage.Text </p >
130+ </div >
131+ }
132+ </div >
133+ }
134+
113135 @RenderBody()
114136 </div >
115137 </section >
You can’t perform that action at this time.
0 commit comments