Merge pull request #1735 from sumpfralle/olsr-jsoninfo-parser-handle-empty-result
[oweals/luci.git] / applications / luci-app-openvpn / luasrc / view / openvpn / pageswitch.htm
1 <%#
2  Copyright 2008 Steven Barth <steven@midlink.org>
3  Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
4  Licensed to the public under the Apache License 2.0.
5 -%>
6
7 <%+openvpn/ovpn_css%>
8
9 <div class="cbi-section">
10         <h3>
11                 <a href="<%=url('admin/vpn/openvpn')%>"><%:Overview%></a> &#187;
12                 <%=luci.i18n.translatef("Instance \"%s\"", self.instance)%>
13         </h3>
14         <% if self.mode == "basic" then %>
15                 <a href="<%=url('admin/vpn/openvpn/advanced', self.instance, "Service")%>"><%:Switch to advanced configuration%> &#187;</a><p/>
16                 <hr />
17         <% elseif self.mode == "advanced" then %>
18                 <a href="<%=url('admin/vpn/openvpn/basic', self.instance)%>"><%:Switch to basic configuration%> &#187;</a><p/>
19                 <hr />
20                 <%:Configuration category%>:
21                 <% for i, c in ipairs(self.categories) do %>
22                         <% if c == self.category then %>
23                                 <strong><%=translate(c)%></strong>
24                         <% else %>
25                                 <a href="<%=luci.dispatcher.build_url("admin", "vpn", "openvpn", "advanced", self.instance, c)%>"><%=translate(c)%></a>
26                         <% end %>
27                         <% if next(self.categories, i) then %>|<% end %>
28                 <% end %>
29         <% end %>
30 </div>