summaryrefslogtreecommitdiffstats
path: root/templates/base
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-03 23:24:29 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-03 23:24:29 +0800
commitfea660f1d787f353f06632982861000c9078da2e (patch)
treebf34f22c98551e7b0c5dbc4bc58e6bc0a20efba2 /templates/base
parentb73cf0ee77cf035b118315568c605f4f54fa81aa (diff)
parent39ac95e5a2f256a840dac6206623100a7688ac16 (diff)
downloadgitea-fea660f1d787f353f06632982861000c9078da2e.tar.gz
gitea-fea660f1d787f353f06632982861000c9078da2e.zip
merged
Diffstat (limited to 'templates/base')
-rw-r--r--templates/base/footer.tmpl7
-rw-r--r--templates/base/navbar.tmpl13
2 files changed, 15 insertions, 5 deletions
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl
index 4d4a7e5285..eaf5bd626e 100644
--- a/templates/base/footer.tmpl
+++ b/templates/base/footer.tmpl
@@ -1,2 +1,7 @@
- </body>
+<script>
+ $(function(){
+ initCore();
+ });
+</script>
+</body>
</html> \ No newline at end of file
diff --git a/templates/base/navbar.tmpl b/templates/base/navbar.tmpl
index 56d4a5794a..c4bd3a7a51 100644
--- a/templates/base/navbar.tmpl
+++ b/templates/base/navbar.tmpl
@@ -1,13 +1,18 @@
-<div class="gogs-masthead" id="masthead">
+<div class="gogs-masthead navbar navbar-fixed-top" id="masthead">
<div class="container">
<nav class="gogs-nav">
<a class="gogs-nav-item active" href="/"><img src="/img/favicon.png" alt="Gogs Logo" id="gogs-logo"></a>
<a class="gogs-nav-item" href="#">Dashboard</a>
<a class="gogs-nav-item" href="#">Explore</a>
<a class="gogs-nav-item" href="#">Help</a>
- <a class="gogs-nav-item navbar-right navbar-btn btn btn-danger" href="/repo/create">Create a repository</a>
- <a class="gogs-nav-item navbar-right navbar-btn btn btn-danger" href="/login/">Sign in</a>
- <!--<a class="gogs-nav-item navbar-right" href="#">Profile</a>-->
+
+ <!--<a class="gogs-nav-item navbar-right navbar-btn btn btn-danger" href="/login/">Sign in</a>-->
+ <a id="gogs-nav-out" class="gogs-nav-item navbar-right navbar-btn btn btn-danger" href="/login/"><i class="fa fa-power-off fa-lg"></i></a>
+ <a id="gogs-nav-avatar" class="gogs-nav-item navbar-right" href="/user/profile" data-toggle="tooltip" data-placement="bottom" title="Username">
+ <img src="http://1.gravatar.com/avatar/x?s=28" alt="user-avatar" title="username"/>
+ </a>
+ <a class="navbar-right gogs-nav-item" href="/repo/create" data-toggle="tooltip" data-placement="bottom" title="New Repository"><i class="fa fa-plus fa-lg"></i></a>
+ <a class="navbar-right gogs-nav-item" href="#" data-toggle="tooltip" data-placement="bottom" title="Setting"><i class="fa fa-cogs fa-lg"></i></a>
</nav>
</div>
</div>