summaryrefslogtreecommitdiffstats
path: root/templates/base
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-15 19:07:21 +0800
committerUnknwon <u@gogs.io>2015-08-15 19:07:21 +0800
commit2e30b421b403f70ee6b41fdfd8a0b8f1b9a140a8 (patch)
tree896e691d498ddd1c740b5df2f8241c828d14813e /templates/base
parentc8bb475abb1c661930ca7c835405d7d62f9b154d (diff)
downloadgitea-2e30b421b403f70ee6b41fdfd8a0b8f1b9a140a8.tar.gz
gitea-2e30b421b403f70ee6b41fdfd8a0b8f1b9a140a8.zip
comletely remove v1 UI files of Gogs
Diffstat (limited to 'templates/base')
-rw-r--r--templates/base/alert_old.tmpl2
-rw-r--r--templates/base/footer_old.tmpl34
-rw-r--r--templates/base/head_old.tmpl40
-rw-r--r--templates/base/navbar.tmpl49
4 files changed, 0 insertions, 125 deletions
diff --git a/templates/base/alert_old.tmpl b/templates/base/alert_old.tmpl
deleted file mode 100644
index bb1eb6aab1..0000000000
--- a/templates/base/alert_old.tmpl
+++ /dev/null
@@ -1,2 +0,0 @@
-{{if .Flash.ErrorMsg}}<div class="alert alert-danger form-error">{{.Flash.ErrorMsg}}</div>{{end}}
-{{if .Flash.SuccessMsg}}<div class="alert alert-success">{{.Flash.SuccessMsg}}</div>{{end}} \ No newline at end of file
diff --git a/templates/base/footer_old.tmpl b/templates/base/footer_old.tmpl
deleted file mode 100644
index adc831425a..0000000000
--- a/templates/base/footer_old.tmpl
+++ /dev/null
@@ -1,34 +0,0 @@
-<div class="wrapper-push"></div>
-</div>
-<footer id="footer">
- <div class="container footer-wrap">
- <div class="row">
- <div class="col-md-6">
- <p>© 2014 GoGits · Version: {{AppVer}} ·
- Page: <b>{{LoadTimes .PageStartTime}}</b> ·
- Template: <b>{{call .TmplLoadTimes}}</b>
- </p>
- </div>
-
- {{if .ShowFooterBranding}}
- <div class="col-md-2" style="margin: -5px;">
- <a target="_blank" href="https://github.com/gogits/gogs"><i class="fa fa-github fa-2x"></i></a>
- </div>
- {{end}}
-
- <div class="col-md-4">
- <p class="desc">
- <a href="http://gogs.io">Official Website</a>
- </p>
- </div>
- </div>
-
- <div class="row">
- <div class="col-md-6">
- Go Version: {{GoVer}}
- </div>
- </div>
- </div>
-</footer>
-</body>
-</html> \ No newline at end of file
diff --git a/templates/base/head_old.tmpl b/templates/base/head_old.tmpl
deleted file mode 100644
index 9a4665de05..0000000000
--- a/templates/base/head_old.tmpl
+++ /dev/null
@@ -1,40 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head{{if AppSubUrl}} data-suburl="{{AppSubUrl}}"{{end}}>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <link rel="shortcut icon" href="{{AppSubUrl}}/img/favicon.png" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
- <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">
- <meta name="referrer" content="no-referrer" />
- <meta name="_csrf" content="{{.CsrfToken}}" />
- {{if .GoGetImport}}<meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}">{{end}}
-
- <!-- Stylesheets -->
- {{if CdnMode}}
- <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
- <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
-
- <script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
- <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
- {{else}}
- <link href="{{AppSubUrl}}/css/bootstrap.min.css" rel="stylesheet" />
- <link href="{{AppSubUrl}}/css/font-awesome.min.css" rel="stylesheet" />
-
- <script src="{{AppSubUrl}}/js/jquery-1.11.3.min.js"></script>
- <script src="{{AppSubUrl}}/js/bootstrap.min.js"></script>
- {{end}}
-
- <link href="{{AppSubUrl}}/css/todc-bootstrap.min.css" rel="stylesheet" />
- <link href="{{AppSubUrl}}/css/markdown.css" rel="stylesheet" />
- <link href="{{AppSubUrl}}/css/gogs.css" rel="stylesheet" />
-
- <script src="{{AppSubUrl}}/js/lib.js"></script>
- <script src="{{AppSubUrl}}/js/app.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/base/navbar.tmpl b/templates/base/navbar.tmpl
deleted file mode 100644
index b69e9dc4a0..0000000000
--- a/templates/base/navbar.tmpl
+++ /dev/null
@@ -1,49 +0,0 @@
-<div class="masthead navbar" id="masthead">
- <div class="container">
- <nav class="nav">
- <a id="nav-logo" class="nav-item pull-left{{if .PageIsHome}} active{{end}}" href="{{AppSubUrl}}/"><img src="{{AppSubUrl}}/img/favicon.png" alt="Gogs Logo" id="logo"></a>
- <a class="nav-item pull-left{{if .PageIsUserDashboard}} active{{end}}" href="{{AppSubUrl}}/">Dashboard</a>
- <a class="nav-item pull-left{{if .PageIsHelp}} active{{end}}" target="_blank" href="http://gogs.io/docs">Help</a>
- {{if .IsSigned}}
- {{if .HasAccess}}
- <!-- <form class="nav-item pull-left{{if .PageIsNewRepo}} active{{end}}" id="nav-search-form">
- <div class="input-group">
- <div class="input-group-btn">
- <button type="button" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown">{{if .Repository}}This Repository{{else}}All Repositories{{end}} <span class="caret"></span></button>
- <ul class="dropdown-menu">
- {{if .Repository}}
- <li><a href="#">This Repository</a></li>
- <li class="divider"></li>
- {{end}}
- <li><a href="#">All Repositories</a></li>
- </ul>
- </div>
- <input type="search" class="form-control input-sm" name="q" placeholder="search code, commits and issues"/>
- </div>
- </form> -->
- {{end}}
- <a id="nav-out" class="nav-item navbar-right navbar-btn btn btn-danger" href="{{AppSubUrl}}/user/logout/"><i class="fa fa-power-off fa-lg"></i></a>
- <a id="nav-avatar" class="nav-item navbar-right{{if .PageIsUserProfile}} active{{end}}" href="{{.SignedUser.HomeLink}}" data-toggle="tooltip" data-placement="bottom" title="{{.SignedUserName}}">
- <img src="{{.SignedUser.AvatarLink}}?s=28" alt="user-avatar" title="username"/>
- </a>
- <a class="navbar-right nav-item{{if .PageIsUserSetting}} active{{end}}" href="{{AppSubUrl}}/user/settings" data-toggle="tooltip" data-placement="bottom" title="Settings"><i class="fa fa-cogs fa-lg"></i></a>
- {{if .IsAdmin}}
- <a class="navbar-right nav-item{{if .PageIsAdmin}} active{{end}}" href="{{AppSubUrl}}/admin" data-toggle="tooltip" data-placement="bottom" title="Admin"><i class="fa fa-gear fa-lg"></i></a>
- {{end}}
- <div class="navbar-right nav-item pull-right{{if .PageIsNewRepo}} active{{end}}" id="nav-repo-new" data-toggle="tooltip" data-placement="bottom" title="New Repo">
- <button type="button" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus-square fa-lg"></i></button>
- <div class="dropdown-menu">
- <ul class="list-unstyled">
- <li><a href="{{AppSubUrl}}/repo/create"><i class="fa fa-book"></i>Repository</a></li>
- <li><a href="{{AppSubUrl}}/repo/migrate"><i class="fa fa-clipboard"></i>Migration</a></li>
- <!-- <li><a href="#"><i class="fa fa-users"></i>Organization</a></li> -->
- </ul>
- </div>
- </div>
- {{else}}
- <a id="nav-signin" class="nav-item navbar-right navbar-btn btn btn-danger" href="{{AppSubUrl}}/user/login/" rel="nofollow">Sign In</a>
- <a id="nav-signup" class="nav-item navbar-right" href="{{AppSubUrl}}/user/sign_up/" rel="nofollow">Sign Up</a>
- {{end}}
- </nav>
- </div>
-</div>