mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Updated theme UI.
--HG-- branch : 1.x
This commit is contained in:
@@ -1,31 +1,23 @@
|
||||
#currentTheme .themePreviewImage {
|
||||
/*button[title="Disable"], button[title="Enable"]
|
||||
{
|
||||
display:none;
|
||||
}*/
|
||||
#currentTheme .themePreviewImage {
|
||||
float: left;
|
||||
margin-right: 20px;
|
||||
}
|
||||
#installedBar {
|
||||
clear: both;
|
||||
border-bottom-width: thin;
|
||||
border-bottom-style: solid;
|
||||
border-bottom-color: #E4E5E6;
|
||||
height: 50px;
|
||||
border-bottom:1px solid #E4E5E6;
|
||||
height: 36px;
|
||||
margin: 10px 0 10px 0;
|
||||
}
|
||||
#otherActionsBar {
|
||||
clear: both;
|
||||
border-top-width: thin;
|
||||
border-top-style: solid;
|
||||
border-top-color: #E4E5E6;
|
||||
margin: 10px 0 0;
|
||||
padding: 10px 0 0;
|
||||
}
|
||||
#installedBar h3 {
|
||||
float: left;
|
||||
padding-top: 10px;
|
||||
}
|
||||
#installedBar p a {
|
||||
color: #3A822E;
|
||||
#installedBar a {
|
||||
float: right;
|
||||
padding-top: 20px;
|
||||
padding-top: 10px;
|
||||
}
|
||||
.templates li {
|
||||
margin:.8em;
|
||||
|
@@ -18,8 +18,11 @@
|
||||
@Display.ThemeEntry_Current(ContentPart: Model.CurrentTheme)
|
||||
}
|
||||
|
||||
<div id="installedBar">
|
||||
<div id="installedBar" class="group">
|
||||
<h3>@T("Available")</h3>
|
||||
@if (Model.InstallThemes) {
|
||||
@Html.ActionLink(T("Install a theme from my computer").ToString(), "AddTheme", "PackagingServices", new { area = "Orchard.Packaging", returnUrl = HttpContext.Current.Request.RawUrl }, null)
|
||||
}
|
||||
</div>
|
||||
|
||||
@if (Model.Themes == null || Model.Themes.Count() <= 0) {
|
||||
@@ -30,8 +33,4 @@
|
||||
<li>@Display.ThemeEntry(ContentPart: themeEntry)</li>
|
||||
}
|
||||
</ul>
|
||||
}
|
||||
|
||||
@if (Model.InstallThemes) {
|
||||
<p id="otherActionsBar">@Html.ActionLink(T("Upload a theme").ToString(), "AddTheme", "PackagingServices", new { area = "Orchard.Packaging", returnUrl = HttpContext.Current.Request.RawUrl }, null)</p>
|
||||
}
|
@@ -38,13 +38,13 @@
|
||||
@if (Model.ContentPart.Enabled) {
|
||||
using (Html.BeginFormAntiForgeryPost(Url.Action("Disable"), FormMethod.Post, new { @class = "inline link" })) {
|
||||
@Html.Hidden("themeName", (string)Model.ContentPart.Descriptor.Id)
|
||||
<button type="submit" title="Disable">@T("Disable")</button>
|
||||
<button type="submit" class="disable" title="Disable">@T("Disable")</button>
|
||||
}
|
||||
}
|
||||
else {
|
||||
using (Html.BeginFormAntiForgeryPost(Url.Action("Enable"), FormMethod.Post, new { @class = "inline link" })) {
|
||||
@Html.Hidden("themeName", (string)Model.ContentPart.Descriptor.Id)
|
||||
<button type="submit" title="Enable">@T("Enable")</button>
|
||||
<button type="submit" class="enable" title="Enable">@T("Enable")</button>
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user