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 />
|
||||
@Html.ActionLink(T("Install a new Theme").ToString(), "Install")
|
||||
</p>
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
<h3 id="currentThemeTitle">@T("Current Theme")</h3>
|
||||
|
||||
@Display.ThemeEntry_Current(Theme: Model.CurrentTheme)
|
||||
@@ -21,13 +22,14 @@
|
||||
<div id="installedBar" class="group">
|
||||
<h3>@T("Available")</h3>
|
||||
@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>
|
||||
|
||||
@if (Model.Themes == null || Model.Themes.Count() <= 0) {
|
||||
<p>@T("There are no additional themes installed.")</p>
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
<ul class="templates">
|
||||
@foreach (var themeEntry in Model.Themes) {
|
||||
<li>@Display.ThemeEntry(Theme: themeEntry)</li>
|
||||
|
||||
@@ -11,12 +11,14 @@
|
||||
|
||||
<div class="details">
|
||||
<h4>@theme.Name</h4>
|
||||
<h5>@T("By") @theme.Descriptor.Author<br />
|
||||
@T("Version:") @theme.Descriptor.Version<br />
|
||||
@if (theme.Descriptor.WebSite != null) {
|
||||
<a href="@theme.Descriptor.WebSite">@theme.Descriptor.WebSite</a><br />
|
||||
}</h5>
|
||||
|
||||
<h5>
|
||||
@T("By") @theme.Descriptor.Author<br />
|
||||
@T("Version:") @theme.Descriptor.Version<br />
|
||||
@if (theme.Descriptor.WebSite != null) {
|
||||
<a href="@theme.Descriptor.WebSite">@theme.Descriptor.WebSite</a><br />
|
||||
}
|
||||
</h5>
|
||||
|
||||
<p class="themeInfo">@theme.Descriptor.Description</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -11,7 +11,7 @@
|
||||
<div>
|
||||
<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" })) {
|
||||
@Html.Hidden("themeId", (string)theme.Descriptor.Id)
|
||||
<button type="submit" title="@T("Activate")">@T("Set Current")</button>
|
||||
@@ -33,9 +33,9 @@
|
||||
|
||||
@if (theme.Notifications != null && theme.Notifications.Count > 0) {
|
||||
<ul class="notifications">
|
||||
@foreach (string notification in theme.Notifications) {
|
||||
<li>@notification</li>
|
||||
}
|
||||
@foreach (string notification in theme.Notifications) {
|
||||
<li>@notification</li>
|
||||
}
|
||||
</ul>
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
<span> | </span>
|
||||
using (Html.BeginFormAntiForgeryPost(Url.Action("Update"), FormMethod.Post, new { @class = "inline link" })) {
|
||||
@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