diff options
Diffstat (limited to 'templates/ng/base')
-rw-r--r-- | templates/ng/base/alert.tmpl | 3 | ||||
-rw-r--r-- | templates/ng/base/footer.tmpl | 29 | ||||
-rw-r--r-- | templates/ng/base/head.tmpl | 45 | ||||
-rw-r--r-- | templates/ng/base/header.tmpl | 60 |
4 files changed, 0 insertions, 137 deletions
diff --git a/templates/ng/base/alert.tmpl b/templates/ng/base/alert.tmpl deleted file mode 100644 index 4c2976a914..0000000000 --- a/templates/ng/base/alert.tmpl +++ /dev/null @@ -1,3 +0,0 @@ -{{if .Flash.ErrorMsg}}<span class="alert alert-red alert-radius block text-bold"><i class="octicon octicon-alert"></i>{{.Flash.ErrorMsg|Str2html}}</span>{{end}} -{{if .Flash.SuccessMsg}}<div class="alert alert-green alert-radius block"><i class="octicon octicon-check"></i>{{.Flash.SuccessMsg|Str2html}}</div>{{end}} -{{if .Flash.InfoMsg}}<div class="alert alert-blue alert-radius block"><i class="octicon octicon-info"></i>{{.Flash.InfoMsg|Str2html}}</div>{{end}}
\ No newline at end of file diff --git a/templates/ng/base/footer.tmpl b/templates/ng/base/footer.tmpl deleted file mode 100644 index 695a145f72..0000000000 --- a/templates/ng/base/footer.tmpl +++ /dev/null @@ -1,29 +0,0 @@ - </div> - <footer id="footer"> - <div class="container clear"> - <p class="left" id="footer-rights">© 2015 Gogs · {{ if .ShowFooterVersion }}{{.i18n.Tr "version"}}: {{AppVer}}{{ end }} · {{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong> · - {{.i18n.Tr "template"}}: <strong>{{call .TmplLoadTimes}}</strong></p> - - <div class="right" id="footer-links"> - {{if .ShowFooterBranding}} - <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> - {{end}} - <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> - {{ if .ShowVersionFooter }}<span class="version">{{GoVer}}</span>{{ end }} - </div> - </div> - </footer> - </body> -</html> diff --git a/templates/ng/base/head.tmpl b/templates/ng/base/head.tmpl deleted file mode 100644 index dbf801c66b..0000000000 --- a/templates/ng/base/head.tmpl +++ /dev/null @@ -1,45 +0,0 @@ -<!DOCTYPE html> -<html{{if .BrowserSupportsCopy}} class="is-copy-enabled"{{end}}> - <head data-suburl="{{AppSubUrl}}"> - <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"> - <meta name="referrer" content="no-referrer" /> - <meta name="_csrf" content="{{.CsrfToken}}" /> - {{if .GoGetImport}} - <meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}"> - <meta name="go-source" content="{{.GoGetImport}} _ {{.GoDocDirectory}} {{.GoDocFile}}"> - {{end}} - - <link rel="shortcut icon" href="{{AppSubUrl}}/img/favicon.png" /> - - - <link rel="stylesheet" href="{{AppSubUrl}}/ng/css/font-awesome.min.css"> - - <script src="{{AppSubUrl}}/ng/js/lib/jquery-1.11.1.min.js"></script> - - <!-- Stylesheet --> - <link rel="stylesheet" href="{{AppSubUrl}}/ng/css/ui.css"> - <link rel="stylesheet" href="{{AppSubUrl}}/ng/css/gogs.css"> - <link rel="stylesheet" href="{{AppSubUrl}}/ng/css/tipsy.css"> - <link rel="stylesheet" href="{{AppSubUrl}}/ng/css/magnific-popup.css"> - <link rel="stylesheet" href="{{AppSubUrl}}/ng/fonts/octicons.css"> - <link rel="stylesheet" href="{{AppSubUrl}}/css/github.min.css"> - - <!-- JavaScript --> - <script src="{{AppSubUrl}}/ng/js/lib/lib.js"></script> - <script src="{{AppSubUrl}}/ng/js/lib/jquery.tipsy.js"></script> - <script src="{{AppSubUrl}}/ng/js/lib/jquery.magnific-popup.min.js"></script> - <script src="{{AppSubUrl}}/js/libs/emojify-1.1.0.min.js"></script> - <script src="{{AppSubUrl}}/ng/js/utils/tabs.js"></script> - <script src="{{AppSubUrl}}/ng/js/utils/preview.js"></script> - <script src="{{AppSubUrl}}/ng/js/gogs/issue_label.js"></script> - <script src="{{AppSubUrl}}/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> diff --git a/templates/ng/base/header.tmpl b/templates/ng/base/header.tmpl deleted file mode 100644 index da9218368d..0000000000 --- a/templates/ng/base/header.tmpl +++ /dev/null @@ -1,60 +0,0 @@ -<header id="header"> - <ul class="menu menu-line container" id="header-nav"> - {{if not .PageIsHome}} - <li class="head" id="header-nav-logo"> - <img src="{{AppSubUrl}}/img/favicon.png" alt="avatar" class="avatar-30"/> - </li> - <li {{if .PageIsDashboard}}class="current"{{end}}> - <a href="{{AppSubUrl}}/">{{if .IsSigned}}{{.i18n.Tr "dashboard"}}{{else}}{{.i18n.Tr "home"}}{{end}}</a> - </li> - <li><a href="{{AppSubUrl}}/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="{{AppSubUrl}}/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="{{AppSubUrl}}/user/settings" title="{{.i18n.Tr "account_settings"}}"><i class="octicon octicon-settings"></i></a> - </li> - {{if .IsAdmin}} - <li class="right {{if .PageIsAdmin}}current{{end}}"> - <a href="{{AppSubUrl}}/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="{{AppSubUrl}}/repo/create"><i class="octicon octicon-repo-create"></i>{{.i18n.Tr "new_repo"}}</a></li> - <li><a href="{{AppSubUrl}}/repo/migrate"><i class="octicon octicon-repo-clone"></i>{{.i18n.Tr "new_migrate"}}</a></li> - <li><a href="{{AppSubUrl}}/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="{{AppSubUrl}}/{{.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> {{.i18n.Tr "help"}}</a> - </li> - <li class="right" id="header-nav-explore"> - <a href="{{AppSubUrl}}/explore"><i class="octicon octicon-globe"></i> {{.i18n.Tr "explore"}}</a> - </li> - {{else}} - <li class="right" id="header-nav-sign-in"> - <a href="{{AppSubUrl}}/user/login" title="Sign In"><i class="octicon octicon-sign-in"></i> {{.i18n.Tr "sign_in"}}</a> - </li> - {{if .ShowRegistrationButton}} - <li class="right"> - <a href="{{AppSubUrl}}/user/sign_up" title="Account Settings"><i class="octicon octicon-person-add"></i> {{.i18n.Tr "register"}}</a> - </li> - {{end}} - {{end}} - {{end}} - </ul> -</header>
\ No newline at end of file |