* luci/applications: some initial openvpn work - defunct
[project/luci.git] / applications / luci-openvpn / luasrc / view / openvpn / pageswitch.htm
1 <%#
2 LuCI - Lua Configuration Interface
3 Copyright 2008 Steven Barth <steven@midlink.org>
4 Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id: value.htm 3333 2008-09-16 10:08:20Z Cyrus $
13
14 -%>
15
16 <fieldset class="cbi-section">
17 <legend>
18 <a href="<%=luci.dispatcher.build_url("admin", "services", "openvpn")%>"><%:openvpn_overview Overview%></a> &raquo;
19 <a href="<%=luci.dispatcher.build_url("admin", "services", "openvpn", self.instance)%>"><%=self.instance%></a>
20 </legend>
21
22 <ul><% for _, c in ipairs(self.categories) do %>
23 <li><%=c[1]%><ul><li>
24 <% for i, s in ipairs(c[2]) do %>
25 <% if s == self.csection then %>
26 <strong><%=translate("openvpn_%s" % s, s)%></strong>
27 <% else %>
28 <a href="<%=luci.dispatcher.build_url(
29 "admin", "services", "openvpn", c[1], s, self.instance
30 )%>"><%=translate("openvpn_%s" % s, s)%></a>
31 <% end %>
32 <% if next(c[2], i) then %>|<% end %>
33 <% end %>
34 </li></ul></li>
35 <% end %></ul>
36 </fieldset>