applications/openvpn: Fix translation of headers on advanced page and update/cleanup...
[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$
13
14 These strings need to be here to be included in the translation template
15 translate("Service")
16 translate("Networking")
17 translate("VPN")
18 translate("Cryptography")
19
20 -%>
21
22 <fieldset class="cbi-section">
23 <legend>
24 <a href="<%=luci.dispatcher.build_url("admin", "services", "openvpn")%>"><%:Overview%></a> &raquo;
25 <%=luci.i18n.translatef("Instance \"%s\"", self.instance)%>
26 </legend>
27
28 <% if self.mode == "basic" then %>
29 <a href="<%=luci.dispatcher.build_url("admin", "services", "openvpn", "advanced", self.instance, "Service")%>"><%:Switch to advanced configuration »%></a>
30 <% else %>
31 <a href="<%=luci.dispatcher.build_url("admin", "services", "openvpn", "basic", self.instance)%>"><%:« Switch to basic configuration%></a>
32 <hr style="margin:0.5em 0" />
33 <%:Configuration category%>:
34 <% for i, c in ipairs(self.categories) do %>
35 <% if c == self.category then %>
36 <strong><%=translate(c)%></strong>
37 <% else %>
38 <a href="<%=luci.dispatcher.build_url(
39 "admin", "services", "openvpn", "advanced", self.instance, c
40 )%>"><%=translate(c)%></a>
41 <% end %>
42 <% if next(self.categories, i) then %>|<% end %>
43 <% end %>
44 <% end %>
45 </fieldset>