summaryrefslogtreecommitdiffstats
path: root/app/acf-util/skins-read-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2010-01-13 16:11:18 +0000
committerTed Trask <ttrask01@yahoo.com>2010-01-13 16:11:18 +0000
commit0eebb26c9594f1c92b13e412e6ad24857143c288 (patch)
tree40504cff2acf2d0cfe97d4bea6d4194e3225f055 /app/acf-util/skins-read-html.lsp
parentfbf9492b39641f0eef99c66b728c5d37e9bed932 (diff)
downloadacf-core-0eebb26c9594f1c92b13e412e6ad24857143c288.tar.bz2
acf-core-0eebb26c9594f1c92b13e412e6ad24857143c288.tar.xz
Moved skins from acf-alpine-baselayout.
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>