|
| 1 | +<% |
| 2 | +local http = require("luci.http") |
| 3 | +http.prepare_content("text/html; charset=utf-8") |
| 4 | +-%> |
| 5 | +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 6 | +<!-- |
| 7 | + This file is part of YunWebUI. |
| 8 | +
|
| 9 | + YunWebUI is free software; you can redistribute it and/or modify |
| 10 | + it under the terms of the GNU General Public License as published by |
| 11 | + the Free Software Foundation; either version 2 of the License, or |
| 12 | + (at your option) any later version. |
| 13 | +
|
| 14 | + This program is distributed in the hope that it will be useful, |
| 15 | + but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | + GNU General Public License for more details. |
| 18 | +
|
| 19 | + You should have received a copy of the GNU General Public License |
| 20 | + along with this program; if not, write to the Free Software |
| 21 | + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 22 | +
|
| 23 | + As a special exception, you may use this file as part of a free software |
| 24 | + library without restriction. Specifically, if other files instantiate |
| 25 | + templates or use macros or inline functions from this file, or you compile |
| 26 | + this file and link it with other files to produce an executable, this |
| 27 | + file does not by itself cause the resulting executable to be covered by |
| 28 | + the GNU General Public License. This exception does not however |
| 29 | + invalidate any other reasons why the executable file might be covered by |
| 30 | + the GNU General Public License. |
| 31 | +
|
| 32 | + Copyright 2013 Arduino LLC (http://www.arduino.cc/) |
| 33 | +--> |
| 34 | +<html xmlns="http://www.w3.org/1999/xhtml"> |
| 35 | +<head> |
| 36 | + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
| 37 | + <meta name="viewport" content="initial-scale=1.0, user-scalable=no"/> |
| 38 | + <link rel="stylesheet" type="text/css" href="<%= resource %>/arduino/style.ugly.css"/> |
| 39 | + <title>Yún 云</title> |
| 40 | +</head> |
| 41 | +<body> |
| 42 | +<div id="container"> |
| 43 | + <div id="header"> |
| 44 | + <div class="wrapper"> |
| 45 | + <h1>Yún 云</h1> |
| 46 | + |
| 47 | + <div id="logo"><a href="<%= pcdata(controller .. '/webpanel') %>"><img src="<%= resource %>/arduino/logo.png" alt="Yún"/></a></div> |
| 48 | + <div id="logophone"><a href="<%= pcdata(controller .. '/webpanel') %>"><img src="<%= resource %>/arduino/logo_phone.png" alt="Yún"/></a></div> |
| 49 | + </div> |
| 50 | + </div> |
| 51 | + <div id="content"> |
| 52 | + <div class="wrapper divide"> |
| 53 | + <h2>Uploading sketch...</h2> |
| 54 | + </div> |
| 55 | + <div class="wrapper divide"> |
| 56 | + <% if string.len(merge_output) > 0 then %> |
| 57 | + <p>Error while merging sketch with bootloader</p> |
| 58 | + <textarea rows="5" readonly="readonly"><%= merge_output %></textarea> |
| 59 | + <% else %> |
| 60 | + <p>Merged sketch with bootloader.</p> |
| 61 | + <% end %> |
| 62 | + |
| 63 | + <% if string.len(kill_bridge_output) > 0 then %> |
| 64 | + <p>Error while killing bridge</p> |
| 65 | + <textarea rows="5" readonly="readonly"><%= kill_bridge_output %></textarea> |
| 66 | + <% else %> |
| 67 | + <p>Previously running Bridge terminated.</p> |
| 68 | + <% end %> |
| 69 | + |
| 70 | + <% if string.len(run_avrdude_output) > 0 then %> |
| 71 | + <p>Error while running avrdude</p> |
| 72 | + <textarea rows="5" readonly="readonly"><%= run_avrdude_output %></textarea> |
| 73 | + <% else %> |
| 74 | + <p>Sketch uploaded succesfully.</p> |
| 75 | + <% end %> |
| 76 | + </div> |
| 77 | + <div class="wrapper divide"> |
| 78 | + <form method="get" action="<%= pcdata(controller .. '/webpanel') %>"> |
| 79 | + <ul> |
| 80 | + <li> |
| 81 | + <div class="input_container"> |
| 82 | + <input class="btTxt submit saveForm" type="submit" name="button" value="Back to the homepage"> |
| 83 | + </div> |
| 84 | + </li> |
| 85 | + </ul> |
| 86 | + </form> |
| 87 | + </div> |
| 88 | + </div> |
| 89 | +</div> |
| 90 | +</body> |
| 91 | +</html> |
0 commit comments