Browse Source

add my own configs

AJ ONeal 4 months ago
parent
commit
ffe1985c5c

+ 57
- 0
custom/conf/app.ini View File

@@ -0,0 +1,57 @@
1
+APP_NAME = CoolAJ86 on GIT
2
+DESCRIPTION = All Neo-Luddites and Lv. 99 Code Whisperers Welcome
3
+RUN_USER = gitea
4
+RUN_MODE = prod
5
+
6
+[database]
7
+DB_TYPE  = sqlite3
8
+HOST     =
9
+NAME     =
10
+USER     =
11
+PASSWD   =
12
+SSL_MODE = disable
13
+PATH     = /opt/gitea@git.coolaj86.com/data/gitea.db
14
+
15
+[repository]
16
+ROOT = /srv/gitea@git.coolaj86.com/gitea-repositories
17
+
18
+[server]
19
+SSH_DOMAIN   = git.coolaj86.com
20
+HTTP_ADDR    = localhost
21
+HTTP_PORT    = 3000
22
+ROOT_URL     = https://git.coolaj86.com/
23
+DISABLE_SSH  = false
24
+SSH_PORT     = 22042
25
+OFFLINE_MODE = false
26
+
27
+[mailer]
28
+ENABLED = true
29
+HOST    = smtp.mailgun.org:587
30
+FROM    = gitea@coolaj86.com
31
+USER    = gitea@coolaj86.com
32
+PASSWD  = 00000000000000000000000000000000
33
+
34
+[service]
35
+REGISTER_EMAIL_CONFIRM = false
36
+ENABLE_NOTIFY_MAIL     = true
37
+DISABLE_REGISTRATION   = false
38
+ENABLE_CAPTCHA         = true
39
+REQUIRE_SIGNIN_VIEW    = false
40
+
41
+[picture]
42
+DISABLE_GRAVATAR        = false
43
+ENABLE_FEDERATED_AVATAR = true
44
+
45
+[session]
46
+PROVIDER = file
47
+
48
+[log]
49
+MODE      = file
50
+LEVEL     = Info
51
+ROOT_PATH = /opt/gitea@git.coolaj86.com/log
52
+
53
+[security]
54
+INSTALL_LOCK   = true
55
+SECRET_KEY     = xxxxxxxxxx
56
+INTERNAL_TOKEN = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
57
+

+ 1575
- 0
custom/options/locale/locale_en-US.ini
File diff suppressed because it is too large
View File


BIN
custom/public/img/coolaj86-logo.png View File


+ 1
- 0
custom/public/img/favicon.ico View File

@@ -0,0 +1 @@
1
+favicon.png

BIN
custom/public/img/favicon.png View File


BIN
custom/public/img/gitea-lg.png View File


BIN
custom/public/img/gitea-sm.png View File


+ 104
- 0
custom/templates/base/footer.tmpl View File

