<%#
Copyright (C) 2014 Routek S.L. <info@routek.net>
Contributors: Roger Pueyo Centelles <rogerpueyo@routek.net>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

The full GNU General Public License is included in this distribution in
the file called "COPYING".
-%>

<%
	luci.http.prepare_content("text/html")

	local location = { unpack(luci.dispatcher.context.path) }
	location[#location] = "topology"
%>

<%+header%>

<div id="ncui">

    <div id="graphSpace">
        <div id="graphSVG"></div>
        <div id="graphHint">
    	   Hint: click on a node to show its info. Double click to center it on the map and discover its neighbours.
        </div>

    </div>


    <div id="graphSidebar">
    	<div id="sidebarTitle"></div>
        <div id="sidebarMenu"></div>
    	<div id="sidebarContent"></div>
    </div>

    <div id="floatContent"></div>
</div>



<script type="text/javascript" src="<%=resource%>/nc/js/libs/d3.v3.min.js"></script>
<script type="text/javascript" src="<%=resource%>/nc/js/libs/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="<%=resource%>/nc/js/libs/jquery-ui.min.js"></script>
<script type="text/javascript" src="<%=resource%>/nc/js/libs/bootstrap.min.js"></script>
<script type="text/javascript" src="<%=resource%>/nc/js/libs/bootstrap-table.min.js"></script>

<script type="text/javascript">
    $('head').append('<link rel="stylesheet" href="<%=resource%>/nc/css/bootstrap-table.min.css" type="text/css" />');
    $('head').append('<link rel="stylesheet" href="<%=resource%>/nc/css/nc.css" type="text/css" />');
    //$('head').append('<link rel="stylesheet" href="http://localhost:12345/css/bootstrap-table.min.css" type="text/css" />');
    //$('head').append('<link rel="stylesheet" href="http://localhost:12345/css/nc.css" type="text/css" />');
</script>

<script type="text/javascript" src="<%=resource%>/nc/js/ncui-config.js"></script>
<script type="text/javascript" src="<%=resource%>/nc/js/ncui-utils.js"></script>
<script type="text/javascript" src="<%=resource%>/nc/js/ncui-system.js"></script>
<script type="text/javascript" src="<%=resource%>/nc/js/ncui-bmx6.js"></script>
<script type="text/javascript" src="<%=resource%>/nc/js/ncui-nettest.js"></script>
<script type="text/javascript" src="<%=resource%>/nc/js/ncui-nodes.js"></script>
<script type="text/javascript" src="<%=resource%>/nc/js/ncui-sidebar-content.js"></script>
<script type="text/javascript" src="<%=resource%>/nc/js/ncui-testing.js"></script>
<script type="text/javascript" src="<%=resource%>/nc/js/ncui-testing-advanced.js"></script>
<script type="text/javascript" src="<%=resource%>/nc/js/ncui-testing-basic.js"></script>
<script type="text/javascript" src="<%=resource%>/nc/js/ncui-testing-bmx6.js"></script>
<script type="text/javascript" src="<%=resource%>/nc/js/ncui-save.js"></script>
<script type="text/javascript" src="<%=resource%>/nc/js/ncui-sidebar-utils.js"></script>
<script type="text/javascript" src="<%=resource%>/nc/js/ncui-sidebar.js"></script>
<script type="text/javascript" src="<%=resource%>/nc/js/ncui-visualize.js"></script>
<script type="text/javascript" src="<%=resource%>/nc/js/ncui-links.js"></script>
<script type="text/javascript" src="<%=resource%>/nc/js/graph.js"></script>

<!--
<script type="text/javascript" src="http://localhost:12345/js/ncui-config.js"></script>
<script type="text/javascript" src="http://localhost:12345/js/ncui-utils.js"></script>
<script type="text/javascript" src="http://localhost:12345/js/ncui-system.js"></script>
<script type="text/javascript" src="http://localhost:12345/js/ncui-bmx6.js"></script>
<script type="text/javascript" src="http://localhost:12345/js/ncui-nettest.js"></script>
<script type="text/javascript" src="http://localhost:12345/js/ncui-nodes.js"></script>
<script type="text/javascript" src="http://localhost:12345/js/ncui-sidebar-content.js"></script>
<script type="text/javascript" src="http://localhost:12345/js/ncui-testing.js"></script>
<script type="text/javascript" src="http://localhost:12345/js/ncui-testing-advanced.js"></script>
<script type="text/javascript" src="http://localhost:12345/js/ncui-testing-basic.js"></script>
<script type="text/javascript" src="http://localhost:12345/js/ncui-testing-bmx6.js"></script>
<script type="text/javascript" src="http://localhost:12345/js/ncui-save.js"></script>
<script type="text/javascript" src="http://localhost:12345/js/ncui-sidebar-utils.js"></script>
<script type="text/javascript" src="http://localhost:12345/js/ncui-sidebar.js"></script>
<script type="text/javascript" src="http://localhost:12345/js/ncui-links.js"></script>
<script type="text/javascript" src="http://localhost:12345/js/ncui-visualize.js"></script>
<script type="text/javascript" src="http://localhost:12345/js/tests.json"></script>
<script type="text/javascript" src="http://localhost:12345/js/graph.js"></script>
-->
