Skip to content

Commit b24510c

Browse files
committed
[WIP] Navigation partial with nested navigation
1 parent d17cd83 commit b24510c

1 file changed

Lines changed: 48 additions & 2 deletions

File tree

app/views/flexible_page/flexible_sections/_navigation.html.erb

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,52 @@
11
<div class="govuk-grid-row flexible-section">
2-
<%= render "govuk_publishing_components/components/service_navigation", {
3-
navigation_items: flexible_section.items,
2+
<%= render "components/nested_navigation", {
3+
items: [
4+
{
5+
text: "Service Name",
6+
href: "/service-name"
7+
},
8+
{
9+
text: "A basic link",
10+
href: "/something"
11+
},
12+
{
13+
text: "Nested Heading",
14+
links: [
15+
{
16+
text: "Example Link",
17+
href: "/hello-world"
18+
},
19+
{
20+
text: "Example Link 2",
21+
href: "/hello-world"
22+
},
23+
{
24+
text: "Example Link 3",
25+
href: "/hello-world"
26+
},
27+
{
28+
text: "This is a very very very long link",
29+
href: "/hello-world"
30+
},
31+
{
32+
text: "Another link that has a lot of characters",
33+
href: "/hello-world"
34+
},
35+
{
36+
text: "Third link containing a lot of text",
37+
href: "/hello-world"
38+
}
39+
]
40+
},
41+
{
42+
text: "Third Link",
43+
href: "/example1"
44+
},
45+
{
46+
text: "Fourth Link",
47+
href: "/example1"
48+
}
49+
]
450
} %>
551
</div>
652

0 commit comments

Comments
 (0)