@@ -0,0 +1,104 @@
1
+{{/*
2
+<html>
3
+<body>
4
+	<div>
5
+*/}}
6
+
7
+	{{template "custom/body_inner_post" .}}
8
+
9
+	</div>
10
+
11
+	{{template "custom/body_outer_post" .}}
12
+
13
+	<footer>
14
+		<div class="ui container">
15
+			<div class="ui left">
16
+       &copy;&nbsp;AJ ONeal, founder of <a target="_blank" href="https://ppl.family">ppl :)</a>
17
+       and <a target="_blank" href="https://dapliefounder.com">Daplie</a><a target="_blank" href="https://dap-lies.com">.</a>
18
+			</div>
19
+			<div class="ui right">
20
+				{{if .ShowFooterBranding}}
21
+					<a target="_blank" rel="noopener" href="https://github.com/go-gitea/gitea"><i class="fa fa-github-square"></i><span class="sr-only">GitHub</span></a>
22
+				{{end}}
23
+				<div class="ui language bottom floating slide up dropdown link item">
24
+					<i class="world icon"></i>
25
+					<div class="text">{{.LangName}}</div>
26
+					<div class="menu">
27
+						{{range .AllLangs}}
28
+							<a class="item {{if eq $.Lang .Lang}}active selected{{end}}" href="{{if eq $.Lang .Lang}}#{{else}}{{$.Link}}?lang={{.Lang}}{{end}}">{{.Name}}</a>
29
+						{{end}}
30
+					</div>
31
+				</div>
32
+        | Powered by <a target="_blank" rel="noopener" href="https://gitea.io">Gitea</a> {{if (or .ShowFooterVersion .PageIsAdmin)}}: v{{AppVer}}{{end}}
33
+				| {{if (or .ShowFooterVersion .PageIsAdmin)}}<span class="version">{{GoVer}}</span>{{end}}
34
+        | {{if ShowFooterTemplateLoadTime}}{{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong> {{.i18n.Tr "template"}}: <strong>{{call .TmplLoadTimes}}</strong>{{end}}
35
+				| <a href="{{AppSubUrl}}/api/swagger">API</a>
36
+			</div>
37
+		</div>
38
+	</footer>
39
+	<script src="{{AppSubUrl}}/vendor/plugins/jquery/jquery.min.js"></script>
40
+	<script src="{{AppSubUrl}}/vendor/plugins/jquery.areyousure/jquery.are-you-sure.js"></script>
41
+{{if .RequireSimpleMDE}}
42
+	<script src="{{AppSubUrl}}/vendor/plugins/simplemde/simplemde.min.js"></script>
43
+	<script src="{{AppSubUrl}}/vendor/plugins/codemirror/addon/mode/loadmode.js"></script>
44
+	<script src="{{AppSubUrl}}/vendor/plugins/codemirror/mode/meta.js"></script>
45
+	<script>
46
+		CodeMirror.modeURL =  "{{AppSubUrl}}/vendor/plugins/codemirror/mode/%N/%N.js";
47
+	</script>
48
+{{end}}
49
+{{if .RequireGitGraph}}
50
+	<!-- graph -->
51
+	<script src="{{AppSubUrl}}/vendor/plugins/gitgraph/gitgraph.js"></script>
52
+	<script src="{{AppSubUrl}}/js/draw.js"></script>
53
+{{end}}
54
+
55
+<!-- Third-party libraries -->
56
+{{if .RequireHighlightJS}}
57
+	<script src="{{AppSubUrl}}/vendor/plugins/highlight/highlight.pack.js"></script>
58
+{{end}}
59
+{{if .RequireMinicolors}}
60
+	<script src="{{AppSubUrl}}/vendor/plugins/jquery.minicolors/jquery.minicolors.min.js"></script>
61
+{{end}}
62
+{{if .RequireDatetimepicker}}
63
+	<script src="{{AppSubUrl}}/vendor/plugins/jquery.datetimepicker/jquery.datetimepicker.js"></script>
64
+{{end}}
65
+{{if .RequireDropzone}}
66
+	<script src="{{AppSubUrl}}/vendor/plugins/dropzone/dropzone.js"></script>
67
+{{end}}
68
+{{if .RequireTribute}}
69
+	<script src="{{AppSubUrl}}/vendor/plugins/tribute/tribute.min.js"></script>
70
+
71
+	{{if .Assignees}}
72
+	<script>
73
+		var issuesTribute = new Tribute({
74
+			values: [
75
+			{{ range .Assignees }}
76
+			{key: '{{.Name}} {{.FullName}}', value: '{{.Name}}',
77
+			name: '{{.Name}}', fullname: '{{.FullName}}', avatar: '{{.RelAvatarLink}}'},
78
+			{{ end }}
79
+			],
80
+			noMatchTemplate: function () { return null },
81
+			menuItemTemplate: function (item) {
82
+				var user = item.original;
83
+				var itemStr = '<img src="' + user.avatar + '"/><span class="name">' + user.name + '</span>';
84
+				if (user.fullname && user.fullname != '') {
85
+					itemStr += '<span class="fullname">' + user.fullname + '</span>';
86
+				}
87
+				return itemStr;
88
+			}
89
+		})
90
+		issuesTribute.attach(document.getElementById('content'))
91
+	</script>
92
+	{{end}}
93
+{{end}}
94
+	<script src="{{AppSubUrl}}/vendor/plugins/autolink/autolink.js"></script>
95
+	<script src="{{AppSubUrl}}/vendor/plugins/emojify/emojify.min.js"></script>
96
+	<script src="{{AppSubUrl}}/vendor/plugins/clipboard/clipboard.min.js"></script>
97
+	<script src="{{AppSubUrl}}/vendor/plugins/vue/vue.min.js"></script>
98
+
99
+	<!-- JavaScript -->
100
+	<script src="{{AppSubUrl}}/vendor/plugins/semantic/semantic.min.js"></script>
101
+	<script src="{{AppSubUrl}}/js/index.js?v={{MD5 AppVer}}"></script>
102
+{{template "custom/footer" .}}
103
+</body>
104
+</html>

+ 290
- 0
custom/templates/base/head.tmpl View File

@@ -0,0 +1,290 @@
1
+<!DOCTYPE html>
2
+<html>
3
+<head data-suburl="{{AppSubUrl}}">
4
+	<meta charset="utf-8">
5
+	<meta name="viewport" content="width=device-width, initial-scale=1">
6
+	<meta http-equiv="x-ua-compatible" content="ie=edge">
7
+	<title>{{if .Title}}{{.Title}} - {{end}}{{AppName}}</title>
8
+	<meta name="theme-color" content="{{ThemeColorMetaTag}}">
9
+	<meta name="author" content="{{if .Repository}}{{.Owner.Name}}{{else}}{{MetaAuthor}}{{end}}" />
10
+	<meta name="description" content="{{if .Repository}}{{.Repository.Name}}{{if .Repository.Description}} - {{.Repository.Description}}{{end}}{{else}}{{MetaDescription}}{{end}}" />
11
+	<meta name="keywords" content="{{MetaKeywords}}">
12
+	<meta name="referrer" content="no-referrer" />
13
+	<meta name="_csrf" content="{{.CsrfToken}}" />
14
+	<meta name="_suburl" content="{{AppSubUrl}}" />
15
+	{{if .IsSigned}}
16
+		<meta name="_uid" content="{{.SignedUser.ID}}" />
17
+	{{end}}
18
+	{{if .ContextUser}}
19
+		<meta name="_context_uid" content="{{.ContextUser.ID}}" />
20
+	{{end}}
21
+	{{if .SearchLimit}}
22
+		<meta name="_search_limit" content="{{.SearchLimit}}" />
23
+	{{end}}
24
+{{if .GoGetImport}}
25
+	<meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}">
26
+	<meta name="go-source" content="{{.GoGetImport}} _ {{.GoDocDirectory}} {{.GoDocFile}}">
27
+{{end}}
28
+
29
+	<script>
30
+	{{SafeJS `/*
31
+	@licstart  The following is the entire license notice for the
32
+        JavaScript code in this page.
33
+
34
+	Copyright (c) 2016 The Gitea Authors
35
+	Copyright (c) 2015 The Gogs Authors
36
+
37
+	Permission is hereby granted, free of charge, to any person obtaining a copy
38
+	of this software and associated documentation files (the "Software"), to deal
39
+	in the Software without restriction, including without limitation the rights
40
+	to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
41
+	copies of the Software, and to permit persons to whom the Software is
42
+	furnished to do so, subject to the following conditions:
43
+
44
+	The above copyright notice and this permission notice shall be included in
45
+	all copies or substantial portions of the Software.
46
+
47
+	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
48
+	IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
49
+	FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
50
+	AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
51
+	LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
52
+	OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
53
+	THE SOFTWARE.
54
+	---
55
+	Licensing information for additional javascript libraries can be found at:
56
+	  {{AppSubUrl}}/vendor/librejs.html
57
+
58
+	@licend  The above is the entire license notice
59
+        for the JavaScript code in this page.
60
+	*/`}}
61
+	</script>
62
+
63
+	<link rel="shortcut icon" href="{{AppSubUrl}}/img/favicon.png" />
64
+	<link rel="mask-icon" href="{{AppSubUrl}}/img/gitea-safari.svg" color="#609926">
65
+	<link rel="preload" href="{{AppSubUrl}}/vendor/assets/font-awesome/css/font-awesome.min.css" as="style" onload="this.rel='stylesheet'">
66
+	<noscript><link rel="stylesheet" href="{{AppSubUrl}}/vendor/assets/font-awesome/css/font-awesome.min.css"></noscript>
67
+	<link rel="stylesheet" href="{{AppSubUrl}}/vendor/assets/octicons/octicons.min.css">
68
+
69
+{{if .RequireSimpleMDE}}
70
+	<link rel="stylesheet" href="{{AppSubUrl}}/vendor/plugins/simplemde/simplemde.min.css">
71
+{{end}}
72
+
73
+{{if .RequireGitGraph}}
74
+	<!-- graph -->
75
+	<link rel="stylesheet" href="{{AppSubUrl}}/vendor/plugins/gitgraph/gitgraph.css">
76
+{{end}}
77
+
78
+{{if .RequireTribute}}
79
+	<link rel="stylesheet" href="{{AppSubUrl}}/vendor/plugins/tribute/tribute.css">
80
+{{end}}
81
+
82
+	<!-- Stylesheet -->
83
+	<link rel="stylesheet" href="{{AppSubUrl}}/vendor/plugins/semantic/semantic.min.css">
84
+	<link rel="stylesheet" href="{{AppSubUrl}}/css/index.css?v={{MD5 AppVer}}">
85
+	<noscript>
86
+		<style>
87
+			.dropdown:hover > .menu { display: block; }
88
+			.ui.secondary.menu .dropdown.item > .menu { margin-top: 0; }
89
+		</style>
90
+	</noscript>
91
+
92
+{{if .RequireHighlightJS}}
93
+	<link rel="stylesheet" href="{{AppSubUrl}}/vendor/plugins/highlight/github.css">
94
+{{end}}
95
+{{if .RequireMinicolors}}
96
+	<link rel="stylesheet" href="{{AppSubUrl}}/vendor/plugins/jquery.minicolors/jquery.minicolors.css">
97
+{{end}}
98
+{{if .RequireDatetimepicker}}
99
+	<link rel="stylesheet" href="{{AppSubUrl}}/vendor/plugins/jquery.datetimepicker/jquery.datetimepicker.css">
100
+{{end}}
101
+{{if .RequireDropzone}}
102
+	<link rel="stylesheet" href="{{AppSubUrl}}/vendor/plugins/dropzone/dropzone.css">
103
+{{end}}
104
+	<style class="list-search-style"></style>
105
+
106
+	<script src="{{AppSubUrl}}/vendor/plugins/cssrelpreload/loadCSS.min.js"></script>
107
+	<script src="{{AppSubUrl}}/vendor/plugins/cssrelpreload/cssrelpreload.min.js"></script>
108
+	<!-- Global site tag (gtag.js) - Google Analytics -->
109
+	<script async src="https://www.googletagmanager.com/gtag/js?id=UA-18902063-3"></script>
110
+	<script>
111
+		window.dataLayer = window.dataLayer || [];
112
+		function gtag(){dataLayer.push(arguments);}
113
+		gtag('js', new Date());
114
+
115
+		gtag('config', 'UA-18902063-3');
116
+	</script>
117
+{{if .PageIsUserProfile}}
118
+	<meta property="og:title" content="{{.Owner.Name}}" />
119
+	<meta property="og:type" content="profile" />
120
+	<meta property="og:image" content="{{.Owner.AvatarLink}}" />
121
+	<meta property="og:url" content="{{.Owner.HTMLURL}}" />
122
+	<meta property="og:site_name" content="{{AppName}}" />
123
+{{else if .Repository}}
124
+	<meta property="og:title" content="{{.Repository.Name}}" />
125
+	<meta property="og:type" content="object" />
126
+	<meta property="og:image" content="{{.Repository.Owner.AvatarLink}}" />
127
+	<meta property="og:url" content="{{.Repository.HTMLURL}}" />
128
+	{{if .Repository.Description}}
129
+	<meta property="og:description" content="{{.Repository.Description}}" />
130
+	{{end}}
131
+	<meta property="og:site_name" content="{{AppName}}" />
132
+{{else}}
133
+	<meta property="og:title" content="{{AppName}}">
134
+	<meta property="og:type" content="website" />
135
+	<meta property="og:image" content="{{AppSubUrl}}/img/gitea-lg.png" />
136
+	<meta property="og:url" content="{{AppUrl}}" />
137
+	<meta property="og:description" content="{{MetaDescription}}">
138
+{{end}}
139
+{{template "custom/header" .}}
140
+</head>
141
+<body>
142
+	{{template "custom/body_outer_pre" .}}
143
+
144
+	<div class="full height">
145
+		<noscript>{{.i18n.Tr "enable_javascript"}}</noscript>
146
+
147
+		{{template "custom/body_inner_pre" .}}
148
+
149
+		{{if not .PageIsInstall}}
150
+			<div class="ui top secondary stackable main menu following bar light">
151
+				<div class="ui container" id="navbar">
152
+					<div class="item brand" style="justify-content: space-between;">
153
+						<a href="{{AppSubUrl}}/" href="{{AppSubUrl}}/">
154
+							<img class="ui mini image" src="{{AppSubUrl}}/img/gitea-sm.png">
155
+						</a>
156
+						<div class="ui basic icon button mobile-only" id="navbar-expand-toggle">
157
+							<i class="sidebar icon"></i>
158
+						</div>
159
+					</div>
160
+
161
+					{{if .IsSigned}}
162
+						<a class="item{{if .PageIsDashboard}} active{{end}}" href="{{AppSubUrl}}/">{{.i18n.Tr "dashboard"}}</a>
163
+						<a class="item{{if .PageIsIssues}} active{{end}}" href="{{AppSubUrl}}/issues">{{.i18n.Tr "issues"}}</a>
164
+						<a class="item{{if .PageIsPulls}} active{{end}}" href="{{AppSubUrl}}/pulls">{{.i18n.Tr "pull_requests"}}</a>
165
+					{{else}}
166
+						<a class="item{{if .PageIsHome}} active{{end}}" href="{{AppSubUrl}}/">{{.i18n.Tr "home"}}</a>
167
+					{{end}}
168
+
169
+					<a class="item{{if .PageIsExplore}} active{{end}}" href="{{AppSubUrl}}/explore/repos">{{.i18n.Tr "explore"}}</a>
170
+
171
+					{{template "custom/extra_links" .}}
172
+
173
+					{{/*
174
+						<div class="item">
175
+						<div class="ui icon input">
176
+						<input class="searchbox" type="text" placeholder="{{.i18n.Tr "search_project"}}">
177
+						<i class="search icon"></i>
178
+						</div>
179
+						</div>
180
+					*/}}
181
+
182
+					{{if .IsSigned}}
183
+						<div class="right stackable menu">
184
+							<a href="{{AppSubUrl}}/notifications" class="item poping up" data-content='{{.i18n.Tr "notifications"}}' data-variation="tiny inverted">
185
+								<span class="text">
186
+									<i class="fitted octicon octicon-inbox"></i>
187
+									<span class="sr-mobile-only">{{.i18n.Tr "notifications"}}</span>
188
+
189
+									{{if .NotificationUnreadCount}}
190
+										<span class="ui red label">
191
+											{{.NotificationUnreadCount}}
192
+										</span>
193
+									{{end}}
194
+								</span>
195
+							</a>
196
+
197
+							<div class="ui dropdown jump item poping up" data-content="{{.i18n.Tr "create_new"}}" data-variation="tiny inverted">
198
+								<span class="text">
199
+									<i class="fitted octicon octicon-plus"></i>
200
+									<span class="sr-mobile-only">{{.i18n.Tr "create_new"}}</span>
201
+									<i class="fitted octicon octicon-triangle-down not-mobile"></i>
202
+								</span>
203
+								<div class="menu">
204
+									<a class="item" href="{{AppSubUrl}}/repo/create">
205
+										<i class="fitted octicon octicon-plus"></i> {{.i18n.Tr "new_repo"}}
206
+									</a>
207
+									<a class="item" href="{{AppSubUrl}}/repo/migrate">
208
+										<i class="fitted octicon octicon-repo-clone"></i> {{.i18n.Tr "new_migrate"}}
209
+									</a>
210
+									{{if .SignedUser.CanCreateOrganization}}
211
+									<a class="item" href="{{AppSubUrl}}/org/create">
212
+										<i class="fitted octicon octicon-organization"></i> {{.i18n.Tr "new_org"}}
213
+									</a>
214
+									{{end}}
215
+								</div><!-- end content create new menu -->
216
+							</div><!-- end dropdown menu create new -->
217
+
218
+							<div class="ui dropdown jump item poping up" tabindex="-1" data-content="{{.i18n.Tr "user_profile_and_more"}}" data-variation="tiny inverted">
219
+								<span class="text">
220
+									<img class="ui tiny avatar image" src="{{.SignedUser.RelAvatarLink}}">
221
+									<span class="sr-only">{{.i18n.Tr "user_profile_and_more"}}</span>
222
+									<span class="mobile-only">{{.SignedUser.Name}}</span>
223
+									<i class="fitted octicon octicon-triangle-down not-mobile" tabindex="-1"></i>
224
+								</span>
225
+								<div class="menu" tabindex="-1">
226
+									<div class="ui header">
227
+										{{.i18n.Tr "signed_in_as"}} <strong>{{.SignedUser.Name}}</strong>
228
+									</div>
229
+
230
+									<div class="divider"></div>
231
+									<a class="item" href="{{AppSubUrl}}/{{.SignedUser.Name}}">
232
+										<i class="octicon octicon-person"></i>
233
+										{{.i18n.Tr "your_profile"}}<!-- Your profile -->
234
+									</a>
235
+									<a class="item" href="{{AppSubUrl}}/{{.SignedUser.Name}}?tab=stars">
236
+										<i class="octicon octicon-star"></i>
237
+										{{.i18n.Tr "your_starred"}}
238
+									</a>
239
+									<a class="{{if .PageIsUserSettings}}active{{end}} item" href="{{AppSubUrl}}/user/settings">
240
+										<i class="octicon octicon-settings"></i>
241
+										{{.i18n.Tr "your_settings"}}<!-- Your settings -->
242
+									</a>
243
+									<a class="item" target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io">
244
+										<i class="octicon octicon-question"></i>
245
+										{{.i18n.Tr "help"}}<!-- Help -->
246
+									</a>
247
+									{{if .IsAdmin}}
248
+										<div class="divider"></div>
249
+
250
+										<a class="{{if .PageIsAdmin}}active{{end}} item" href="{{AppSubUrl}}/admin">
251
+											<i class="icon settings"></i>
252
+											{{.i18n.Tr "admin_panel"}}<!-- Admin Panel -->
253
+										</a>
254
+									{{end}}
255
+
256
+									<div class="divider"></div>
257
+									<a class="item" href="{{AppSubUrl}}/user/logout">
258
+										<i class="octicon octicon-sign-out"></i>
259
+										{{.i18n.Tr "sign_out"}}<!-- Sign Out -->
260
+									</a>
261
+								</div><!-- end content avatar menu -->
262
+							</div><!-- end dropdown avatar menu -->
263
+						</div><!-- end signed user right menu -->
264
+
265
+					{{else}}
266
+
267
+						<a class="item" target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io">{{.i18n.Tr "help"}}</a>
268
+						<div class="right stackable menu">
269
+							{{if .ShowRegistrationButton}}
270
+								<a class="item{{if .PageIsSignUp}} active{{end}}" href="{{AppSubUrl}}/user/sign_up">
271
+									<i class="octicon octicon-person"></i> {{.i18n.Tr "register"}}
272
+								</a>
273
+							{{end}}
274
+							<a class="item{{if .PageIsSignIn}} active{{end}}" href="{{AppSubUrl}}/user/login?redirect_to={{.Link}}">
275
+								<i class="octicon octicon-sign-in"></i> {{.i18n.Tr "sign_in"}}
276
+							</a>
277
+							<a class="item" href="{{AppSubUrl}}/user/oauth2/GitHub?redirect_to={{.Link}}">
278
+								{{.i18n.Tr "sign_in_with"}} &nbsp;<i class="octicon octicon-mark-github"></i>
279
+							</a>
280
+						</div><!-- end anonymous right menu -->
281
+
282
+					{{end}}
283
+				</div><!-- end container -->
284
+			</div><!-- end bar -->
285
+		{{end}}
286
+{{/*
287
+	</div>
288
+</body>
289
+</html>
290
+*/}}

+ 60
- 0
custom/templates/home.tmpl View File

@@ -0,0 +1,60 @@
1
+{{template "base/head" .}}
2
+<div class="home">
3
+	<div class="ui stackable middle very relaxed page grid">
4
+		<div class="sixteen wide center aligned centered column">
5
+			<div>
6
+				<img class="logo" src="{{AppSubUrl}}/img/gitea-lg.png" />
7
+			</div>
8
+			<div class="hero">
9
+				<h1 class="ui icon header title">
10
+					Let's Code, Decentralized!
11
+				</h1>
12
+				<h2>Login with GitHub or
13
+          <br>Register a new account to contribute.</h2>
14
+			</div>
15
+		</div>
16
+	</div>
17
+  <div class="ui stackable middle very relaxed page grid">
18
+    <div class="eight wide center column">
19
+      <h1 class="hero ui icon header">
20
+        <i class="octicon octicon-git-branch"></i> Hurrah for Gitea!
21
+      </h1>
22
+      <p class="large">
23
+        I'm using Gitea, which is likely to become the first decentralized git platform.
24
+        Help support decentralization by <a target="_blank" href="https://git.coolaj86.com/coolaj86/gitea-installer.sh">installing gitea</a> for yourself!
25
+      </p>
26
+    </div>
27
+    <div class="eight wide center column">
28
+      <h1 class="hero ui icon header">
29
+        <i class="octicon octicon-circuit-board"></i> Hurrah for RPi!
30
+      </h1>
31
+      <p class="large">
32
+        Home servers are the only thing that can save us from our centralized overlords.
33
+        Gitea can run on a Raspberry Pi.
34
+      </p>
35
+    </div>
36
+  </div>
37
+  <div class="ui stackable middle very relaxed page grid">
38
+    <div class="eight wide center column">
39
+      <h1 class="hero ui icon header">
40
+        <i class="octicon octicon-mail"></i> For Neo-Luddites
41
+      </h1>
42
+      <p class="large">
43
+        Email was the web's first decentralized and distributed protocol.
44
+        It may be old news, but its paradigms are the best hope for our futures.
45
+        If we don't take back the web soon then GitHub, Facebook, Slack, Medium, etc will dictate our futures for us.
46
+      </p>
47
+    </div>
48
+    <div class="eight wide center column">
49
+      <h1 class="hero ui icon header">
50
+        <i class="octicon octicon-code"></i> Lv. 99 Code Whisperers Welcome
51
+      </h1>
52
+      <p class="large">
53
+        If you love code more than build tools, we'll make fast friends. :)
54
+      </p>
55
+    </div>
56
+    <!-- should have one more of the above -->
57
+  </div>
58
+  <!-- the above may be repeated -->
59
+</div>
60
+{{template "base/footer" .}}