Merge pull request #965 from cshore-firmware/pull-request-odhcpd-mac
[project/luci.git] / applications / luci-app-commands / luasrc / view / commands_public.htm
1 <%#
2 Copyright 2016 t123yh <t123yh@outlook.com>
3 Licensed to the public under the Apache License 2.0.
4 -%>
5
6 <% css = [[
7 .alert-success {
8 color: #3c763d;
9 background-color: #dff0d8;
10 border-color: #d6e9c6;
11 }
12
13 .alert {
14 padding: 15px;
15 margin-bottom: 20px;
16 border: 1px solid transparent;
17 border-radius: 4px;
18 }
19
20 .alert-warning {
21 color: #8a6d3b;
22 background-color: #fcf8e3;
23 border-color: #faebcc;
24 }
25 ]] -%>
26
27 <%+header%>
28
29 <% if exitcode == 0 then %>
30 <div class="alert alert-success" role="alert"> <%:Command executed successfully.%> </div>
31 <% else %>
32 <div class="alert alert-warning" role="alert"> <%:Command exited with status code %> <%= exitcode %> </div>
33 <% end %>
34
35 <% if stdout ~= "" then %>
36 <h3><%:Standard Output%></h3>
37 <pre><%= stdout %></pre>
38 <% end %>
39
40 <% if stderr ~= "" then %>
41 <h3><%:Standard Error%></h3>
42 <pre><%= stderr %></pre>
43 <% end %>
44
45 <script>
46 <%# Display top bar on mobile devices -%>
47 document.getElementsByClassName('brand')[0].style.setProperty("display", "block", "important");
48 </script>
49
50 <%+footer%>