Skip to content

Commit e2d294d

Browse files
committed
manifest fix
1 parent 92a2abb commit e2d294d

8 files changed

+124
-4
lines changed

views/pages/index_admin_examples.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
a Node Express application.</p>
88
<% } %>
99

10-
<%- include("index_examples_list") %>
10+
<%- include("index_admin_examples_list") %>
1111

1212
</div>
1313

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<% locals.manifest.Groups.forEach(function(group) { %>
2+
<h2 class="mt-4"><%= group.Name %></h2>
3+
4+
<% group.Examples.forEach(function(example) { %>
5+
<% if (!example.SkipForLanguages || !example.SkipForLanguages.includes("node")) { %>
6+
<h4
7+
id=<%= "example".concat("0".repeat(3 - example.ExampleNumber.toString().length)).concat(example.ExampleNumber) %>
8+
>
9+
<a
10+
href=<%= "eg".concat("0".repeat(3 - example.ExampleNumber.toString().length)).concat(example.ExampleNumber) %>>
11+
<%= example.ExampleName %>
12+
</a>
13+
</h4>
14+
15+
<p><%- example.ExampleDescription %></p>
16+
17+
<p>
18+
<% if (example.LinksToAPIMethod.length > 1) { %>
19+
API methods used:
20+
<% } else { %>
21+
API method used:
22+
<% } %>
23+
24+
<% example.LinksToAPIMethod.forEach(function(link) { %>
25+
<a target='_blank' href="<%= link.Path %>"><%= link.PathName %></a>
26+
<% }); %>
27+
</p>
28+
<% } %>
29+
<% }); %>
30+
<% }); %>

views/pages/index_click_examples.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
a Node Express application.</p>
55
<% } %>
66

7-
<%- include("index_examples_list") %>
7+
<%- include("index_click_examples_list") %>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<% locals.manifest.Groups.forEach(function(group) { %>
2+
<h2 class="mt-4"><%= group.Name %></h2>
3+
4+
<% group.Examples.forEach(function(example) { %>
5+
<% if (!example.SkipForLanguages || !example.SkipForLanguages.includes("node")) { %>
6+
<h4
7+
id=<%= "example".concat("0".repeat(3 - example.ExampleNumber.toString().length)).concat(example.ExampleNumber) %>
8+
>
9+
<a
10+
href=<%= "eg".concat("0".repeat(3 - example.ExampleNumber.toString().length)).concat(example.ExampleNumber) %>>
11+
<%= example.ExampleName %>
12+
</a>
13+
</h4>
14+
15+
<p><%- example.ExampleDescription %></p>
16+
17+
<p>
18+
<% if (example.LinksToAPIMethod.length > 1) { %>
19+
API methods used:
20+
<% } else { %>
21+
API method used:
22+
<% } %>
23+
24+
<% example.LinksToAPIMethod.forEach(function(link) { %>
25+
<a target='_blank' href="<%= link.Path %>"><%= link.PathName %></a>
26+
<% }); %>
27+
</p>
28+
<% } %>
29+
<% }); %>
30+
<% }); %>

views/pages/index_monitor_examples.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
a Node Express application.</p>
3232
<% } %>
3333

34-
<%- include("index_examples_list") %>
34+
<%- include("index_monitor_examples_list") %>
3535
</div>
3636

3737
<!-- anchor-js is only for the index page -->
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<% locals.manifest.Groups.forEach(function(group) { %>
2+
<h2 class="mt-4"><%= group.Name %></h2>
3+
4+
<% group.Examples.forEach(function(example) { %>
5+
<% if (!example.SkipForLanguages || !example.SkipForLanguages.includes("node")) { %>
6+
<h4
7+
id=<%= "example".concat("0".repeat(3 - example.ExampleNumber.toString().length)).concat(example.ExampleNumber) %>
8+
>
9+
<a
10+
href=<%= "eg".concat("0".repeat(3 - example.ExampleNumber.toString().length)).concat(example.ExampleNumber) %>>
11+
<%= example.ExampleName %>
12+
</a>
13+
</h4>
14+
15+
<p><%- example.ExampleDescription %></p>
16+
17+
<p>
18+
<% if (example.LinksToAPIMethod.length > 1) { %>
19+
API methods used:
20+
<% } else { %>
21+
API method used:
22+
<% } %>
23+
24+
<% example.LinksToAPIMethod.forEach(function(link) { %>
25+
<a target='_blank' href="<%= link.Path %>"><%= link.PathName %></a>
26+
<% }); %>
27+
</p>
28+
<% } %>
29+
<% }); %>
30+
<% }); %>

views/pages/index_rooms_examples.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
<h3 class="mt-4">Rooms API Code Examples for C#, PHP, Java, Node.js, Python, and Curl</h3>
1111
<% } %>
1212

13-
<%- include("index_examples_list") %>
13+
<%- include("index_rooms_examples_list") %>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<% locals.manifest.Groups.forEach(function(group) { %>
2+
<h2 class="mt-4"><%= group.Name %></h2>
3+
4+
<% group.Examples.forEach(function(example) { %>
5+
<% if (!example.SkipForLanguages || !example.SkipForLanguages.includes("node")) { %>
6+
<h4
7+
id=<%= "example".concat("0".repeat(3 - example.ExampleNumber.toString().length)).concat(example.ExampleNumber) %>
8+
>
9+
<a
10+
href=<%= "eg".concat("0".repeat(3 - example.ExampleNumber.toString().length)).concat(example.ExampleNumber) %>>
11+
<%= example.ExampleName %>
12+
</a>
13+
</h4>
14+
15+
<p><%- example.ExampleDescription %></p>
16+
17+
<p>
18+
<% if (example.LinksToAPIMethod.length > 1) { %>
19+
API methods used:
20+
<% } else { %>
21+
API method used:
22+
<% } %>
23+
24+
<% example.LinksToAPIMethod.forEach(function(link) { %>
25+
<a target='_blank' href="<%= link.Path %>"><%= link.PathName %></a>
26+
<% }); %>
27+
</p>
28+
<% } %>
29+
<% }); %>
30+
<% }); %>

0 commit comments

Comments
 (0)