summaryrefslogtreecommitdiffstats
path: root/templates/ng
diff options
context:
space:
mode:
Diffstat (limited to 'templates/ng')
-rw-r--r--templates/ng/base/alert.tmpl2
-rw-r--r--templates/ng/base/footer.tmpl27
-rw-r--r--templates/ng/base/head.tmpl30
-rw-r--r--templates/ng/base/header.tmpl58
-rw-r--r--templates/ng/base/social.tmpl4
5 files changed, 121 insertions, 0 deletions
diff --git a/templates/ng/base/alert.tmpl b/templates/ng/base/alert.tmpl
new file mode 100644
index 0000000000..df14d3c3bf
--- /dev/null
+++ b/templates/ng/base/alert.tmpl
@@ -0,0 +1,2 @@
+{{if .Flash.ErrorMsg}}<span class="alert alert-red alert-radius block text-bold"><i class="octicon octicon-alert"></i>{{.Flash.ErrorMsg}}</span>{{end}}
+{{if .Flash.SuccessMsg}}<div class="alert alert-green alert-radius block"><i class="octicon octicon-check"></i>{{.Flash.SuccessMsg}}</div>{{end}} \ No newline at end of file
diff --git a/templates/ng/base/footer.tmpl b/templates/ng/base/footer.tmpl
new file mode 100644
index 0000000000..734533a108
--- /dev/null
+++ b/templates/ng/base/footer.tmpl
@@ -0,0 +1,27 @@
+ </div>
+ <footer id="footer">
+ <div class="container clear">
+ <p class="left" id="footer-rights">© 2014 GoGits · {{.i18n.Tr "version"}}: {{AppVer}} · {{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong> ·
+ {{.i18n.Tr "template"}}: <strong>{{call .TmplLoadTimes}}</strong></p>
+
+ <div class="right" id="footer-links">
+ <a target="_blank" href="https://github.com/gogits/gogs"><i class="fa fa-github-square"></i></a>
+ <a target="_blank" href="https://twitter.com/gogitservice"><i class="fa fa-twitter"></i></a>
+ <a target="_blank" href="https://plus.google.com/communities/115599856376145964459"><i class="fa fa-google-plus"></i></a>
+ <a target="_blank" href="http://weibo.com/gogschina"><i class="fa fa-weibo"></i></a>
+ <div id="footer-lang" class="inline drop drop-top">{{.i18n.Tr "language"}}
+ <div class="drop-down">
+ <ul class="menu menu-vertical switching-list">
+ {{range .AllLangs}}
+ <li><a href="{{if eq $.Lang .Lang}}#{{else}}{{$.Link}}?lang={{.Lang}}{{end}}">{{.Name}}</a></li>
+ {{end}}
+ </ul>
+ </div>
+ </div>
+ <a target="_blank" href="http://gogs.io">{{.i18n.Tr "website"}}</a>
+ <span class="version">{{GoVer}}</span>
+ </div>
+ </div>
+ </footer>
+ </body>
+</html> \ No newline at end of file
diff --git a/templates/ng/base/head.tmpl b/templates/ng/base/head.tmpl
new file mode 100644
index 0000000000..0cd7686ffb
--- /dev/null
+++ b/templates/ng/base/head.tmpl
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
+ <meta name="author" content="Gogs - Go Git Service" />
+ <meta name="description" content="Gogs(Go Git Service) a painless self-hosted Git Service written in Go" />
+ <meta name="keywords" content="go, git, self-hosted, gogs">
+
+ <link rel="shortcut icon" href="/img/favicon.png" />
+
+ <!-- Stylesheet -->
+ <link rel="stylesheet" href="/ng/css/ui.css">
+ <link rel="stylesheet" href="/ng/css/gogs.css">
+ <link rel="stylesheet" href="/ng/css/font-awesome.min.css">
+ <link rel="stylesheet" href="/ng/fonts/octicons.css">
+ <!-- <link rel="stylesheet" href="http://cdn.bootcss.com/highlight.js/8.1/styles/github.min.css"> -->
+ <link rel="stylesheet" href="/ng/css/github.min.css">
+
+ <!-- JavaScript -->
+ <script src="/ng/js/lib/jquery-1.11.1.min.js"></script>
+ <script src="/ng/js/lib/tabs.js"></script>
+ <script src="/ng/js/lib/lib.js"></script>
+ <script src="/ng/js/gogs.js"></script>
+
+ <title>{{if .Title}}{{.Title}} - {{end}}{{AppName}}</title>
+ </head>
+ <body>
+ <div id="wrapper">
+ <noscript>Please enable JavaScript in your browser!</noscript> \ No newline at end of file
diff --git a/templates/ng/base/header.tmpl b/templates/ng/base/header.tmpl
new file mode 100644
index 0000000000..ce1e170319
--- /dev/null
+++ b/templates/ng/base/header.tmpl
@@ -0,0 +1,58 @@
+<header id="header">
+ <ul class="menu menu-line container" id="header-nav">
+ {{if not .PageIsHome}}
+ <li class="head" id="header-nav-logo">
+ <img src="/img/favicon.png" alt="avatar" class="avatar-30"/>
+ </li>
+ <li {{if .PageIsDashboard}}class="current"{{end}}>
+ <a href="/">{{if .IsSigned}}{{.i18n.Tr "dashboard"}}{{else}}{{.i18n.Tr "home"}}{{end}}</a>
+ </li>
+ <li><a href="/explore">{{.i18n.Tr "explore"}}</a></li>
+ <li><a target="_blank" href="http://gogs.io/docs">{{.i18n.Tr "help"}}</a></li>
+ {{end}}
+
+ {{if .IsSigned}}
+ <li class="right" id="header-nav-sign-out">
+ <a href="/user/logout" title="{{.i18n.Tr "sign_out"}}"><i class="octicon octicon-sign-out"></i></a>
+ </li>
+ <li class="right {{if .PageIsUserSettings}}current{{end}}">
+ <a href="/user/settings" title="{{.i18n.Tr "account_settings"}}"><i class="octicon octicon-settings"></i></a>
+ </li>
+ {{if .IsAdmin}}
+ <li class="right">
+ <a href="/admin" title="{{.i18n.Tr "admin_panel"}}"><i class="octicon octicon-circuit-board"></i></a>
+ </li>
+ {{end}}
+ <li class="right down">
+ <a href="#"><i class="octicon octicon-plus"></i></a>
+ <ul class="menu menu-down" id="header-new-repo-menu">
+ <li><a href="/repo/create"><i class="octicon octicon-repo-create"></i>{{.i18n.Tr "new_repo"}}</a></li>
+ <li><a href="/repo/migrate"><i class="octicon octicon-repo-clone"></i>{{.i18n.Tr "new_migrate"}}</a></li>
+ <li><a href="/org/create"><i class="octicon octicon-organization"></i>{{.i18n.Tr "new_org"}}</a></li>
+ </ul>
+ </li>
+ <li class="right" id="header-nav-user">
+ <a href="/{{.SignedUser.Name}}" class="text-bold">
+ <img src="{{.SignedUser.AvatarLink}}" alt="user-avatar" class="avatar-30"/>
+ {{.SignedUser.Name}}
+ </a>
+ </li>
+ {{else}}
+ {{if .PageIsHome}}
+ <li class="right" id="header-nav-help">
+ <a target="_blank" href="http://gogs.io/docs"><i class="octicon octicon-info"></i>&nbsp;&nbsp;{{.i18n.Tr "help"}}</a>
+ </li>
+ <li class="right" id="header-nav-explore">
+ <a href="/explore"><i class="octicon octicon-globe"></i>&nbsp;&nbsp;{{.i18n.Tr "explore"}}</a>
+ </li>
+ {{else}}
+ <li class="right" id="header-nav-sign-in">
+ <a href="/user/login" title="Sign In"><i class="octicon octicon-sign-in"></i> {{.i18n.Tr "sign_in"}}</a>
+ </li>
+ <li class="right">
+ <a href="/user/sign_up" title="Account Settings"><i class="octicon octicon-person-add"></i> {{.i18n.Tr "register"}}</a>
+ </li>
+ {{end}}
+ {{end}}
+ </ul>
+</header> \ No newline at end of file
diff --git a/templates/ng/base/social.tmpl b/templates/ng/base/social.tmpl
new file mode 100644
index 0000000000..153239f743
--- /dev/null
+++ b/templates/ng/base/social.tmpl
@@ -0,0 +1,4 @@
+<button class="btn github"><i class="fa fa-github"></i>GitHub</button>
+<button class="btn google"><i class="fa fa-google"></i>Google +</button>
+<button class="btn weibo"><i class="fa fa-weibo"></i>新浪微博</button>
+<button class="btn qq"><i class="fa fa-qq"></i>腾讯 QQ&nbsp;</button> \ No newline at end of file