summaryrefslogtreecommitdiffstats
path: root/templates/base
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-02-14 20:14:22 -0500
committerUnknown <joe2010xtmf@163.com>2014-02-14 20:14:22 -0500
commitb1c5adc2f206b855ccf19eaf492fd86a86e2befc (patch)
tree014dc7adb77b4670bc4254738dec561c4e7035ef /templates/base
parent8ef198dface6a4e7b851ea495e236450f40ad1dc (diff)
downloadgitea-b1c5adc2f206b855ccf19eaf492fd86a86e2befc.tar.gz
gitea-b1c5adc2f206b855ccf19eaf492fd86a86e2befc.zip
Setup templates structure
Diffstat (limited to 'templates/base')
-rw-r--r--templates/base/base.tmpl17
-rw-r--r--templates/base/footer.tmpl0
-rw-r--r--templates/base/head.tmpl14
-rw-r--r--templates/base/navbar.tmpl18
4 files changed, 47 insertions, 2 deletions
diff --git a/templates/base/base.tmpl b/templates/base/base.tmpl
index 2a28b79114..f75230d9af 100644
--- a/templates/base/base.tmpl
+++ b/templates/base/base.tmpl
@@ -1,2 +1,15 @@
-this is base.html
-Hello world! \ No newline at end of file
+<!DOCTYPE html>
+<html>
+ <head>
+ {{template "base/head" .}}
+ {{template "head" .}}
+ </head>
+ <body>
+ <noscript>Please enable JavaScript in your browser!</noscript>
+ {{template "base/navbar" .}}
+ <div class="container">
+ {{template "body" .}}
+ </div>
+ {{template "base/footer" .}}
+ </body>
+</html> \ No newline at end of file
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/templates/base/footer.tmpl
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl
new file mode 100644
index 0000000000..71c0713963
--- /dev/null
+++ b/templates/base/head.tmpl
@@ -0,0 +1,14 @@
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<link rel="shortcut icon" href="img/favicon.png" />
+<meta name="author" content="Gogs - Go Git Service" />
+<meta name="description" content="Gogs(Go Git Service) is a GitHub-like clone in the Go Programming Language" />
+<meta name="keywords" content="go, git">
+
+ <!-- Stylesheets -->
+<link href="css/bootstrap.min.css" rel="stylesheet" />
+<link href="css/todc-bootstrap.min.css" rel="stylesheet" />
+<link href="css/font-awesome.min.css" rel="stylesheet" />
+<link href="css/gogs.css" rel="stylesheet" />
+
+<script src="js/jquery-1.10.1.min.js"></script>
+<script src="js/bootstrap.min.js"></script> \ No newline at end of file
diff --git a/templates/base/navbar.tmpl b/templates/base/navbar.tmpl
new file mode 100644
index 0000000000..79ba1ac535
--- /dev/null
+++ b/templates/base/navbar.tmpl
@@ -0,0 +1,18 @@
+<nav class="navbar navbar-inverse navbar-fixed-top">
+ <div class="container">
+ <div class="navbar-header">
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#gogs-navbar-collapse">
+ <i class="fa fa-bars"></i>
+ </button>
+ <a class="navbar-brand" href="/"><img src="img/favicon.png" alt="Gogs Logo"></a>
+ </div>
+
+ <div class="collapse navbar-collapse" id="gopmweb-navbar-collapse">
+ <ul class="nav navbar-nav">
+ <li><a>{{.Title}}</a></li>
+ </ul>
+
+ <a href="/login" class="navbar-right btn btn-success navbar-btn">Log In</a>
+ </div>
+ </div>
+</nav>