Browse Source

Merge branch 'V20210731' into fix-152

pull/167/head
avadesian 3 years ago
parent
commit
31af6105dc
19 changed files with 56 additions and 49 deletions
  1. +6
    -0
      custom/public/css/git.openi.css
  2. BIN
      custom/public/img/icon-403@2x.png
  3. BIN
      custom/public/img/icon-404@2x.png
  4. BIN
      custom/public/img/icon-500@2x.png
  5. +1
    -0
      custom/public/img/logo-w.svg
  6. +1
    -0
      custom/public/img/logo.svg
  7. +1
    -1
      options/locale/locale_zh-CN.ini
  8. +1
    -1
      routers/routes/routes.go
  9. +8
    -8
      templates/base/footer_content.tmpl
  10. +2
    -2
      templates/base/head_navbar.tmpl
  11. +2
    -2
      templates/base/head_navbar_home.tmpl
  12. +1
    -1
      templates/explore/repo_list.tmpl
  13. +1
    -4
      templates/explore/repo_right.tmpl
  14. +9
    -8
      templates/status/404.tmpl
  15. +9
    -12
      templates/status/500.tmpl
  16. +2
    -2
      web_src/less/_base.less
  17. +1
    -1
      web_src/less/_dataset.less
  18. +2
    -0
      web_src/less/_repository.less
  19. +9
    -7
      web_src/less/openi.less

+ 6
- 0
custom/public/css/git.openi.css View File

@@ -58,6 +58,12 @@
background:none; background:none;
border-bottom: 1px solid #000; border-bottom: 1px solid #000;
} }
.hometop .following.bar #navbar .brand{
padding-top: .78571429em;
}
.hometop .following.bar .brand .ui.mini.image {
height: 50px;
}


