Skip to content

Commit 54bd220

Browse files
Optimize the installation page (#32994)
Co-authored-by: wxiaoguang <[email protected]>
1 parent 0387195 commit 54bd220

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

options/locale/locale_en-US.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ license_desc = Go get <a target="_blank" rel="noopener noreferrer" href="%[1]s">
244244

245245
[install]
246246
install = Installation
247+
installing_desc = Installing now, please wait...
247248
title = Initial Configuration
248249
docker_helper = If you run Gitea inside Docker, please read the <a target="_blank" rel="noopener noreferrer" href="%s">documentation</a> before changing any settings.
249250
require_db_desc = Gitea requires MySQL, PostgreSQL, MSSQL, SQLite3 or TiDB (MySQL protocol).

templates/post-install.tmpl

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,10 @@
11
{{template "base/head" .}}
2-
<div role="main" aria-label="{{.Title}}" class="page-content install post-install">
3-
<div class="ui container">
4-
<div class="ui grid">
5-
<div class="sixteen wide column content">
6-
<div class="home">
7-
<div class="ui stackable middle very relaxed page grid">
8-
<div class="sixteen wide center aligned centered column">
9-
<div>
10-
<img src="{{AssetUrlPrefix}}/img/loading.png" alt="{{ctx.Locale.Tr "loading"}}">
11-
</div>
12-
</div>
13-
</div>
14-
<div class="ui stackable middle very relaxed page grid">
15-
<div class="sixteen wide center aligned centered column">
16-
<p><a id="goto-user-login" href="{{AppSubUrl}}/user/login">{{ctx.Locale.Tr "loading"}}</a></p>
17-
</div>
18-
</div>
19-
</div>
20-
</div>
2+
<div role="main" aria-label="{{.Title}}" class="page-content install post-install tw-h-full">
3+
<div class="home tw-text-center tw-h-full tw-flex tw-flex-col tw-justify-center"><!-- the "home" class makes the links green -->
4+
<!-- the "cup" has a handler, so move it a little leftward to make it visually in the center -->
5+
<div class="tw-ml-[-30px]"><img width="160" src="{{AssetUrlPrefix}}/img/loading.png" alt="" aria-hidden="true"></div>
6+
<div class="tw-my-[2em] tw-text-[18px]">
7+
<a id="goto-user-login" href="{{AppSubUrl}}/user/login">{{ctx.Locale.Tr "install.installing_desc"}}</a>
218
</div>
229
</div>
2310
</div>

0 commit comments

Comments
 (0)