Starting Web Server work

Fixed some issues with stat adding.
This commit is contained in:
2015-10-29 11:16:25 -05:00
parent 12ae393998
commit d5947f745f
14 changed files with 936 additions and 91 deletions

1
templates/footer.html Normal file
View File

@@ -0,0 +1 @@
</div>

8
templates/header.html Normal file
View File

@@ -0,0 +1,8 @@
<div class="content">
<aside class="center {{ .Flash.Status }}">
{{ .Flash.Message }}
</aside>
<div class="header">
<h1>{{.Title}}</h1>
<h2>{{.SubTitle}}</h2>
</div>

View File

@@ -0,0 +1,7 @@
</div>
<!-- TODO: Add Dynamic Scripts -->
{{ range $i, $v := .Scripts }}
<script src="{{ $v }}"></script>
{{ end }}
</body>
</html>

21
templates/htmlheader.html Normal file
View File

@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta http-equiv="Cache-control" content="No-Cache">
<title>{{.Title}}</title>
<!--[if lt IE 9]>
<script src="http://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7/html5shiv.js"></script>
<![endif]-->
{{ range $i, $v := .Stylesheets }}
<link rel="stylesheet" href="{{ $v }}">
{{ end }}
</head>
<body>
<div id="layout">

24
templates/menu.html Normal file
View File

@@ -0,0 +1,24 @@
<!-- Menu Toggle -->
<a id="menuLink" class="menu-link" href="#menu">
<!-- Hamburger icon -->
<span></span>
</a>
<div id="menu">
<div class="pure-menu">
<a class="pure-menu-heading" href="/">{{.Title}}</a>
<ul class="pure-menu-list">
{{ range $i, $v := .Menu }}
<li class="pure-menu-item {{ if $v.Active }} pure-menu-selected {{ end }}">
<a class="pure-menu-link" href="{{ $v.Link }}">{{ $v.Text }}</a>
</li>
{{ end }}
</ul>
<ul class="pure-menu-list menu-list-dropped">
{{ range $i, $v := .BottomMenu }}
<li class="pure-menu-item {{ if $v.Active }} pure-menu-selected {{ end }}">
<a class="pure-menu-link" href="{{ $v.Link }}">{{ $v.Text }}</a>
</li>
{{ end }}
</ul>
</div>
</div>

3
templates/stats.html Normal file
View File

@@ -0,0 +1,3 @@
<div>
devICT Slack Statistics!
</div>