{{ define "memu" }}
<aside class="main-sidebar">
    <section class="sidebar">
      <ul class="sidebar-menu" data-widget="tree">
        <li class="header">HEADER</li>
        <!-- Optionally, you can add icons to the links -->
		<li class="treeview">
          	<a href="#"><i class="fa fa-clock-o"></i> <span>任务管理</span>
            <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
            </span>
          	</a>
          	<ul class="treeview-menu">
	            <li><a href="/admin/task"><i class="fa fa-link"></i>抽取任务</a></li>
				<li><a href="/admin/task/export"><i class="fa fa-link"></i>导出任务</a></li>
			</ul>
        </li>
		<li><a href="/admin/version"><i class="fa fa-navicon"></i><span>版本管理</span></a></li>
		<li><a href="/admin/audit/recogfield"><i class="fa fa-navicon"></i><span>质量审核</span></a></li>
		<li class="treeview">
          	<a href="#"><i class="fa fa-laptop"></i> <span>统计</span>
            <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
            </span>
          	</a>
          	<ul class="treeview-menu">
	            <li><a href="/admin/rule/pre"><i class="fa fa-circle-o"></i>菜单</a></li>
			</ul>
        </li>
		<li><a href="/admin/resulttrack"><i class="fa fa-laptop"></i>结果追踪</a></li>
        <li><a href="/admin/distribution"><i class="fa fa-laptop"></i> <span>分布式抽取</span></a></li>
		<li><a href="/admin/user"><i class="fa fa-link"></i> <span>人员管理</span></a></li>
      </ul>
    </section>
</aside>
<script>
function menuActive(name){
	$(".sidebar-menu").tree();
	$(".sidebar-menu").filter(".menu-open").removeClass("menu-open");
	$(".sidebar-menu").filter(".active").removeClass("active");
	var a;
	$(".sidebar-menu a").each(function(i){
		if($(this).attr("href").endsWith(name)){
			a=$(this)
		}
	});
	a.parent().addClass("active");
	a.parent().parent().parent().addClass("active");
	a.parent().parent().parent().addClass("menu-open");
}
</script>
{{ end }}