diff --git a/index.go b/index.go
index 79d9227..e33a726 100644
--- a/index.go
+++ b/index.go
@@ -10,7 +10,7 @@ var FoundHosts []Host
func index (w http.ResponseWriter, r *http.Request) {
fmt.Println(FoundHosts)
- tmpl, _ := template.ParseFiles("templates/index.html")
+ tmpl, _ := template.ParseFiles("templates/index.html", "templates/header.html")
tmpl.ExecuteTemplate(w, "index", FoundHosts)
}
diff --git a/templates/header.html b/templates/header.html
new file mode 100644
index 0000000..6be2333
--- /dev/null
+++ b/templates/header.html
@@ -0,0 +1,10 @@
+{{ define "header"}}
+
+
+ Watch Your LAN
+
+
+
+
+
+{{ end }}
\ No newline at end of file
diff --git a/templates/index.html b/templates/index.html
index 7408418..d7d5038 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,27 +1,50 @@
{{ define "index"}}
-
-
- Watch Your LAN
-
-
-
+
+{{ template "header" }}
+
-
-
- | Name |
- Ip |
- Mac |
- Hardware |
-
- {{ range . }}
-
- | {{ .Name }} |
- {{ .Ip }} |
- {{ .Mac }} |
- {{ .Hw }} |
-
- {{ end }}
-
+
+
Now online
+
+
+ | Name |
+ Ip |
+ Mac |
+ Hardware |
+ Known |
+
+ {{ range . }}
+
+ | {{ .Name }} |
+ {{ .Ip }} |
+ {{ .Mac }} |
+ {{ .Hw }} |
+ {{ .Known }} |
+
+ {{ end }}
+
+
Log
+
+
+ | Name |
+ Ip |
+ Mac |
+ Hardware |
+ Date |
+ Known |
+
+ {{ range . }}
+
+ | {{ .Name }} |
+ {{ .Ip }} |
+ {{ .Mac }} |
+ {{ .Hw }} |
+ {{ .Date }} |
+ {{ .Known }} |
+
+ {{ end }}
+
+
{{ end }}
\ No newline at end of file