diff options
-rw-r--r-- | lbu-config-html.lsp | 16 | ||||
-rw-r--r-- | lbu-listbackups-html.lsp | 24 | ||||
-rw-r--r-- | lbu-listchanges-html.lsp | 16 | ||||
-rw-r--r-- | lbu-status-html.lsp | 12 |
4 files changed, 34 insertions, 34 deletions
diff --git a/lbu-config-html.lsp b/lbu-config-html.lsp index 5072423..4b8212d 100644 --- a/lbu-config-html.lsp +++ b/lbu-config-html.lsp @@ -1,20 +1,20 @@ -<? local form, viewlibrary = ... +<% local form, viewlibrary = ... require("viewfunctions") -?> -<? +%> +<% --[[ DEBUG INFORMATION io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>") io.write(html.cfe_unpack(form)) io.write("</span>") --]] -?> +%> -<? if viewlibrary and viewlibrary.dispatch_component then +<% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("status") -end ?> +end %> <H1>Config</H1> -<? +<% local order = { "LBU_MEDIA", "ENCRYPTION", "DEFAULT_CIPHER", "PASSWORD" } displayform(form, order) @@ -23,4 +23,4 @@ end ?> viewlibrary.dispatch_component("editexcluded") viewlibrary.dispatch_component("listbackups") end -?> +%> diff --git a/lbu-listbackups-html.lsp b/lbu-listbackups-html.lsp index 5995c2b..cc6e3d8 100644 --- a/lbu-listbackups-html.lsp +++ b/lbu-listbackups-html.lsp @@ -1,31 +1,31 @@ -<? local view, viewlibrary, pageinfo, session = ... +<% local view, viewlibrary, pageinfo, session = ... require("viewfunctions") -?> -<? +%> +<% --[[ DEBUG INFORMATION io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>") io.write(html.cfe_unpack(view)) io.write("</span>") --]] -?> +%> -<? displaycommandresults({"selectbackup"}, session) ?> +<% displaycommandresults({"selectbackup"}, session) %> <H1>Backup Archive</H1> <DL> -<? if #view.value == 0 then ?> +<% if #view.value == 0 then %> No backup files -<? else ?> +<% else %> <table><tr> <td class="header">Action</td> <td class="header">File</td> </tr> - <? for i,name in ipairs(view.value) do ?> + <% for i,name in ipairs(view.value) do %> <tr><td> - <?= html.link{value="selectbackup?backup="..name, label="Select "} ?> + <%= html.link{value="selectbackup?backup="..name, label="Select "} %> </td> - <td><?= name ?></td></tr> - <? end -end ?> + <td><%= name %></td></tr> + <% end +end %> </table> </DL> diff --git a/lbu-listchanges-html.lsp b/lbu-listchanges-html.lsp index 0cc7f03..d2a9692 100644 --- a/lbu-listchanges-html.lsp +++ b/lbu-listchanges-html.lsp @@ -1,25 +1,25 @@ -<? local view, viewlibrary, pageinfo, session = ... +<% local view, viewlibrary, pageinfo, session = ... require("viewfunctions") -?> -<? +%> +<% --[[ DEBUG INFORMATION io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>") io.write(html.cfe_unpack(view)) io.write("</span>") --]] -?> +%> -<? if viewlibrary and viewlibrary.dispatch_component then +<% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("status") if session.permissions.lbu.commit then viewlibrary.dispatch_component("commit") end -end ?> +end %> <H1>Changes Since Last Commit</H1> <DL> <dt>Files changed since last commit</dt> - <dd><pre><? + <dd><pre><% if (#view.value == 0) then io.write("None") else @@ -27,5 +27,5 @@ end ?> io.write(file.status .. "\t" .. file.name .. "\n") end end - ?></pre></DD> + %></pre></DD> </DL> diff --git a/lbu-status-html.lsp b/lbu-status-html.lsp index 6b8a77d..6da9025 100644 --- a/lbu-status-html.lsp +++ b/lbu-status-html.lsp @@ -1,17 +1,17 @@ -<? local view, viewlibrary, pageinfo, session = ... +<% local view, viewlibrary, pageinfo, session = ... require("viewfunctions") -?> -<? +%> +<% --[[ DEBUG INFORMATION io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>") io.write(html.cfe_unpack(view)) io.write("</span>") --]] -?> +%> <H1>System Info</H1> <DL> -<? +<% if view.value.committed.value then view.value.committed.value = "There are no uncommitted files" else @@ -24,5 +24,5 @@ for name,value in pairs(view.value) do if name ~= "committed" then displayitem(value) end -end ?> +end %> </DL> |