summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorHorus32015-02-21 14:50:00 +0100
committerHorus32015-02-21 14:50:00 +0100
commitb58e21a525e7e4aeda3ec51bfcb07390af8be465 (patch)
tree9974d885ae2c81052e881e00207677e80d9f6fc7 /views
parentc92989a8fc738094b205094a1bdd458a40c23d9c (diff)
downloadstatuspage-b58e21a525e7e4aeda3ec51bfcb07390af8be465.tar.gz
Index page is now cached.
Diffstat (limited to 'views')
-rw-r--r--views/footer.html16
-rw-r--r--views/header.html14
-rw-r--r--views/index.html8
-rw-r--r--views/jobs.html10
-rw-r--r--views/navbar.html26
5 files changed, 41 insertions, 33 deletions
diff --git a/views/footer.html b/views/footer.html
index 408581d..7cc4a34 100644
--- a/views/footer.html
+++ b/views/footer.html
@@ -1,17 +1,17 @@
{{range .moreScripts}}
- <script src="/static/js/{{.}}" type="text/javascript" charset="utf-8"></script>
+ <script src='/static/js/{{.}}' type='text/javascript' charset='utf-8'></script>
{{end}}
-<div class="footer">
- <div class="container">
- <div class="row">
+<div class='footer'>
+ <div class='container'>
+ <div class='row'>
<footer>
- <p id="copyright-text" align='right'> Copyright 2015 <a class="footer-a" href="//www.iamfabulous.de" title="Maximilian Möhring">Maximilian M&ouml;hring</a></p>
+ <p id='copyright-text' align='right'> Copyright 2015 <a class='footer-a' href='//www.iamfabulous.de' title='Maximilian Möhring'>Maximilian M&ouml;hring</a></p>
</footer>
</div>
</div>
</div>
-<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
-<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script
-<!--script src="/static/js/bootstrap.js"></script-->
+<script src='//code.jquery.com/jquery-1.11.2.min.js'></script>
+<script src='//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js'></script>
+<!--script src='/static/js/bootstrap.js'></script-->
</body>
</html>
diff --git a/views/header.html b/views/header.html
index 2875487..694da63 100644
--- a/views/header.html
+++ b/views/header.html
@@ -2,16 +2,16 @@
<html>
<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
<title>{{.title}}</title>
- <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
- <!--link rel="stylesheet" type="text/css" href="/static/css/bootstrap.css"-->
- <link rel="stylesheet" type="text/css" href="/static/css/style.css">
- <link rel="shortcut icon" type="image/png" href="/static/img/favicon.ico">
+ <link rel='stylesheet' href='//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css'>
+ <!--link rel='stylesheet' type='text/css' href='/static/css/bootstrap.css'-->
+ <link rel='stylesheet' type='text/css' href='/static/css/style.css'>
+ <link rel='shortcut icon' type='image/png' href='/static/img/favicon.ico'>
{{range .moreStyles}}
- <link rel="stylesheet" type="text/css" href="/public/{{.}}">
+ <link rel='stylesheet' type='text/css' href='/public/{{.}}'>
{{end}}
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta name='viewport' content='width=device-width, initial-scale=1.0'>
<noscript>
<style>.navbar{margin-bottom:0;}</style>
</noscript>
diff --git a/views/index.html b/views/index.html
index e69de29..31ef3f2 100644
--- a/views/index.html
+++ b/views/index.html
@@ -0,0 +1,8 @@
+{{template "header.html"}}
+{{template "navbar.html"}}
+Hello World!
+
+{{range .}}
+Hier steht die Url: {{.Url}}
+{{end}}
+{{template "footer.html"}}
diff --git a/views/jobs.html b/views/jobs.html
index c0d68ac..9fdcbf7 100644
--- a/views/jobs.html
+++ b/views/jobs.html
@@ -1,9 +1,9 @@
{{template "header.html"}}
{{template "navbar.html"}}
-<form method="post" action="/new">
- <input type="text" name="Url" placeholder="domain">
- <!--input type="text" name="name" placeholder="name">
- <input type="hidden" name="private" value="0"-->
- <input type="submit">
+<form method='post' action='/new'>
+ <input type='text' name='Url' placeholder='domain'>
+ <!--input type='text' name='name' placeholder='name'>
+ <input type='hidden' name='private' value='0'-->
+ <input type='submit'>
</form>
{{template "footer.html"}}
diff --git a/views/navbar.html b/views/navbar.html
index 6cb06b6..317b564 100644
--- a/views/navbar.html
+++ b/views/navbar.html
@@ -1,21 +1,21 @@
-<nav class="navbar navbar-default navbar-custom" role="navigation">
- <div class="container">
- <div class="navbar-header">
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbarCollapse">
- <span class="sr-only">Toggle navigation</span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
+<nav class='navbar navbar-default navbar-custom' role='navigation'>
+ <div class='container'>
+ <div class='navbar-header'>
+ <button type='button' class='navbar-toggle' data-toggle='collapse' data-target='#navbarCollapse'>
+ <span class='sr-only'>Toggle navigation</span>
+ <span class='icon-bar'></span>
+ <span class='icon-bar'></span>
+ <span class='icon-bar'></span>
</button>
- <a class="navbar-brand" href="/"><span class="glyphicon glyphicon-home"></span> Home</a>
+ <a class='navbar-brand' href='/'><span class='glyphicon glyphicon-home'></span> Home</a>
</div>
- <div class="collapse navbar-collapse" id="navbarCollapse">
- <ul class="nav navbar-nav navbar-bar-left">
+ <div class='collapse navbar-collapse' id='navbarCollapse'>
+ <ul class='nav navbar-nav navbar-bar-left'>
<li>
- <a href="#" >About</a>
+ <a href='#' >About</a>
</li>
<li>
- <a href="#" >Something</a>
+ <a href='#' >Something</a>
</li>
</ul>
</div>