mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Applied message-Information style to update available notification.
--HG-- branch : dev
This commit is contained in:
@@ -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;">
|
||||
|
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -141,6 +141,10 @@ h4 img, h5 img, h6 img {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
strong
|
||||
{
|
||||
font-weight:600;
|
||||
}
|
||||
.smallText {font-size:1em; line-height:1.4em;}
|
||||
|
||||
|
||||
@@ -492,9 +496,9 @@ form.link button:hover {
|
||||
#main h2, #main h3 {
|
||||
margin:.5em 0;
|
||||
}
|
||||
#main p {
|
||||
/*#main p {
|
||||
margin:0 0 1.5em;
|
||||
}
|
||||
}*/
|
||||
#main .main.actions {
|
||||
margin:0 0 1.4em;
|
||||
}
|
||||
@@ -540,7 +544,7 @@ span.message {
|
||||
background:#e68585; /* red */
|
||||
color:#fff;
|
||||
}
|
||||
.message-Information {
|
||||
.message-Information, .notifications {
|
||||
background:#e6f1c9; /* green */
|
||||
border:1px solid #cfe493;
|
||||
color:#062232;
|
||||
@@ -940,9 +944,9 @@ table.items th, table.items td {
|
||||
.contentItems .commentcount {
|
||||
line-height:2em;
|
||||
}
|
||||
#main .contentItems p {
|
||||
/*#main .contentItems p {
|
||||
margin:1em 0 0;
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
/* Pager
|
||||
|
Reference in New Issue
Block a user