mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00

--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045044
10 lines
499 B
Plaintext
10 lines
499 B
Plaintext
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<NotifyEntry>>" %>
|
|
<%@ Import Namespace="Orchard.UI.Notify"%>
|
|
<% foreach (var item in Model) {
|
|
var className = item.Type == NotifyType.Error
|
|
? "critical"
|
|
: item.Type == NotifyType.Warning
|
|
? "warning"
|
|
: "info"; %>
|
|
<div class="<%=className %> message"><%=Html.Encode(item.Message) %></div>
|
|
<% } %> |