mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-03 03:58:13 +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
|
Scenario: Installed modules are listed
|
||||||
Given I have installed Orchard
|
Given I have installed Orchard
|
||||||
When I go to "admin/modules"
|
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 I should see "<h3>Themes</h3>"
|
||||||
And the status should be 200 OK
|
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
|
#line 8
|
||||||
testRunner.When("I go to \"admin/modules\"");
|
testRunner.When("I go to \"admin/modules\"");
|
||||||
#line 9
|
#line 9
|
||||||
testRunner.Then("I should see \"<h2>Installed Modules</h2>\"");
|
testRunner.Then("I should see \"<h1>Installed Modules</h1>\"");
|
||||||
#line 10
|
#line 10
|
||||||
testRunner.And("I should see \"<h3>Themes</h3>\"");
|
testRunner.And("I should see \"<h3>Themes</h3>\"");
|
||||||
#line 11
|
#line 11
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ namespace Orchard.Modules {
|
|||||||
menu => menu
|
menu => menu
|
||||||
.Add("Manage Features", "1.0", item => item.Action("Features", "Admin", new { area = "Orchard.Modules" })
|
.Add("Manage Features", "1.0", item => item.Action("Features", "Admin", new { area = "Orchard.Modules" })
|
||||||
.Permission(Permissions.ManageFeatures))
|
.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)));
|
.Permission(Permissions.ManageModules)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ using (Html.BeginFormAntiForgeryPost()) { %>
|
|||||||
</li><%
|
</li><%
|
||||||
//dependencies
|
//dependencies
|
||||||
if (feature.Descriptor.Dependencies.Count() > 0) { %>
|
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>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user