<!DOCTYPE html>
<html ng-app="gotraceback">
<head>
<script src="angular.min.js"></script>
<script src="angular-cookies.min.js"></script>
<script src="bootstrap.min.js"></script>
<link rel="stylesheet" href="bootstrap.min.css">

<script src="gotraceback.js"></script>
</head>

<body ng-controller="TracebackCtrl">
<h1>Golang Stacktrace / Traceback Analyzer</h1>
<p>Your godoc URL: <input type="url" ng-model="godocURL" size="32"></input></p>
<form method="POST" novalidate class="simple-form">
<table><tr><td>
	<textarea ng-model="traceback" cols="100" rows="30"></textarea>
</td><td>
	<textarea ng-model="result" ng-show="result" cols="100" rows="30"></textarea>
</td></tr></table>
<select ng-model="format" ng-init="format = 'pretty'">
	<option value="pretty">Pretty</option>
	<option value="text">Text</option>
	<option value="json">JSON</option>
</select>
	<button ng-click="analyze(traceback, format)">analyze</button>
</form>
<!--
<div ng-model="result" ng-show="result">
	<h2>Reason: {{result.Reason}}</h2>
	<ul ng-repeat="s in result.Stacks">
		<li>
		<h3>ID:{{s.ID}} Status: {{s.Status}}</h3>
		<ul ng-repeat="c in s.Calls">
			<li><a href="{{godocURL}}/src/pkg/{{c.Source}}#L{{c.Line}}">{{c.Func}}</a> {{c.Source}} {{c.Line}} {{c.Args}}</li>
		</ul>
		</li>
	</ul>
</div>
-->
<div id="footer">
	Powered by <a href="https://github.com/t-yuki/gotfmt">github.com/t-yuki/gotfmt/</a>
</div>
</body>
</html>
