add About page (jeneric) with system stats
Squashed commit of the following: commit f53b3778de8dc529c0d161a9339ad14e21294802 Author: Eric A. Miller <emiller@cpan.org> Date: Sun Sep 8 21:05:39 2013 -0400 remove header from statistics table commit fa69b1b5900444ca5320502d8c22ecd7ee21df45 Author: Eric A. Miller <emiller@cpan.org> Date: Sun Sep 8 21:00:02 2013 -0400 about page - software and statistics
This commit is contained in:
		
							
								
								
									
										79
									
								
								Netdisco/share/views/about.tt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										79
									
								
								Netdisco/share/views/about.tt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,79 @@ | ||||
| <div class="container"> | ||||
|   <div class="row nd_hero-row"> | ||||
|       <div class="hero-unit"> | ||||
|         <h2>About Netdisco</h2> | ||||
|         <small>Netdisco is a web-based network management tool designed for | ||||
|         network administrators.  Data is collected into a Postgres database | ||||
|         using SNMP.</small> | ||||
|       </div> | ||||
|     <div class="row"> | ||||
|       <div class="span5 offset1"> | ||||
|       <h4>Built using Open Source</h4> | ||||
|         <table class="table table-condensed"> | ||||
|           <thead> | ||||
|             <tr> | ||||
|               <th>Software</th> | ||||
|               <th>Version</th> | ||||
|             </tr> | ||||
|           </thead> | ||||
|           <tbody> | ||||
|             <tr> | ||||
|               <th><b><a href="http://netdisco.org">App::Netdisco</a></b></th> | ||||
|               <th>[% disco_ver | html_entity %]</th> | ||||
|             </tr> | ||||
|             <tr> | ||||
|               <th><a href="http://http://perldancer.org/">Dancer</a></th> | ||||
|               <th>[% dancer_ver | html_entity %]</th> | ||||
|             </tr> | ||||
|             <tr> | ||||
|               <th><a href="http://www.perl.org">Perl</a></th> | ||||
|               <th>[% perl_ver | html_entity %]</th> | ||||
|             </tr> | ||||
|             <tr> | ||||
|               <th><a href="http://www.postgresql.org">PostgreSQL</a></th> | ||||
|               <th> | ||||
|                 [% db_version| html_entity %] DBI [% dbi_ver | html_entity %] | ||||
|                 DBD::Pg [% dbdpg_ver | html_entity %] | ||||
|               </th> | ||||
|             </tr> | ||||
|             <tr> | ||||
|               <th><a href="http://getbootstrap.com">Bootstrap</a></th> | ||||
|               <th>[% # Can't determine magically %] 2.3.1</th> | ||||
|             </tr> | ||||
|             <tr> | ||||
|               <th><a href="http://http://snmp-info.sourceforge.net/">SNMP::Info</a></th> | ||||
|               <th>[% # Don't want to load in web to get version %]</th> | ||||
|             </tr> | ||||
|           </tbody> | ||||
|         </table> | ||||
|       </div> | ||||
|       <div class="span5"> | ||||
|       <h4>Statistics for this installation</h4> | ||||
|         <table class="table table-condensed"> | ||||
|           <thead> | ||||
|             <tr> | ||||
|               <th></th> | ||||
|             </tr> | ||||
|           </thead> | ||||
|           <tbody> | ||||
|             <tr> | ||||
|               <th>[% device_count %] devices with [% device_port_count %] interfaces | ||||
|                   using [% device_count + device_ip_count %] IPs</th> | ||||
|             </tr> | ||||
|             <tr> | ||||
|               <th>[% device_links %] layer 2 links between devices.</th> | ||||
|             </tr> | ||||
|             <tr> | ||||
|               <th>[% node_count %] nodes in [% node_table_count %] entries. </th> | ||||
|             </tr> | ||||
|             <tr> | ||||
|               <th>[% ip_count %] IPs in [% ip_table_count %] entries.</th> | ||||
|             </tr> | ||||
|             <tr> | ||||
|               <th>Statistics took [% process_time %] seconds to process.</th> | ||||
|             </tr> | ||||
|           </tbody> | ||||
|         </table> | ||||
|       </div> | ||||
|     </div> | ||||
| </div> <!-- /container --> | ||||
| @@ -132,14 +132,13 @@ | ||||
|           [% ELSE %] | ||||
|             <i class="icon-user"></i> | ||||
|           [% END %]  | ||||
|           [% IF NOT settings.no_auth %] | ||||
|             [% session.logged_in_user | html_entity %] <b class="caret"></b></a> | ||||
|             <ul class="dropdown-menu"> | ||||
|           [% IF NOT settings.no_auth %] | ||||
|               <li><a href="[% uri_for('/logout') %]">Log Out</a></li> | ||||
|             </ul> | ||||
|           [% ELSE %] | ||||
|             [% session.logged_in_user | html_entity %]</a> | ||||
|           [% END %] | ||||
|               <li><a href="[% uri_for('/about') %]">About</a></li> | ||||
|           </ul> | ||||
|         </li> <!-- /dropdown --> | ||||
|       </ul> | ||||
|       [% END %] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user