pageswitch.htm 1.1 KB

123456789101112131415161718192021222324252627282930
  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. <fieldset class="cbi-section">
  7. <legend>
  8. <a href="<%=luci.dispatcher.build_url("admin", "services", "openvpn")%>"><%:Overview%></a> &raquo;
  9. <%=luci.i18n.translatef("Instance \"%s\"", self.instance)%>
  10. </legend>
  11. <% if self.mode == "basic" then %>
  12. <a href="<%=luci.dispatcher.build_url("admin", "services", "openvpn", "advanced", self.instance, "Service")%>"><%:Switch to advanced configuration »%></a>
  13. <% else %>
  14. <a href="<%=luci.dispatcher.build_url("admin", "services", "openvpn", "basic", self.instance)%>"><%:« Switch to basic configuration%></a>
  15. <hr style="margin:0.5em 0" />
  16. <%:Configuration category%>:
  17. <% for i, c in ipairs(self.categories) do %>
  18. <% if c == self.category then %>
  19. <strong><%=translate(c)%></strong>
  20. <% else %>
  21. <a href="<%=luci.dispatcher.build_url(
  22. "admin", "services", "openvpn", "advanced", self.instance, c
  23. )%>"><%=translate(c)%></a>
  24. <% end %>
  25. <% if next(self.categories, i) then %>|<% end %>
  26. <% end %>
  27. <% end %>
  28. </fieldset>