Applied message-Information style to update available notification.

--HG--
branch : dev
This commit is contained in:
Jonathan Wall
2011-02-24 20:20:42 -08:00
parent 21a5a30ca2
commit f0b446f842
3 changed files with 19 additions and 14 deletions

View File

@@ -6,17 +6,18 @@
@{ string moduleClasses = Model.ContentPart.IsRecentlyInstalled ? "recentlyInstalledModule" : string.Empty; }
<div class="summary">
@if (Model.ContentPart.Notifications != null && Model.ContentPart.Notifications.Count > 0) {
<div class="notifications">
@foreach (string notification in Model.ContentPart.Notifications) {
<h5>@notification</h5>
}
</div>
}
<div class="properties">
<h2 class="@moduleClasses">@Model.ContentPart.Descriptor.Name<span> - @T("Version: {0}", !string.IsNullOrEmpty(Model.ContentPart.Descriptor.Version) ? Model.ContentPart.Descriptor.Version : T("1.0").ToString())</span></h2>
@if (!string.IsNullOrEmpty(Model.ContentPart.Descriptor.Description)) {
<p>@Model.ContentPart.Descriptor.Description</p>}
@if (Model.ContentPart.Notifications != null && Model.ContentPart.Notifications.Count > 0) {
<ul class="notifications">
@foreach (string notification in Model.ContentPart.Notifications) {
<li>@notification</li>
}
</ul>
@if (!string.IsNullOrEmpty(Model.ContentPart.Descriptor.Description)) {
<p>@Model.ContentPart.Descriptor.Description</p>
}
<ul class="pageStatus" style="color:#666; margin:.6em 0 0 0;">

View File

@@ -37,7 +37,7 @@ namespace Orchard.Packaging.Events {
if (updatePackageEntry != null) {
if (updatePackageEntry.NewVersionToInstall != null) {
yield return T("New version available: {0}", updatePackageEntry.NewVersionToInstall.Version).ToString();
yield return T("Version {0} is available.", updatePackageEntry.NewVersionToInstall.Version).ToString();
}
}
}