Browse Source

Merge pull request 'web' (#161) from web into V20210731

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/161
pull/168/head
lewis 3 years ago
parent
commit
8cb0e442d6
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      routers/routes/routes.go
  2. +1
    -1
      templates/base/head_navbar.tmpl
  3. +1
    -1
      templates/base/head_navbar_home.tmpl

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

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


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

@@ -31,7 +31,7 @@
</div>
</div>
{{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>

<div class="ui dropdown item">


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

@@ -31,7 +31,7 @@
</div>
</div>
{{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>

<div class="ui dropdown item">


Loading…
Cancel
Save