Browse Source

修改500页面及403页面提示文字

tags/v1.21.7^2
OpenIhu 4 years ago
parent
commit
371b294451
7 changed files with 14 additions and 18 deletions
  1. BIN
      custom/public/img/icon-403@2x.png
  2. BIN
      custom/public/img/icon-500@2x.png
  3. +1
    -1
      templates/explore/repo_list.tmpl
  4. +1
    -4
      templates/explore/repo_right.tmpl
  5. +1
    -1
      templates/status/404.tmpl
  6. +9
    -12
      templates/status/500.tmpl
  7. +2
    -0
      web_src/less/_repository.less

BIN
custom/public/img/icon-403@2x.png View File

Before After
Width: 548  |  Height: 438  |  Size: 58 kB

BIN
custom/public/img/icon-500@2x.png View File

Before After
Width: 561  |  Height: 432  |  Size: 44 kB

+ 1
- 1
templates/explore/repo_list.tmpl View File

@@ -33,7 +33,7 @@
<img class="ui avatar image" src="{{.RelAvatarLink}}">
{{end}}
<a class="name" href="{{.Link}}">
{{if or $.PageIsExplore $.PageIsProfileStarList }}{{if .Owner}}{{.Owner.Name}} / {{end}}{{end}}{{.Name}}
{{if or $.PageIsExplore $.PageIsProfileStarList }}{{if .Owner}}{{.Owner.Name}} <span>/</span> {{end}}{{end}}<strong>{{.Name}}</strong>
{{if .IsArchived}}<i class="archive icon archived-icon"></i>{{end}}
</a>
{{if .IsPrivate}}


+ 1
- 4
templates/explore/repo_right.tmpl View File

@@ -1,4 +1 @@
<a href="https://openi.org.cn/html/2020/qimengxingdong_0813/450.html" target="_blank"><img class="ui mini image" src="/img/banner-qimen-4X3.jpg" style="width:100%;"></a>
<div style="margin:16px 0;display:flex;justify-content:center">
<a class="ui blue button" href="mailto:secretariat@openi.org.cn?subject=申请贡献项目到OpenI&&body=贡献者自我介绍%3A%0D%0A申请理由%3A%0D%0A 项目地址%3A%0D%0A 联系方式%3A">申请贡献项目到OpenI</a>
<div>
<a href="https://openi.org.cn/html/2020/qimengxingdong_0813/450.html" target="_blank"><img class="ui mini image" src="/img/banner-qimen-4X3.jpg" style="width:100%;"></a>

+ 1
- 1
templates/status/404.tmpl View File

@@ -3,7 +3,7 @@

<div class="ui container center" style="min-height: 70%;">
<div class="ui basic very padded segment">
<img class="ui centered medium image" src="{{StaticUrlPrefix}}/img/icon-404@2x.png">
<img class="ui centered medium image" src="{{StaticUrlPrefix}}/img/icon-403@2x.png">
<h2>您的访问受限!</h2>
<p>{{.i18n.Tr "error404" | Safe}}</p>


+ 9
- 12
templates/status/500.tmpl View File

@@ -1,16 +1,13 @@
{{template "base/head" .}}
{{if .IsRepo}}<div class="repository">{{template "repo/header" .}}</div>{{end}}
<div class="ui container center" style="background:url({{StaticUrlPrefix}}/img/500.png) no-repeat center center fixed;margin-bottom:-80px;height: 100%;width:100%;overflow: hidden;background-size: cover;margin:0!important">
<div style="height:100%;color:white">
<h1 style="padding-top: 100px;font-size: 180px;color: white;text-align: center;text-shadow: 1px 20px 2px #666;
letter-spacing: 20px;">
500
</h1>
<div style="padding-bottom: 80px">
<div class="ui divider"></div>
<br>
<p>{{.i18n.Tr "error404" | Safe}}
{{if .ShowFooterVersion}}<p>{{.i18n.Tr "admin.config.app_ver"}}: {{AppVer}}</p>{{end}}
</div>

<div class="ui container center" style="min-height: 70%;">
<div class="ui basic very padded segment">
<img class="ui centered medium image" src="{{StaticUrlPrefix}}/img/icon-500@2x.png">
<h2>抱歉!您指定的网页无法访问。</h2>
<p>{{.i18n.Tr "error404" | Safe}}</p>
</div>
</div>

{{template "base/footer" .}}

+ 2
- 0
web_src/less/_repository.less View File

@@ -2443,6 +2443,8 @@

.page.buttons {
padding-top: 15px;
padding-bottom: 15px;
margin-bottom: 15px;
}

.ui.form {


Loading…
Cancel
Save