# Call to get uptime info for template.
_UPTIME = %x[uptime]
# Call to get current date for template.
_DATE =%x[date +%Y-%m-%d]

# Main page.
%{
	<HTML> <HEAD> <!-- This HTML file has been created by a ruby servlet -->
	<TITLE>Camera Live View Interface</TITLE>
	<link rel="stylesheet" type="text/css" href="/style.css">
	<SCRIPT type="text/javascript">
	<!--
	function redirecter(){
		window.location = "/live"
	}
	//-->
	</SCRIPT>
	</HEAD>
	<BODY onLoad="setTimeout('redirecter()', 30000)">
	<TABLE border="1" cellpadding="5" >
		<TBODY>
			<TR>
				<TD align="center">
					<A HREF="/"><img src="ifetch.png" align="left" width=50 heigth=50></A>
					#{_DATE}
					#{_UPTIME}
					<BR>
					<a href="/archive" >Archive</a><FONT size=+2> (Live) </FONT><a href="/monitor" >Monitor</a>
				</TD>
			</TR>
		</TBODY>
	</TABLE>
	#{myTempRespond}
	<br>version: #{VER}
	</BODY>
	</HTML>
}
