Code

Added support for looking up other object types besides hosts.
[sysdb/webui.git] / templates / main.tmpl
1 <!DOCTYPE html>
2 <html xmlns="http://www.w3.org/1999/xhtml"
3       itemscope itemtype="http://schema.org/Product">
4 <head>
5         <title>{{.Title}}</title>
7         <meta name="author" content="Copyright (C) 2014 Sebastian ‘tokkee’ Harl" />
8         <meta itemprop="name" content="SysDB">
9         <meta itemprop="description" content="The System Database">
11         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
13         <link rel="stylesheet" href="/style/main.css" type="text/css" />
14         <link rel="icon" href="/images/favicon.png" type="images/png" />
15 </head>
17 <body>
18         <header>
19                 <div class="topmenu">
20                         <a href="https://sysdb.io">SysDB</a>
21                 </div>
22                 <div class="searchbar">
23                         <div class="logo">
24                                 <a href="/"><img src="/images/owl.png" alt="[SysDB]" class="logo" /></a>
25                         </div>
27                         <div class="searchbox">
28                                 <form action="/lookup" method="POST">
29                                         <input type="text" name="query" value="{{.Query}}" placeholder="Search objects"
30                                                 required /><button type="submit">GO</button>
31                                 </form>
32                         </div>
33                 </div>
34         </header>
36         <div class="main">
37                 <aside><nav>
38                         <a href="/hosts">Hosts</a>
39                         <a href="/services">Services</a>
40                         <a href="/metrics">Metrics</a>
41                 </nav></aside>
43                 <div class="content">
44 {{.Content}}
45                 </div>
46         </div>
47 </body>
48 </html>