mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-22 03:37:25 +08:00
Going back to the inline links for installing a local module or theme.
--HG-- branch : dev
This commit is contained in:
@@ -103,6 +103,7 @@ namespace Orchard.Themes.Controllers {
|
||||
|
||||
return View(new ThemesIndexViewModel {
|
||||
CurrentTheme = currentTheme,
|
||||
InstallThemes = installThemes,
|
||||
Themes = themes
|
||||
});
|
||||
} catch (Exception exception) {
|
||||
|
||||
@@ -10,6 +10,14 @@
|
||||
height: 50px;
|
||||
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;
|
||||
|
||||
@@ -3,6 +3,7 @@ using Orchard.Themes.Models;
|
||||
|
||||
namespace Orchard.Themes.ViewModels {
|
||||
public class ThemesIndexViewModel {
|
||||
public bool InstallThemes { get; set; }
|
||||
public ThemeEntry CurrentTheme { get; set; }
|
||||
public IEnumerable<ThemeEntry> Themes { get; set; }
|
||||
}
|
||||
|
||||
@@ -30,4 +30,8 @@
|
||||
<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>
|
||||
}
|
||||
Reference in New Issue
Block a user