pageswitch.htm 1.0 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. <%+openvpn/ovpn_css%>
  7. <div class="cbi-section">
  8. <h3>
  9. <a href="<%=url('admin/vpn/openvpn')%>"><%:Overview%></a> &#187;
  10. <%=luci.i18n.translatef("Instance \"%s\"", pcdata(self.instance))%>
  11. </h3>
  12. <% if self.mode == "basic" then %>
  13. <a href="<%=url('admin/vpn/openvpn/advanced', self.instance)%>"><%:Switch to advanced configuration%> &#187;</a><p/>
  14. <hr />
  15. <% elseif self.mode == "advanced" then %>
  16. <a href="<%=url('admin/vpn/openvpn/basic', self.instance)%>"><%:Switch to basic configuration%> &#187;</a><p/>
  17. <hr />
  18. <%:Configuration category%>:
  19. <% for i, c in ipairs(self.categories) do %>
  20. <% if c.id == self.category then %>
  21. <strong><%=c.title%></strong>
  22. <% else %>
  23. <a href="<%=luci.dispatcher.build_url("admin", "vpn", "openvpn", "advanced", self.instance, c.id)%>"><%=c.title%></a>
  24. <% end %>
  25. <% if next(self.categories, i) then %>|<% end %>
  26. <% end %>
  27. <% end %>
  28. </div>