<!DOCTYPE html> 
<html>
	<head>
#parse( "azkaban/webapp/servlet/velocity/style.vm" )
		<script type="text/javascript" src="${context}/js/jquery/jquery.js"></script>    
		<script type="text/javascript" src="${context}/js/jqueryui/jquery-ui.custom.min.js"></script>   
		<script type="text/javascript" src="${context}/js/namespace.js"></script>
		<script type="text/javascript" src="${context}/js/underscore-1.2.1-min.js"></script>
		<script type="text/javascript" src="${context}/js/backbone-0.5.3-min.js"></script>
		<script type="text/javascript" src="${context}/js/jquery.simplemodal.js"></script>
		<script type="text/javascript" src="${context}/js/jquery.contextMenu.js"></script>
		<script type="text/javascript" src="${context}/js/azkaban.nav.js"></script>
		<script type="text/javascript" src="${context}/js/azkaban.layout.js"></script>
		<script type="text/javascript" src="${context}/js/azkaban.flow.view.js"></script>
		<script type="text/javascript" src="${context}/js/svgNavigate.js"></script>
		<script type="text/javascript">
			var contextURL = "${context}";
			var currentTime = ${currentTime};
			var timezone = "${timezone}";
			var errorMessage = "${error_message}";
			var successMessage = "${success_message}";
			
			var projectName = "${project.name}";
			var flowName = "${flowid}";
		</script>
		<link rel="stylesheet" type="text/css" href="${context}/css/jquery.contextMenu.custom.css" /> 
	</head>
	<body>
#set($current_page="all")
#parse( "azkaban/webapp/servlet/velocity/nav.vm" )
		<div class="messaging"><p id="messageClose">X</p><p id="message"></p></div>  
		<div class="content">
#if($errorMsg)
				<div class="box-error-message">$errorMsg</div>
#else
#if($error_message != "null")
				<div class="box-error-message">$error_message</div>
#elseif($success_message != "null")
				<div class="box-success-message">$success_message</div>
#end

				<div id="all-jobs-content">
					<div class="section-hd">
						<h2><a href="${context}/manager?project=${project.name}&flow=${flowid}">Flow <span>$flowid</span></a></h2>
						<div class="section-sub-hd">
							<h4><a href="${context}/manager?project=${project.name}">Project <span>$project.name</span></a></h4>
						</div>
						
						<div id="executebtn" class="btn1">Execute</div>
						<div id="schedulebtn" class="btn2">Schedule Flow</div>
					</div>
					
					<div id="headertabs" class="headertabs">
						<ul>
							<li><a id="graphViewLink" href="#graph">Graph</a></li>
							<li class="lidivider">|</li>
							<li><a id="executionsViewLink" href="#executions">Executions</a></li>
						</ul>
					</div>
					<div id="graphView">
						<div class="relative">
							<div id="jobList">
								<div id="filterList">
									<input id="filter" placeholder="  Job Filter" />
								</div>
								<div id="list">
								</div>
								<div id="resetPanZoomBtn" class="btn5" >Reset Pan Zoom</div>
							</div>
							<div id="svgDiv" >
								<svg id="svgGraph" xmlns="http://www.w3.org/2000/svg" version="1.1" shape-rendering="optimize-speed" text-rendering="optimize-speed" >
								</svg>
							</div>
						</div>
					</div>
					<div id="executionsView">
						<div id="executionDiv" class="all-jobs">
							<table id="execTable">
								<thead>
									<tr>
										<th>Execution Id</th>
										<th>User</th>
										<th>Start Time</th>
										<th>End Time</th>
										<th>Elapsed</th>
										<th>Status</th>
										<th>Action</th>
									</tr>
								</thead>
								<tbody id="execTableBody">
								</tbody>
							</table>
						</div>
					
						<div id="pageSelection">
							<ul>
								<li id="previous" class="first"><a><span class="arrow">&larr;</span>Previous</a></li>
								<li id="page1"><a href="#page1">1</a></li>
								<li id="page2"><a href="#page2">2</a></li>
								<li id="page3"><a href="#page3">3</a></li>
								<li id="page4"><a href="#page4">4</a></li>
								<li id="page5"><a href="#page5">5</a></li>
								<li id="next"><a>Next<span class="arrow">&rarr;</span></a></li>
							</ul>
						</div>
					</div>
				</div>
#end
		<ul id="jobMenu" class="contextMenu">  
			<li class="open"><a href="#open">Open...</a></li>
			<li class="openwindow"><a href="#openwindow">Open in New Window...</a></li>
			<li class="enable separator"><a href="#enable">Enable</a></li>
			<li class="disable"><a href="#disable">Disable</a></li>
		</ul>

		</div>
	</body>
</html>

