Theme and module install links from inline linke in installed page to an "Install" tab (LocalNav)

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2011-02-23 12:25:30 -08:00
parent 4a3ba3b4d6
commit 4923c12126
7 changed files with 13 additions and 17 deletions

View File

@@ -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);

View File

@@ -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; }
}

View File

@@ -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) {