summaryrefslogtreecommitdiffstats
path: root/app/acf-util/skins-read-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'app/acf-util/skins-read-html.lsp')
-rw-r--r--app/acf-util/skins-read-html.lsp17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/acf-util/skins-read-html.lsp b/app/acf-util/skins-read-html.lsp
new file mode 100644
index 0000000..95547a5
--- /dev/null
+++ b/app/acf-util/skins-read-html.lsp
@@ -0,0 +1,17 @@
+<% local view, viewlibrary, page_info, session = ... %>
+<% require("viewfunctions") %>
+
+<% displaycommandresults({"update"}, session) %>
+
+<h1>Available skins</h1>
+
+<DL>
+<% for i,skin in ipairs(view.value) do %>
+ <dt><%= html.html_escape(skin.value) %></dt>
+ <% if (skin.inuse) then %>
+ <dd>in use</dd>
+ <% else %>
+ <dd>[<a href="update?skin=<%= html.html_escape(skin.value) %>">use this skin</a>]</dd>
+ <% end %>
+<% end %>
+</DL>