modules/admin-full: pass along backlink in uci pages
[project/luci.git] / modules / admin-full / luasrc / view / admin_uci / revert.htm
index 7f98a04..b0b3dab 100644 (file)
@@ -12,8 +12,25 @@ You may obtain a copy of the License at
 $Id$
 
 -%>
+
 <%+header%>
-<h1><%:config%></h1>
-<p><%:uci_reverted%>:</p>
-<code><%=(changes or "-")%></code>
-<%+footer%>
\ No newline at end of file
+
+<h2><a id="content" name="content"><%:Configuration / Revert%></a></h2>
+
+<% if changes then %>
+       <%+cbi/apply_xhr%>
+       <%+admin_uci/changelog%>
+
+       <p><strong><%:The following changes have been reverted%>:</strong></p>
+       <%- uci_changelog(changes) -%>
+<% else %>
+       <p><strong><%:There are no pending changes to revert!%></strong></p>
+<% end %>
+
+<div class="cbi-page-actions">
+       <form class="inline" method="get" action="<%=luci.util.pcdata(luci.http.formvalue("redir"))%>">
+               <input class="cbi-button" style="margin:0" type="submit" value="« <%:back%>" />
+       </form>
+</div>
+
+<%+footer%>