commitb054119d9cAuthor: Oliver Gorwits <oliver@cpan.org> Date: Sun Mar 17 14:29:58 2013 +0000 hide Reports menu if there are no reports commitd86e670600Author: Oliver Gorwits <oliver@cpan.org> Date: Sun Mar 17 14:23:59 2013 +0000 add Report docs for developers commitee8351eb30Author: Oliver Gorwits <oliver@cpan.org> Date: Sun Mar 17 14:06:39 2013 +0000 split Plugin docs into user and developer pages commit5e4b8f3063Author: Oliver Gorwits <oliver@cpan.org> Date: Sun Mar 17 12:59:47 2013 +0000 add duplex report into default config commit8fd622f50cAuthor: Oliver Gorwits <oliver@cpan.org> Date: Sun Mar 17 12:56:51 2013 +0000 update query for duplex mismatch to check left and right are both not DOWN commit6d9170598cAuthor: Oliver Gorwits <oliver@cpan.org> Date: Mon Mar 11 23:10:38 2013 +0000 use the new duplex mismatch query in a template commit786977354bAuthor: Oliver Gorwits <oliver@cpan.org> Date: Mon Mar 11 22:54:21 2013 +0000 add VIEW for duplex mismatches commitf37ae8568eAuthor: Oliver Gorwits <oliver@cpan.org> Date: Mon Mar 11 22:54:01 2013 +0000 remove unecessary assign commit13af853582Author: Oliver Gorwits <oliver@cpan.org> Date: Sun Mar 10 23:40:53 2013 +0000 fixes to main app to support reports commit55a0f3d8dcAuthor: Oliver Gorwits <oliver@cpan.org> Date: Sun Mar 10 22:18:48 2013 +0000 also update fontawesome to match bootstrap version commit83a2c74242Author: Oliver Gorwits <oliver@cpan.org> Date: Sun Mar 10 22:07:23 2013 +0000 update bootstrap again, to include glyphicons with correct path commit25be8bfa92Author: Oliver Gorwits <oliver@cpan.org> Date: Sun Mar 10 19:27:37 2013 +0000 implement first report - duplex mismatch - as a placeholder only commit00265a9323Author: Oliver Gorwits <oliver@cpan.org> Date: Sun Mar 10 18:41:40 2013 +0000 report error on failure to load a plugin commitaf8f124bb2Author: Oliver Gorwits <oliver@cpan.org> Date: Sun Mar 10 18:37:19 2013 +0000 change id for tag in device and search tab plugins commitb818d4156fAuthor: Oliver Gorwits <oliver@cpan.org> Date: Sun Mar 10 18:29:57 2013 +0000 change id for tag in navbar plugins commitf513000f08Author: Oliver Gorwits <oliver@cpan.org> Date: Sun Mar 10 17:21:23 2013 +0000 implement register_report() and replace More menu with Reports menu commit4a16e3fde3Author: Oliver Gorwits <oliver@cpan.org> Date: Sun Mar 10 17:00:44 2013 +0000 Upgraded to Twitter Bootstrap 2.3.1 - customized for 13px font 18px line
		
			
				
	
	
		
			116 lines
		
	
	
		
			4.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			116 lines
		
	
	
		
			4.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 | 
						|
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 | 
						|
<html xmlns="http://www.w3.org/1999/xhtml">
 | 
						|
<head>
 | 
						|
  <meta http-equiv="Content-type" content="text/html; charset=[% settings.charset | html_entity %]" />
 | 
						|
  <link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon">
 | 
						|
  <title>Netdisco</title>
 | 
						|
 | 
						|
  <!-- HTML5 shim, for IE6-8 support of HTML elements -->
 | 
						|
  <!--[if lt IE 9]>
 | 
						|
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
 | 
						|
  <![endif]-->
 | 
						|
 | 
						|
  <script type="text/javascript" src="[% uri_base %]/javascripts/jquery-latest.min.js"></script>
 | 
						|
  <script type="text/javascript" src="[% uri_base %]/javascripts/jquery-history.js"></script>
 | 
						|
  <script type="text/javascript" src="[% uri_base %]/javascripts/jquery-deserialize.js"></script>
 | 
						|
  <script type="text/javascript" src="[% uri_base %]/javascripts/bootstrap.min.js"></script>
 | 
						|
  <script type="text/javascript" src="[% uri_base %]/javascripts/d3.min.js"></script>
 | 
						|
 | 
						|
  <script type="text/javascript">
 | 
						|
    var uri_base = '[% uri_base %]';
 | 
						|
  </script>
 | 
						|
 | 
						|
  <script type="text/javascript" src="[% uri_base %]/javascripts/netdisco.js"></script>
 | 
						|
 | 
						|
  [% IF vars.user.port_control %]
 | 
						|
  <script type="text/javascript" src="[% uri_base %]/javascripts/toastr.js"></script>
 | 
						|
  <script type="text/javascript" src="[% uri_base %]/javascripts/netdisco_portcontrol.js"></script>
 | 
						|
 | 
						|
  <link rel="stylesheet" href="[% uri_base %]/css/toastr.css"/>
 | 
						|
  [% END %]
 | 
						|
 | 
						|
  <link rel="stylesheet" href="[% uri_base %]/css/bootstrap.min.css"/>
 | 
						|
  <link rel="stylesheet" href="[% uri_base %]/css/font-awesome.min.css"/>
 | 
						|
  <link rel="stylesheet" href="[% uri_base %]/css/netdisco.css"/>
 | 
						|
  <link rel="stylesheet" href="[% uri_base %]/css/nd_print.css" media="print"/>
 | 
						|