.homebanner{ .homebanner{
position: relative; position: relative;


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

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

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

Before After
Width: 548  |  Height: 452  |  Size: 55 kB

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

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

+ 1
- 0
custom/public/img/logo-w.svg View File

@@ -0,0 +1 @@
<svg id="图层_1" data-name="图层 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 50"><defs><style>.cls-1{fill:#5bb973;}.cls-2{fill:#fff;}</style></defs><title>logo-w</title><path class="cls-1" d="M42.08,12.13l-15.65-9a4.44,4.44,0,0,0-4.43,0l-15.65,9A4.44,4.44,0,0,0,4.13,16V34a4.44,4.44,0,0,0,2.22,3.84l3.83,2.21a2.88,2.88,0,0,0-.06.59,2.95,2.95,0,1,0,1-2.17L7.26,36.3A2.63,2.63,0,0,1,6,34V16A2.62,2.62,0,0,1,7.26,13.7l15.65-9a2.59,2.59,0,0,1,2.61,0l15.65,9A2.63,2.63,0,0,1,42.47,16V34a2.64,2.64,0,0,1-1.3,2.27l-15.65,9a3.16,3.16,0,0,1-.5.22V39.88a1.31,1.31,0,0,0,0-.28V36.35l.1,0,9-6a.92.92,0,0,0,.41-.75V20a3,3,0,1,0-1.82,0v9L25,34.18V15.94a3,3,0,1,0-1.82,0v12l-5.08-2.95V20.19a3,3,0,1,0-1.82,0v5.26a.9.9,0,0,0,.45.79L23.2,30v8.16L12.11,31.73V23.84a2.93,2.93,0,1,0-1.82,0v8.41a.94.94,0,0,0,.46.79l12.45,7.2v6.34a.22.22,0,0,0,0,.08v.09l0,.1s0,0,0,.07l.06.1s0,0,0,0l.08.1,0,0a.39.39,0,0,0,.1.08l0,0,.12.07,0,0,.14,0h0a.39.39,0,0,0,.15,0h.16a4.44,4.44,0,0,0,2.22-.59l15.65-9A4.46,4.46,0,0,0,44.29,34V16a4.45,4.45,0,0,0-2.21-3.83m-29,27.42a1.12,1.12,0,1,1-1.12,1.12,1.12,1.12,0,0,1,1.12-1.12m20.6-23.46a1.12,1.12,0,1,1-1.12,1.12,1.12,1.12,0,0,1,1.12-1.12m-16.45.19a1.12,1.12,0,1,1-1.12,1.12,1.12,1.12,0,0,1,1.12-1.12m-6,3.65a1.12,1.12,0,1,1-1.12,1.12,1.12,1.12,0,0,1,1.12-1.12M24.13,12A1.12,1.12,0,1,1,23,13.14,1.12,1.12,0,0,1,24.13,12"/><path class="cls-2" d="M81.68,26.69H67.86c-2,.1-3.06,1-3.06,2.85v6.33c.1,1.68,1.16,2.53,3.06,2.63H81.57c1.9-.1,2.85-1,3-2.74V29.54A2.71,2.71,0,0,0,81.68,26.69Zm-.53,8c-.11.73-.53,1.16-1.48,1.26H69.54c-1-.21-1.37-.53-1.47-1.26V30.59a1.44,1.44,0,0,1,1.47-1.48h10a1.54,1.54,0,0,1,1.58,1.48Z"/><path class="cls-2" d="M63.21,20.57V17A1.63,1.63,0,0,1,64.8,15.4H79.25c1.06-.11,1.58.42,1.58,1.37V19.3c0,.85-.52,1.27-1.47,1.27H64.59V23H81.47c1.79,0,2.74-.85,2.74-2.43V15.72A2.45,2.45,0,0,0,81.47,13H74.08V11H70.6v2H62.69c-2,0-3,.95-3,3v9.39a42.65,42.65,0,0,1-2,13l3.27.64a43.43,43.43,0,0,0,2.11-13V20.57Z"/><path class="cls-2" d="M90,24.47l3.38,1.8a10.1,10.1,0,0,0,3.9-5.81h5.91V18H97.82a25.57,25.57,0,0,0,.21-3h5V12.55H93.7V11H90.22v4h4.43a17.38,17.38,0,0,1-.21,2.95H89.38v2.53h4.43A7.05,7.05,0,0,1,90,24.47Z"/><path class="cls-2" d="M97.82,21.62A21.82,21.82,0,0,1,100,26.05h3.7a25.8,25.8,0,0,0-2.22-4.43Z"/><path class="cls-2" d="M112.17,26.79H93.39c-1.8.21-2.85,1.06-3,2.64v4.75H112v1c0,.85-.52,1.27-1.58,1.27h-15c-1,0-1.48-.42-1.48-1.16H90.54v1A2.75,2.75,0,0,0,93.18,39h19.09c2-.1,3.06-1,3.06-2.64V29.54A3.21,3.21,0,0,0,112.17,26.79Zm-.32,4.86h-18V30.8a1.43,1.43,0,0,1,1.48-1.47h15c1,0,1.58.52,1.58,1.47Z"/><path class="cls-2" d="M113.64,12h-6.22q-2.53.17-2.85,2.22V23.1a2.33,2.33,0,0,0,2.32,2.22h6.65c1.47-.11,2.32-.85,2.32-2.22V14.24C116,13,115.23,12.23,113.64,12Zm-1,9.29c0,1.05-.53,1.58-1.48,1.58h-1.79A1.39,1.39,0,0,1,108,21.31V16a1.42,1.42,0,0,1,1.47-1.47H111A1.53,1.53,0,0,1,112.59,16Z"/></svg>

+ 1
- 0
custom/public/img/logo.svg View File

@@ -0,0 +1 @@
<svg id="图层_1" data-name="图层 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 50"><defs><style>.cls-1{fill:#35373f;}</style></defs><title>logo</title><path class="cls-1" d="M42.08,12.13l-15.65-9a4.44,4.44,0,0,0-4.43,0l-15.65,9A4.44,4.44,0,0,0,4.13,16V34a4.44,4.44,0,0,0,2.22,3.84l3.83,2.21a2.88,2.88,0,0,0-.06.59,2.95,2.95,0,1,0,1-2.17L7.26,36.3A2.63,2.63,0,0,1,6,34V16A2.62,2.62,0,0,1,7.26,13.7l15.65-9a2.59,2.59,0,0,1,2.61,0l15.65,9A2.63,2.63,0,0,1,42.47,16V34a2.64,2.64,0,0,1-1.3,2.27l-15.65,9a3.16,3.16,0,0,1-.5.22V39.88a1.31,1.31,0,0,0,0-.28V36.35l.1,0,9-6a.92.92,0,0,0,.41-.75V20a3,3,0,1,0-1.82,0v9L25,34.18V15.94a3,3,0,1,0-1.82,0v12l-5.08-2.95V20.19a3,3,0,1,0-1.82,0v5.26a.9.9,0,0,0,.45.79L23.2,30v8.16L12.11,31.73V23.84a2.93,2.93,0,1,0-1.82,0v8.41a.94.94,0,0,0,.46.79l12.45,7.2v6.34a.22.22,0,0,0,0,.08v.09l0,.1s0,0,0,.07l.06.1s0,0,0,0l.08.1,0,0a.39.39,0,0,0,.1.08l0,0,.12.07,0,0,.14,0h0a.39.39,0,0,0,.15,0h.16a4.44,4.44,0,0,0,2.22-.59l15.65-9A4.46,4.46,0,0,0,44.29,34V16a4.45,4.45,0,0,0-2.21-3.83m-29,27.42a1.12,1.12,0,1,1-1.12,1.12,1.12,1.12,0,0,1,1.12-1.12m20.6-23.46a1.12,1.12,0,1,1-1.12,1.12,1.12,1.12,0,0,1,1.12-1.12m-16.45.19a1.12,1.12,0,1,1-1.12,1.12,1.12,1.12,0,0,1,1.12-1.12m-6,3.65a1.12,1.12,0,1,1-1.12,1.12,1.12,1.12,0,0,1,1.12-1.12M24.13,12A1.12,1.12,0,1,1,23,13.14,1.12,1.12,0,0,1,24.13,12"/><path class="cls-1" d="M81.68,26.69H67.86c-2,.1-3.06,1-3.06,2.85v6.33c.1,1.68,1.16,2.53,3.06,2.63H81.57c1.9-.1,2.85-1,3-2.74V29.54A2.71,2.71,0,0,0,81.68,26.69Zm-.53,8c-.11.73-.53,1.16-1.48,1.26H69.54c-1-.21-1.37-.53-1.47-1.26V30.59a1.44,1.44,0,0,1,1.47-1.48h10a1.54,1.54,0,0,1,1.58,1.48Z"/><path class="cls-1" d="M63.21,20.57V17A1.63,1.63,0,0,1,64.8,15.4H79.25c1.06-.11,1.58.42,1.58,1.37V19.3c0,.85-.52,1.27-1.47,1.27H64.59V23H81.47c1.79,0,2.74-.85,2.74-2.43V15.72A2.45,2.45,0,0,0,81.47,13H74.08V11H70.6v2H62.69c-2,0-3,.95-3,3v9.39a42.65,42.65,0,0,1-2,13l3.27.64a43.43,43.43,0,0,0,2.11-13V20.57Z"/><path class="cls-1" d="M90,24.47l3.38,1.8a10.1,10.1,0,0,0,3.9-5.81h5.91V18H97.82a25.57,25.57,0,0,0,.21-3h5V12.55H93.7V11H90.22v4h4.43a17.38,17.38,0,0,1-.21,2.95H89.38v2.53h4.43A7.05,7.05,0,0,1,90,24.47Z"/><path class="cls-1" d="M97.82,21.62A21.82,21.82,0,0,1,100,26.05h3.7a25.8,25.8,0,0,0-2.22-4.43Z"/><path class="cls-1" d="M112.17,26.79H93.39c-1.8.21-2.85,1.06-3,2.64v4.75H112v1c0,.85-.52,1.27-1.58,1.27h-15c-1,0-1.48-.42-1.48-1.16H90.54v1A2.75,2.75,0,0,0,93.18,39h19.09c2-.1,3.06-1,3.06-2.64V29.54A3.21,3.21,0,0,0,112.17,26.79Zm-.32,4.86h-18V30.8a1.43,1.43,0,0,1,1.48-1.47h15c1,0,1.58.52,1.58,1.47Z"/><path class="cls-1" d="M113.64,12h-6.22q-2.53.17-2.85,2.22V23.1a2.33,2.33,0,0,0,2.32,2.22h6.65c1.47-.11,2.32-.85,2.32-2.22V14.24C116,13,115.23,12.23,113.64,12Zm-1,9.29c0,1.05-.53,1.58-1.48,1.58h-1.79A1.39,1.39,0,0,1,108,21.31V16a1.42,1.42,0,0,1,1.47-1.47H111A1.53,1.53,0,0,1,112.59,16Z"/></svg>

+ 1
- 1
options/locale/locale_zh-CN.ini View File

@@ -287,7 +287,7 @@ email_domain_blacklisted=您不能使用您的电子邮件地址注册。
authorize_application=应用授权 authorize_application=应用授权
authorize_redirect_notice=如果您授权此应用,您将会被重定向到 %s。 authorize_redirect_notice=如果您授权此应用,您将会被重定向到 %s。
authorize_application_created_by=此应用由%s创建。 authorize_application_created_by=此应用由%s创建。
authorize_application_description=如果您允许,它将能够读取和修改您的所有帐户信息,包括私人项目和组织
authorize_application_description=如果您允许,它将能够读取您的个人信息
authorize_title=授权 %s 访问您的帐户? authorize_title=授权 %s 访问您的帐户?
authorization_failed=授权失败 authorization_failed=授权失败
authorization_failed_desc=授权失败,这是一个无效的请求。请联系尝试授权应用的管理员。 authorization_failed_desc=授权失败,这是一个无效的请求。请联系尝试授权应用的管理员。


+ 1
- 1
routers/routes/routes.go View File

@@ -305,7 +305,7 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Head("/", func() string { m.Head("/", func() string {
return "" return ""
}) })
m.Get("/", routers.ExploreRepos)
m.Get("/", routers.Dashboard)
m.Get("/dashboard", routers.Dashboard) m.Get("/dashboard", routers.Dashboard)
m.Group("/explore", func() { m.Group("/explore", func() {
m.Get("", func(ctx *context.Context) { m.Get("", func(ctx *context.Context) {


+ 8
- 8
templates/base/footer_content.tmpl View File

@@ -5,15 +5,15 @@
<div class="ui three column grid"> <div class="ui three column grid">
<div class="column ui vertical text menu"> <div class="column ui vertical text menu">
<div class="header item">{{.i18n.Tr "custom.head.community"}}</div> <div class="header item">{{.i18n.Tr "custom.head.community"}}</div>
<a href="https://www.openi.org.cn/html/Club/2019/0227/14.html" class="item">{{.i18n.Tr "custom.foot.council"}}</a>
<a href="https://www.openi.org.cn/html/Club/2019/0227/14.html" class="item">{{.i18n.Tr "custom.foot.technical_committee"}}</a>
<a href="https://www.openi.org.cn/html/Club/2019/0228/17.html" class="item">{{.i18n.Tr "custom.foot.join"}}</a>
<a href="https://openi.org.cn/html/Club/2019/0227/14.html" class="item">{{.i18n.Tr "custom.foot.council"}}</a>
<a href="https://openi.org.cn/html/Club/2019/0227/14.html" class="item">{{.i18n.Tr "custom.foot.technical_committee"}}</a>
<a href="https://openi.org.cn/html/Club/2019/0228/17.html" class="item">{{.i18n.Tr "custom.foot.join"}}</a>
</div> </div>
<div class="column ui vertical text menu"> <div class="column ui vertical text menu">
<div class="header item">{{.i18n.Tr "custom.foot.news"}}</div> <div class="header item">{{.i18n.Tr "custom.foot.news"}}</div>
<a href="https://www.openi.org.cn/html/news/dongtai/" class="item">{{.i18n.Tr "custom.foot.community_news"}}</a>
<a href="https://www.openi.org.cn/html/news/huodong/" class="item">{{.i18n.Tr "custom.foot.member_news"}}</a>
<a href="https://www.openi.org.cn/html/news/zixun/" class="item">{{.i18n.Tr "custom.foot.industry_advisory"}}</a>
<a href="https://openi.org.cn/html/news/dongtai/" class="item">{{.i18n.Tr "custom.foot.community_news"}}</a>
<a href="https://openi.org.cn/html/news/huodong/" class="item">{{.i18n.Tr "custom.foot.member_news"}}</a>
<a href="https://openi.org.cn/html/news/zixun/" class="item">{{.i18n.Tr "custom.foot.industry_advisory"}}</a>
</div> </div>
<div class="column ui vertical text menu"> <div class="column ui vertical text menu">
<div class="header item">{{.i18n.Tr "custom.foot.help"}}</div> <div class="header item">{{.i18n.Tr "custom.foot.help"}}</div>
@@ -32,9 +32,9 @@
</div> </div>
</div> </div>
<div class="sixteen wide mobile eight wide tablet eight wide computer column" style=" margin:2.0rem 0"> <div class="sixteen wide mobile eight wide tablet eight wide computer column" style=" margin:2.0rem 0">
{{.i18n.Tr "custom.foot.copyright"}} <a href="http://beian.miit.gov.cn/" target="_blank">京ICP备18004880号-2</a>
{{.i18n.Tr "custom.foot.copyright"}} <a href="http://beian.miit.gov.cn/" target="_blank">京ICP备18004880号</a>
<br> <br>
{{.i18n.Tr "powered_by 鹏城实验室云脑、"}}<a href="https://www.trustie.net/" target="_blank">Trustie确实</a>{{.i18n.Tr "、gitea"}}
{{.i18n.Tr "Powered_by 鹏城实验室云脑、"}}<a href="https://www.trustie.net/" target="_blank">Trustie确实</a>{{.i18n.Tr "、gitea"}}
<br> <br>
</div> </div>
</div> </div>


+ 2
- 2
templates/base/head_navbar.tmpl View File

@@ -1,7 +1,7 @@
<div class="ui container" id="navbar"> <div class="ui container" id="navbar">
<div class="item brand" style="justify-content: space-between;"> <div class="item brand" style="justify-content: space-between;">
<a href="https://openi.org.cn/"> <a href="https://openi.org.cn/">
<img class="ui mini image" src="{{StaticUrlPrefix}}/img/openi-logo-w.svg?v=2020091401">
<img class="ui mini image" src="{{StaticUrlPrefix}}/img/logo-w.svg">
</a> </a>
<div class="ui basic icon button mobile-only" id="navbar-expand-toggle"> <div class="ui basic icon button mobile-only" id="navbar-expand-toggle">
<i class="sidebar icon"></i> <i class="sidebar icon"></i>
@@ -31,7 +31,7 @@
</div> </div>
</div> </div>
{{else if .IsLandingPageHome}} {{else if .IsLandingPageHome}}
<a class="item {{if .PageIsHome}}active{{end}}" href="{{AppSubUrl}}/user/login?redirect_to={{.Link}}">{{.i18n.Tr "home"}}</a>
<a class="item {{if .PageIsHome}}active{{end}}" href="{{AppSubUrl}}/dashboard">{{.i18n.Tr "home"}}</a>
<a class="item" href="{{AppSubUrl}}/OpenI">{{.i18n.Tr "custom.head.openi"}}</a> <a class="item" href="{{AppSubUrl}}/OpenI">{{.i18n.Tr "custom.head.openi"}}</a>


<div class="ui dropdown item"> <div class="ui dropdown item">


+ 2
- 2
templates/base/head_navbar_home.tmpl View File

@@ -1,7 +1,7 @@
<div class="ui container" id="navbar"> <div class="ui container" id="navbar">
<div class="item brand" style="justify-content: space-between;"> <div class="item brand" style="justify-content: space-between;">
<a href="https://openi.org.cn/"> <a href="https://openi.org.cn/">
<img class="ui mini image" src="https://openi.org.cn/statics/openi-2021/img/logo-b.svg" style="height: 60px;">
<img class="ui mini image" src="{{StaticUrlPrefix}}/img/logo.svg">
</a> </a>
<div class="ui basic icon button mobile-only" id="navbar-expand-toggle"> <div class="ui basic icon button mobile-only" id="navbar-expand-toggle">
<i class="sidebar icon"></i> <i class="sidebar icon"></i>
@@ -31,7 +31,7 @@
</div> </div>
</div> </div>
{{else if .IsLandingPageHome}} {{else if .IsLandingPageHome}}
<a class="item {{if .PageIsHome}}active{{end}}" href="{{AppSubUrl}}/user/login?redirect_to={{.Link}}">{{.i18n.Tr "home"}}</a>
<a class="item {{if .PageIsHome}}active{{end}}" href="{{AppSubUrl}}/dashboard">{{.i18n.Tr "home"}}</a>
<a class="item" href="{{AppSubUrl}}/OpenI">{{.i18n.Tr "custom.head.openi"}}</a> <a class="item" href="{{AppSubUrl}}/OpenI">{{.i18n.Tr "custom.head.openi"}}</a>


<div class="ui dropdown item"> <div class="ui dropdown item">


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

@@ -33,7 +33,7 @@
<img class="ui avatar image" src="{{.RelAvatarLink}}"> <img class="ui avatar image" src="{{.RelAvatarLink}}">
{{end}} {{end}}
<a class="name" href="{{.Link}}"> <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}} {{if .IsArchived}}<i class="archive icon archived-icon"></i>{{end}}
</a> </a>
{{if .IsPrivate}} {{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>

+ 9
- 8
templates/status/404.tmpl View File

@@ -1,12 +1,13 @@
{{template "base/head" .}} {{template "base/head" .}}
{{if .IsRepo}}<div class="repository">{{template "repo/header" .}}</div>{{end}} {{if .IsRepo}}<div class="repository">{{template "repo/header" .}}</div>{{end}}
<div class="ui container center" style="background:url({{StaticUrlPrefix}}/img/404.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">
<div style="padding-top: 50vh">
<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-403@2x.png">
<h2>您的访问受限!</h2>
<p>{{.i18n.Tr "error404" | Safe}}</p>
</div> </div>
</div> </div>

{{template "base/footer" .}}

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

@@ -1,16 +1,13 @@
{{template "base/head" .}} {{template "base/head" .}}
{{if .IsRepo}}<div class="repository">{{template "repo/header" .}}</div>{{end}} {{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>
</div> </div>

{{template "base/footer" .}}

+ 2
- 2
web_src/less/_base.less View File

@@ -291,7 +291,7 @@ code,
} }


#navbar { #navbar {
width: 100vw;
/*width: 100vw;*/
min-height: 52px; min-height: 52px;
padding: 0 .5rem; padding: 0 .5rem;
} }
@@ -773,7 +773,7 @@ footer {
color: #888888; color: #888888;


.container { .container {
width: 100vw !important;
/*width: 100vw !important;*/
padding: 0 .5rem; padding: 0 .5rem;
max-width: calc(100vw - 1rem) !important; max-width: calc(100vw - 1rem) !important;




+ 1
- 1
web_src/less/_dataset.less View File

@@ -177,7 +177,7 @@
} }


.ui.header { .ui.header {
font-size: 1.5rem;
font-size: 1.3rem;
padding-bottom: 10px; padding-bottom: 10px;


.name { .name {


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

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


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


.ui.form { .ui.form {


+ 9
- 7
web_src/less/openi.less View File

@@ -1,3 +1,6 @@
a {
color: #0366d6;
}
.ui .text.yellow a { .ui .text.yellow a {
color: #fbbd08!important color: #fbbd08!important
} }
@@ -12,17 +15,19 @@
} }
.following.bar #navbar .brand{ .following.bar #navbar .brand{
padding-left: 0; padding-left: 0;
padding-top: 0;
padding-bottom: 0;
} }
.following.bar .brand .ui.mini.image { .following.bar .brand .ui.mini.image {
width: auto; width: auto;
height: 30px;
height: 40px;
} }


.following.bar.dark { .following.bar.dark {
background-color: #001F4A;
background-color: #363840;
} }
.ui.secondary.menu.dark .item{ .ui.secondary.menu.dark .item{
color: #E5FAFF;
color: #FFF;
} }
.ui.secondary.menu.dark .item:hover{ .ui.secondary.menu.dark .item:hover{
color: #40A9FF; color: #40A9FF;
@@ -67,11 +72,8 @@ footer {
} }
/*PC*/ /*PC*/
@media only screen and (min-width: 1200px){ @media only screen and (min-width: 1200px){
.following.bar #navbar{
min-height: 80px;
}
.following.bar #navbar, footer .container { .following.bar #navbar, footer .container {
padding: 0 32px;
padding: 0;
} }
} }




Loading…
Cancel
Save