mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Formatting theme templates.
This commit is contained in:
@@ -12,7 +12,8 @@
|
|||||||
@T("There is no current theme in the application. The built-in theme will be used.")<br />
|
@T("There is no current theme in the application. The built-in theme will be used.")<br />
|
||||||
@Html.ActionLink(T("Install a new Theme").ToString(), "Install")
|
@Html.ActionLink(T("Install a new Theme").ToString(), "Install")
|
||||||
</p>
|
</p>
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
<h3 id="currentThemeTitle">@T("Current Theme")</h3>
|
<h3 id="currentThemeTitle">@T("Current Theme")</h3>
|
||||||
|
|
||||||
@Display.ThemeEntry_Current(Theme: Model.CurrentTheme)
|
@Display.ThemeEntry_Current(Theme: Model.CurrentTheme)
|
||||||
@@ -21,13 +22,14 @@
|
|||||||
<div id="installedBar" class="group">
|
<div id="installedBar" class="group">
|
||||||
<h3>@T("Available")</h3>
|
<h3>@T("Available")</h3>
|
||||||
@if (Model.InstallThemes) {
|
@if (Model.InstallThemes) {
|
||||||
@Html.ActionLink(T("Install a theme from your computer").ToString(), "AddTheme", "PackagingServices", new { area = "Orchard.Packaging", returnUrl = HttpContext.Current.Request.RawUrl }, null)
|
@Html.ActionLink(T("Install a theme from your computer").ToString(), "AddTheme", "PackagingServices", new { area = "Orchard.Packaging", returnUrl = HttpContext.Current.Request.RawUrl }, null)
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if (Model.Themes == null || Model.Themes.Count() <= 0) {
|
@if (Model.Themes == null || Model.Themes.Count() <= 0) {
|
||||||
<p>@T("There are no additional themes installed.")</p>
|
<p>@T("There are no additional themes installed.")</p>
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
<ul class="templates">
|
<ul class="templates">
|
||||||
@foreach (var themeEntry in Model.Themes) {
|
@foreach (var themeEntry in Model.Themes) {
|
||||||
<li>@Display.ThemeEntry(Theme: themeEntry)</li>
|
<li>@Display.ThemeEntry(Theme: themeEntry)</li>
|
||||||
|
|||||||
@@ -11,12 +11,14 @@
|
|||||||
|
|
||||||
<div class="details">
|
<div class="details">
|
||||||
<h4>@theme.Name</h4>
|
<h4>@theme.Name</h4>
|
||||||
<h5>@T("By") @theme.Descriptor.Author<br />
|
<h5>
|
||||||
@T("Version:") @theme.Descriptor.Version<br />
|
@T("By") @theme.Descriptor.Author<br />
|
||||||
@if (theme.Descriptor.WebSite != null) {
|
@T("Version:") @theme.Descriptor.Version<br />
|
||||||
<a href="@theme.Descriptor.WebSite">@theme.Descriptor.WebSite</a><br />
|
@if (theme.Descriptor.WebSite != null) {
|
||||||
}</h5>
|
<a href="@theme.Descriptor.WebSite">@theme.Descriptor.WebSite</a><br />
|
||||||
|
}
|
||||||
|
</h5>
|
||||||
|
|
||||||
<p class="themeInfo">@theme.Descriptor.Description</p>
|
<p class="themeInfo">@theme.Descriptor.Description</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<h3 @Html.Raw(themeClasses)>@theme.Name</h3>
|
<h3 @Html.Raw(themeClasses)>@theme.Name</h3>
|
||||||
|
|
||||||
@Html.Image(Href(Html.ThemePath((ExtensionDescriptor) theme.Descriptor, "/Theme.png")), Html.Encode((string)theme.Name), null)
|
@Html.Image(Href(Html.ThemePath((ExtensionDescriptor)theme.Descriptor, "/Theme.png")), Html.Encode((string)theme.Name), null)
|
||||||
@using (Html.BeginFormAntiForgeryPost(Url.Action("Activate"), FormMethod.Post, new { @class = "inline" })) {
|
@using (Html.BeginFormAntiForgeryPost(Url.Action("Activate"), FormMethod.Post, new { @class = "inline" })) {
|
||||||
@Html.Hidden("themeId", (string)theme.Descriptor.Id)
|
@Html.Hidden("themeId", (string)theme.Descriptor.Id)
|
||||||
<button type="submit" title="@T("Activate")">@T("Set Current")</button>
|
<button type="submit" title="@T("Activate")">@T("Set Current")</button>
|
||||||
@@ -33,9 +33,9 @@
|
|||||||
|
|
||||||
@if (theme.Notifications != null && theme.Notifications.Count > 0) {
|
@if (theme.Notifications != null && theme.Notifications.Count > 0) {
|
||||||
<ul class="notifications">
|
<ul class="notifications">
|
||||||
@foreach (string notification in theme.Notifications) {
|
@foreach (string notification in theme.Notifications) {
|
||||||
<li>@notification</li>
|
<li>@notification</li>
|
||||||
}
|
}
|
||||||
</ul>
|
</ul>
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
<span> | </span>
|
<span> | </span>
|
||||||
using (Html.BeginFormAntiForgeryPost(Url.Action("Update"), FormMethod.Post, new { @class = "inline link" })) {
|
using (Html.BeginFormAntiForgeryPost(Url.Action("Update"), FormMethod.Post, new { @class = "inline link" })) {
|
||||||
@Html.Hidden("themeId", (string)theme.Descriptor.Id)
|
@Html.Hidden("themeId", (string)theme.Descriptor.Id)
|
||||||
<button type="submit" class="update">@T("Update")</button> <br/>
|
<button type="submit" class="update">@T("Update")</button> <br />
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user