mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4042154
18 lines
544 B
Plaintext
18 lines
544 B
Plaintext
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<NotifyEntry>>" %>
|
|
<%@ Import Namespace="Orchard.UI.Notify"%>
|
|
|
|
<script runat="server">
|
|
string CssClassName(NotifyType type) {
|
|
switch(type) {
|
|
case NotifyType.Error:
|
|
return "critical";
|
|
case NotifyType.Warning:
|
|
return "warning";
|
|
}
|
|
return "informational";
|
|
}</script>
|
|
|
|
<% foreach (var item in Model) { %>
|
|
<div class="<%=CssClassName(item.Type) %> message"><%=Html.Encode(item.Message) %></div>
|
|
<% } %>
|