2008-10-05 19:49:21 +00:00
|
|
|
<%#
|
2015-01-16 22:38:38 +00:00
|
|
|
Copyright 2008 Steven Barth <steven@midlink.org>
|
2015-01-16 22:46:42 +00:00
|
|
|
Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
|
2015-01-16 22:38:38 +00:00
|
|
|
Licensed to the public under the Apache License 2.0.
|
2008-10-05 19:49:21 +00:00
|
|
|
-%>
|
|
|
|
|
2018-10-20 19:22:49 +00:00
|
|
|
<%+openvpn/ovpn_css%>
|
|
|
|
|
2018-09-16 16:58:26 +00:00
|
|
|
<div class="cbi-section">
|
|
|
|
<h3>
|
2018-10-20 19:22:49 +00:00
|
|
|
<a href="<%=url('admin/services/openvpn')%>"><%:Overview%></a> »
|
2009-10-31 15:54:11 +00:00
|
|
|
<%=luci.i18n.translatef("Instance \"%s\"", self.instance)%>
|
2018-09-16 16:58:26 +00:00
|
|
|
</h3>
|
2018-10-20 19:22:49 +00:00
|
|
|
<% if self.mode == "file" then %>
|
|
|
|
<a href="<%=url('admin/services/openvpn/basic', self.instance)%>"><%:Switch to basic configuration%> »</a><p/>
|
|
|
|
<a href="<%=url('admin/services/openvpn/advanced', self.instance, "Service")%>"><%:Switch to advanced configuration%> »</a>
|
|
|
|
<hr />
|
|
|
|
<% elseif self.mode == "basic" then %>
|
|
|
|
<a href="<%=url('admin/services/openvpn/advanced', self.instance, "Service")%>"><%:Switch to advanced configuration%> »</a><p/>
|
|
|
|
<a href="<%=url('admin/services/openvpn/file', self.instance)%>"><%:Switch to file based configuration%> »</a>
|
|
|
|
<hr />
|
|
|
|
<% elseif self.mode == "advanced" then %>
|
|
|
|
<a href="<%=url('admin/services/openvpn/basic', self.instance)%>"><%:Switch to basic configuration%> »</a><p/>
|
|
|
|
<a href="<%=url('admin/services/openvpn/file', self.instance)%>"><%:Switch to file based configuration%> »</a>
|
|
|
|
<hr />
|
2009-10-31 19:26:07 +00:00
|
|
|
<%:Configuration category%>:
|
2008-10-09 22:24:21 +00:00
|
|
|
<% for i, c in ipairs(self.categories) do %>
|
|
|
|
<% if c == self.category then %>
|
2009-10-31 19:26:07 +00:00
|
|
|
<strong><%=translate(c)%></strong>
|
2008-10-09 22:24:21 +00:00
|
|
|
<% else %>
|
2018-10-20 19:22:49 +00:00
|
|
|
<a href="<%=luci.dispatcher.build_url("admin", "services", "openvpn", "advanced", self.instance, c)%>"><%=translate(c)%></a>
|
2008-10-05 19:49:21 +00:00
|
|
|
<% end %>
|
2008-10-09 22:24:21 +00:00
|
|
|
<% if next(self.categories, i) then %>|<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2018-09-16 16:58:26 +00:00
|
|
|
</div>
|