mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
A little more module management UI work
- linked feature deps to features - fixed a test --HG-- branch : dev
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
Scenario: Installed modules are listed
|
||||
Given I have installed Orchard
|
||||
When I go to "admin/modules"
|
||||
Then I should see "<h2>Installed Modules</h2>"
|
||||
Then I should see "<h1>Installed Modules</h1>"
|
||||
And I should see "<h3>Themes</h3>"
|
||||
And the status should be 200 OK
|
||||
|
||||
|
2
src/Orchard.Specs/Modules.feature.cs
generated
2
src/Orchard.Specs/Modules.feature.cs
generated
@@ -62,7 +62,7 @@ this.ScenarioSetup(scenarioInfo);
|
||||
#line 8
|
||||
testRunner.When("I go to \"admin/modules\"");
|
||||
#line 9
|
||||
testRunner.Then("I should see \"<h2>Installed Modules</h2>\"");
|
||||
testRunner.Then("I should see \"<h1>Installed Modules</h1>\"");
|
||||
#line 10
|
||||
testRunner.And("I should see \"<h3>Themes</h3>\"");
|
||||
#line 11
|
||||
|
@@ -9,7 +9,7 @@ namespace Orchard.Modules {
|
||||
menu => menu
|
||||
.Add("Manage Features", "1.0", item => item.Action("Features", "Admin", new { area = "Orchard.Modules" })
|
||||
.Permission(Permissions.ManageFeatures))
|
||||
.Add("Manage Modules", "2.0", item => item.Action("Index", "Admin", new { area = "Orchard.Modules" })
|
||||
.Add("Installed Modules", "2.0", item => item.Action("Index", "Admin", new { area = "Orchard.Modules" })
|
||||
.Permission(Permissions.ManageModules)));
|
||||
}
|
||||
}
|
||||
|
@@ -40,7 +40,7 @@ using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
</li><%
|
||||
//dependencies
|
||||
if (feature.Descriptor.Dependencies.Count() > 0) { %>
|
||||
<li> | <%=T("Depends on: {0}", string.Join(", ", feature.Descriptor.Dependencies.Select(s => Html.Encode(s)).OrderBy(s => s).ToArray())) %></li><%
|
||||
<li> | <%=T("Depends on: {0}", string.Join(", ", feature.Descriptor.Dependencies.Select(s => Html.Link(Html.Encode(s), string.Format("{0}#{1}", Url.Action("features", new { area = "Orchard.Modules" }), Html.Encode(s)))).OrderBy(s => s).ToArray())) %></li><%
|
||||
} %>
|
||||
</ul>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user