0fe365202e83511c7a28455e95f599e4e80fdbe4
[project/luci.git] / contrib / luadoc / lua / luadoc / doclet / html / menu.lp
1 <%
2 if module_doc then
3 from = "modules/"..module_doc.name
4 elseif file_doc then
5 from = "files/.."..file_doc.name
6 else
7 from = ""
8 end
9 %>
10
11 <h1>LuaDoc</h1>
12 <ul>
13 <%if not module_doc and not file_doc then%>
14 <li><strong>Index</strong></li>
15 <%else%>
16 <li><a href="<%=luadoc.doclet.html.link("index.html", from)%>">Index</a></li>
17 <%end%>
18 </ul>
19
20
21 <!-- Module list -->
22 <%if not options.nomodules and #doc.modules > 0 then%>
23 <h1>Modules</h1>
24 <ul>
25 <%for _, modulename in ipairs(doc.modules) do
26 if module_doc and module_doc.name == modulename then%>
27 <li><strong><%=modulename%></strong></li>
28 <%else%>
29 <li>
30 <a href="<%=luadoc.doclet.html.module_link(modulename, doc, from)%>"><%=modulename%></a>
31 </li>
32 <% end
33 end%>
34 </ul>
35 <%end%>
36
37
38 <!-- File list -->
39 <%if not options.nofiles and #doc.files > 0 then%>
40 <h1>Files</h1>
41 <ul>
42 <%for _, filepath in ipairs(doc.files) do
43 if file_doc and file_doc.name == filepath then%>
44 <li><strong><%=filepath%></strong></li>
45 <%else%>
46 <li>
47 <a href="<%=luadoc.doclet.html.file_link(filepath, from)%>"><%=filepath%></a>
48 </li>
49 <% end
50 end%>
51 </ul>
52 <%end%>
53
54
55