Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang committed Dec 31, 2024
1 parent e5aa248 commit 0c527e1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 26 deletions.
1 change: 0 additions & 1 deletion options/locale/locale_en-US.ini
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ license_desc = Go get <a target="_blank" rel="noopener noreferrer" href="%[1]s">

[install]
install = Installation
installing = Installing
installing_desc = Installing now, please wait...
title = Initial Configuration
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.
Expand Down
21 changes: 6 additions & 15 deletions templates/post-install.tmpl
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
{{template "base/head" .}}
<div role="main" aria-label="{{.Title}}" class="page-content install post-install">
<div class="ui container">
<div class="ui grid">
<div class="sixteen wide column content">
<div class="home">
<div class="ui stackable middle very relaxed page grid">
<div class="sixteen wide center aligned centered column">
<div class="loading">
<img src="{{AssetUrlPrefix}}/img/loading.png" alt="{{ctx.Locale.Tr "install.installing"}}">
</div>
<p><a id="goto-user-login" href="{{AppSubUrl}}/user/login">{{ctx.Locale.Tr "install.installing_desc"}}</a></p>
</div>
</div>
</div>
</div>
<div role="main" aria-label="{{.Title}}" class="page-content post-install tw-h-full">
<div class="home tw-text-center tw-h-full tw-flex tw-flex-col tw-justify-center"><!-- the "home" class makes the links green -->
<!-- the "cup" has a handler, so move it a little leftward to make it visually in the center -->
<div class="tw-ml-[-30px]"><img width="160" src="{{AssetUrlPrefix}}/img/loading.png" alt="" aria-hidden="true"></div>
<div class="tw-my-[2em] tw-text-[18px]">
<a id="goto-user-login" href="{{AppSubUrl}}/user/login">{{ctx.Locale.Tr "install.installing_desc"}}</a>
</div>
</div>
</div>
Expand Down
10 changes: 0 additions & 10 deletions web_src/css/install.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
.page-content.install.post-install {
height: 100%;
display: flex;
align-items: center;
}

.page-content.install .install-config-container {
max-width: 900px;
margin: auto;
Expand Down Expand Up @@ -59,7 +53,3 @@
text-align: left;
margin: 10px auto;
}

.page-content.install .loading img {
width: 128px;
}

0 comments on commit 0c527e1

Please sign in to comment.