From 857b73052cbeb78ca209a32764a7c3b556ff6906 Mon Sep 17 00:00:00 2001
From: Lombiq
Date: Sun, 18 Jan 2015 19:14:10 +0100
Subject: [PATCH] Formatting theme templates.
---
.../Orchard.Themes/Views/Admin/Index.cshtml | 10 ++++++----
.../Orchard.Themes/Views/ThemeEntry.Current.cshtml | 14 ++++++++------
.../Modules/Orchard.Themes/Views/ThemeEntry.cshtml | 10 +++++-----
3 files changed, 19 insertions(+), 15 deletions(-)
diff --git a/src/Orchard.Web/Modules/Orchard.Themes/Views/Admin/Index.cshtml b/src/Orchard.Web/Modules/Orchard.Themes/Views/Admin/Index.cshtml
index 899459b91..751bd1496 100644
--- a/src/Orchard.Web/Modules/Orchard.Themes/Views/Admin/Index.cshtml
+++ b/src/Orchard.Web/Modules/Orchard.Themes/Views/Admin/Index.cshtml
@@ -12,7 +12,8 @@
@T("There is no current theme in the application. The built-in theme will be used.")
@Html.ActionLink(T("Install a new Theme").ToString(), "Install")
-} else {
+}
+else {
@T("Current Theme")
@Display.ThemeEntry_Current(Theme: Model.CurrentTheme)
@@ -21,13 +22,14 @@
@T("Available")
@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)
+ }
@if (Model.Themes == null || Model.Themes.Count() <= 0) {
@T("There are no additional themes installed.")
-} else {
+}
+else {
@foreach (var themeEntry in Model.Themes) {
@Display.ThemeEntry(Theme: themeEntry)
diff --git a/src/Orchard.Web/Modules/Orchard.Themes/Views/ThemeEntry.Current.cshtml b/src/Orchard.Web/Modules/Orchard.Themes/Views/ThemeEntry.Current.cshtml
index 2ec11fd24..b06bcb7b8 100644
--- a/src/Orchard.Web/Modules/Orchard.Themes/Views/ThemeEntry.Current.cshtml
+++ b/src/Orchard.Web/Modules/Orchard.Themes/Views/ThemeEntry.Current.cshtml
@@ -11,12 +11,14 @@
@theme.Name
-
@T("By") @theme.Descriptor.Author
- @T("Version:") @theme.Descriptor.Version
- @if (theme.Descriptor.WebSite != null) {
- @theme.Descriptor.WebSite
- }
-
+
+ @T("By") @theme.Descriptor.Author
+ @T("Version:") @theme.Descriptor.Version
+ @if (theme.Descriptor.WebSite != null) {
+ @theme.Descriptor.WebSite
+ }
+
+
@theme.Descriptor.Description
\ No newline at end of file
diff --git a/src/Orchard.Web/Modules/Orchard.Themes/Views/ThemeEntry.cshtml b/src/Orchard.Web/Modules/Orchard.Themes/Views/ThemeEntry.cshtml
index be6ed41f8..dfa8b5b82 100644
--- a/src/Orchard.Web/Modules/Orchard.Themes/Views/ThemeEntry.cshtml
+++ b/src/Orchard.Web/Modules/Orchard.Themes/Views/ThemeEntry.cshtml
@@ -11,7 +11,7 @@
@theme.Name
- @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)
@T("Set Current")
@@ -33,9 +33,9 @@
@if (theme.Notifications != null && theme.Notifications.Count > 0) {
- @foreach (string notification in theme.Notifications) {
- @notification
- }
+ @foreach (string notification in theme.Notifications) {
+ @notification
+ }
}
@@ -56,7 +56,7 @@
|
using (Html.BeginFormAntiForgeryPost(Url.Action("Update"), FormMethod.Post, new { @class = "inline link" })) {
@Html.Hidden("themeId", (string)theme.Descriptor.Id)
-
@T("Update")
+
@T("Update")
}
}