revert.htm 904 B

123456789101112131415161718192021222324252627282930313233
  1. <%#
  2. Copyright 2008 Steven Barth <steven@midlink.org>
  3. Copyright 2008-2018 Jo-Philipp Wich <jo@mein.io>
  4. Licensed to the public under the Apache License 2.0.
  5. -%>
  6. <%+header%>
  7. <%-
  8. local node, redir_url = luci.dispatcher.lookup(luci.http.formvalue("redir"))
  9. export("redirect", redir_url or url("admin/uci/changes"))
  10. include("admin_uci/changelog")
  11. -%>
  12. <h2 name="content"><%:Configuration%> / <%:Revert%></h2>
  13. <% if changes then %>
  14. <p><strong><%:The following changes have been reverted%>:</strong></p>
  15. <%- uci_changelog(changes) -%>
  16. <% else %>
  17. <p><strong><%:There are no pending changes to revert!%></strong></p>
  18. <% end %>
  19. <% if redir_url then %>
  20. <div class="cbi-page-actions">
  21. <form class="inline" method="get" action="<%=luci.util.pcdata(redir_url)%>">
  22. <input class="cbi-button cbi-button-link" style="margin:0" type="submit" value="<%:Back%>" />
  23. </form>
  24. </div>
  25. <% end %>
  26. <%+footer%>