</head>
 | 
						|
 | 
						|
<body>
 | 
						|
[%
 | 
						|
  user_dd = [
 | 
						|
    { "title" = "Settings", "link" = "/settings" },
 | 
						|
    { "title" = "Help", "link" = "/help" },
 | 
						|
    { "title" = "Log Out", "link" = "/logout" }
 | 
						|
  ]
 | 
						|
%]
 | 
						|
 | 
						|
<div class="navbar navbar-inverse navbar-fixed-top">
 | 
						|
  <div class="navbar-inner">
 | 
						|
    <div class="container">
 | 
						|
      <a class="brand" href="[% uri_for('/') %]">Netdisco</a>
 | 
						|
      [% IF session.user %]
 | 
						|
      <ul class="nav">
 | 
						|
        [% FOREACH ni IN settings.navbar_items %]
 | 
						|
        <li[% ' class="active"' IF vars.nav == ni.tag %]>
 | 
						|
          <a href="[% uri_for(ni.path) %]">[% ni.label | html_entity %]</a>
 | 
						|
        </li>
 | 
						|
        [% END %]
 | 
						|
        [% IF settings.reports.size %]
 | 
						|
        <li class="dropdown[% ' active' IF vars.nav == 'reports' %]">
 | 
						|
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">Reports <b class="caret"></b></a>
 | 
						|
          <ul class="dropdown-menu">
 | 
						|
          [% FOREACH category IN settings.report_order %]
 | 
						|
            [% IF settings.reports_menu.$category.size %]
 | 
						|
            <li class="dropdown-submenu">
 | 
						|
            <a href="#">[% category | html_entity %]</a>
 | 
						|
              <ul class="dropdown-menu">
 | 
						|
              [% FOREACH item IN settings.reports_menu.$category %]
 | 
						|
                <li><a href="[% uri_for('/report/' _ item) %]">[% settings.reports.$item.label | html_entity %]</a></li>
 | 
						|
              [% END %]
 | 
						|
              </ul>
 | 
						|
            </li>
 | 
						|
            [% END %]
 | 
						|
          [% END %]
 | 
						|
          </ul>
 | 
						|
        </li> <!-- /dropdown -->
 | 
						|
        [% END %]
 | 
						|
      </ul>
 | 
						|
      <form class="navbar-search pull-left" method="get" action="[% uri_for('/search') %]">
 | 
						|
        <input placeholder="Find Anything" class="search-query span3"
 | 
						|
          id="nq" name="q" type="text" autocomplete="off"/>
 | 
						|
        <span style="font-size: 24px;">
 | 
						|
        <i id="navsearchgo" class="icon-search navbar_icon"></i>
 | 
						|
        </span>
 | 
						|
      </form>
 | 
						|
      <ul class="nav pull-right">
 | 
						|
        <li class="nd_navbartext">Logged in as  </li>
 | 
						|
        <li class="dropdown">
 | 
						|
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">
 | 
						|
          [% IF vars.user.port_control %]
 | 
						|
            <i class="icon-user-md"></i>
 | 
						|
          [% ELSE %]
 | 
						|
            <i class="icon-user"></i>
 | 
						|
          [% END %]
 | 
						|
            [% session.user | html_entity %] <b class="caret"></b></a>
 | 
						|
          <ul class="dropdown-menu">
 | 
						|
            [% FOREACH item IN user_dd %]
 | 
						|
            <li><a href="[% uri_for(item.link) %]">[% item.title | html_entity %]</a></li>
 | 
						|
            [% END %]
 | 
						|
          </ul>
 | 
						|
        </li> <!-- /dropdown -->
 | 
						|
      </ul>
 | 
						|
      [% END %]
 | 
						|
    </div>
 | 
						|
  </div>
 | 
						|
</div>
 | 
						|
 | 
						|
[% content %]
 | 
						|
 | 
						|
<script type="text/javascript">
 | 
						|
[%+ INCLUDE 'js/common.js' -%]
 | 
						|
</script>
 | 
						|
 | 
						|
</body>
 | 
						|
</html>
 |