summaryrefslogtreecommitdiffstats
path: root/lbu-listchanges-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2014-04-10 04:59:37 +0000
committerTed Trask <ttrask01@yahoo.com>2014-04-10 04:59:37 +0000
commit37a61d7a8f2538b1fcb0f9b636345c84d74d5cf6 (patch)
tree3bdf36b571cd4eea3868f1976274666bcab42fea /lbu-listchanges-html.lsp
parentcb6b77833f255b8acbf61fb0c343c01dbf845a84 (diff)
downloadacf-alpine-conf-37a61d7a8f2538b1fcb0f9b636345c84d74d5cf6.tar.bz2
acf-alpine-conf-37a61d7a8f2538b1fcb0f9b636345c84d74d5cf6.tar.xz
Changes to use new htmlviewfunctions functions
Diffstat (limited to 'lbu-listchanges-html.lsp')
-rw-r--r--lbu-listchanges-html.lsp25
1 files changed, 12 insertions, 13 deletions
diff --git a/lbu-listchanges-html.lsp b/lbu-listchanges-html.lsp
index 84c94ae..2b65046 100644
--- a/lbu-listchanges-html.lsp
+++ b/lbu-listchanges-html.lsp
@@ -12,19 +12,17 @@ html = require("acf.html")
end
%>
-<% if viewlibrary.check_permission("getpackage") then %>
-<h1>Download Overlay</h1>
- <div class='item'><p class='left'>Generate and download overlay</p>
- <div class='right'>
- <form action="<%= html.html_escape(page_info.script .. page_info.prefix) %>lbu/getpackage" method="post">
- <input type="hidden" name="viewtype" value="stream">
- <input class="submit" type="submit" name="submit" value="Download"></form>
- </div></div><!-- end .item -->
-<% end %>
+<%
+if viewlibrary.check_permission("getpackage") then
+ local viewtype = cfe({type="hidden", value="stream"})
+ htmlviewfunctions.displayitem(cfe({type="form", value={viewtype=viewtype}, label="Download Overlay", option="Download", action="getpackage" }), page_info)
+end
+%>
-<h1>Changes Since Last Commit</h1>
- <div class='item'><p class='left'>Files changed since last commit</p>
- <div class='right'>
+<% local header_level = htmlviewfunctions.displaysectionstart(view, page_info) %>
+ <% htmlviewfunctions.displayitemstart() %>
+ Files changed since last commit
+ <% htmlviewfunctions.displayitemmiddle() %>
<pre><%
if (#view.value == 0) then
io.write("None")
@@ -34,4 +32,5 @@ html = require("acf.html")
end
end
%></pre>
- </div></div><!-- end .item -->
+ <% htmlviewfunctions.displayitemend() %>
+<% htmlviewfunctions.displaysectionend(header_level) %>