Browse Source

Merge pull request '修改页脚备案号及导航链接' (#173) from home into develop

Reviewed-by: yuyuanshifu <747342561@qq.com>
master
yuyuanshifu 4 years ago
parent
commit
d8c86b5f8e
2 changed files with 4 additions and 5 deletions
  1. +2
    -2
      templates/base/footer_content.tmpl
  2. +2
    -3
      templates/base/head_navbar.tmpl

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

@@ -31,9 +31,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://www.miitbeian.gov.cn/" target="_blank">京ICP备18004880号</a>
{{.i18n.Tr "custom.foot.copyright"}} <a href="http://beian.miit.gov.cn/" target="_blank">京ICP备18004880号-2</a>
<br> <br>
{{.i18n.Tr "powered_by" "鹏城实验室云脑、Trustie、华为云 DevCloud、gitea"}}
{{.i18n.Tr "powered_by" "鹏城实验室云脑、<a href="https://www.trustie.net" target="_blank">Trustie确实</a>、gitea"}}
<br> <br>
</div> </div>
</div> </div>


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

@@ -10,7 +10,7 @@


{{if .IsSigned}} {{if .IsSigned}}
<a class="item {{if .PageIsDashboard}}active{{end}}" href="/dashboard">{{.i18n.Tr "dashboard"}}</a> <a class="item {{if .PageIsDashboard}}active{{end}}" href="/dashboard">{{.i18n.Tr "dashboard"}}</a>
<a class="item" href="https://www.openi.org.cn" target="_blank">{{.i18n.Tr "custom.head.community"}}</a>
<a class="item" href="{{AppSubUrl}}/OpenI">{{.i18n.Tr "custom.head.openi"}}</a>
{{if not .UnitIssuesGlobalDisabled}} {{if not .UnitIssuesGlobalDisabled}}
<a class="item {{if .PageIsIssues}}active{{end}}" href="{{AppSubUrl}}/issues">{{.i18n.Tr "issues"}}</a> <a class="item {{if .PageIsIssues}}active{{end}}" href="{{AppSubUrl}}/issues">{{.i18n.Tr "issues"}}</a>
{{end}} {{end}}
@@ -25,13 +25,12 @@
<i class="dropdown icon"></i> <i class="dropdown icon"></i>
<div class="menu"> <div class="menu">
<a class="item" href="{{AppSubUrl}}/explore/repos">{{.i18n.Tr "custom.head.project"}}</a> <a class="item" href="{{AppSubUrl}}/explore/repos">{{.i18n.Tr "custom.head.project"}}</a>
<a class="item" href="{{AppSubUrl}}/OpenI">{{.i18n.Tr "custom.head.openi"}}</a>
<a class="item" href="{{AppSubUrl}}/explore/datasets">{{.i18n.Tr "custom.head.dataset"}}</a> <a class="item" href="{{AppSubUrl}}/explore/datasets">{{.i18n.Tr "custom.head.dataset"}}</a>
</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}}/user/login?redirect_to={{.Link}}">{{.i18n.Tr "home"}}</a>
<a class="item" href="https://www.openi.org.cn" target="_blank">{{.i18n.Tr "custom.head.community"}}</a>
<a class="item" href="{{AppSubUrl}}/OpenI">{{.i18n.Tr "custom.head.openi"}}</a>


<div class="ui dropdown item"> <div class="ui dropdown item">
{{.i18n.Tr "explore"}} {{.i18n.Tr "explore"}}


Loading…
Cancel
Save