mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-21 11:17:28 +08:00
Theme and module install links from inline linke in installed page to an "Install" tab (LocalNav)
--HG-- branch : dev
This commit is contained in:
@@ -103,8 +103,7 @@ namespace Orchard.Themes.Controllers {
|
||||
|
||||
return View(new ThemesIndexViewModel {
|
||||
CurrentTheme = currentTheme,
|
||||
Themes = themes,
|
||||
InstallThemes = installThemes
|
||||
Themes = themes
|
||||
});
|
||||
} catch (Exception exception) {
|
||||
this.Error(exception, T("Listing themes failed: {0}", exception.Message), Logger, Services.Notifier);
|
||||
|
@@ -3,7 +3,6 @@ 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; }
|
||||
}
|
||||
|
@@ -20,10 +20,6 @@
|
||||
|
||||
<div id="installedBar">
|
||||
<h3>@T("Installed")</h3>
|
||||
|
||||
@if (Model.InstallThemes) {
|
||||
<p>@Html.ActionLink(T("Install theme").ToString(), "AddTheme", "PackagingServices", new { area = "Orchard.Packaging", returnUrl = HttpContext.Current.Request.RawUrl }, new { @class = "primaryAction" })</p>
|
||||
}
|
||||
</div>
|
||||
|
||||
@if (Model.Themes == null || Model.Themes.Count() <= 0) {
|
||||
|
Reference in New Issue
Block a user