Browse Source

fix: #26 fix for the small bugs

tags/v1.21.12.1
colorfulberry 5 years ago
parent
commit
831798ed8b
3 changed files with 7 additions and 10 deletions
  1. +2
    -2
      options/locale/locale_zh-CN.ini
  2. +1
    -4
      templates/base/head_navbar.tmpl
  3. +4
    -4
      templates/explore/navbar.tmpl

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

@@ -1388,7 +1388,7 @@ activity.git_stats_deletion_1=删除 %d 行
activity.git_stats_deletion_n=删除 %d 行

search=搜索
search.search_repo=搜索项目...
search.search_repo=搜索代码...
search.results=在 <a href="%s"> %s </a> 中搜索 "%s" 的结果

settings=项目设置
@@ -1886,7 +1886,7 @@ teams.write_permission_desc=该团队拥有对所属项目的 <strong>读取</st
teams.admin_permission_desc=该团队拥有一定的 <strong>管理</strong> 权限,团队成员可以读取、克隆、推送以及添加其它项目协作者。
teams.create_repo_permission_desc=此外,该团队拥有了 <strong>创建项目</strong> 的权限:成员可以在组织中创建新的项目。
teams.repositories=团队项目
teams.search_repo_placeholder=搜索项目...
teams.search_repo_placeholder=搜索代码...
teams.remove_all_repos_title=移除所有团队项目
teams.remove_all_repos_desc=这将从团队中移除所有项目。
teams.add_all_repos_title=添加所有项目


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

@@ -21,8 +21,6 @@
<a class="item" href="https://www.openi.org.cn/html/news/dongtai/">{{.i18n.Tr "custom.head.community_infos"}}</a>
</div>
</div>
<a class="item" href="{{AppSubUrl}}/explore/datasets">{{.i18n.Tr "datasets"}}</a>
<a class="item" href="{{AppSubUrl}}/explore/repos">{{.i18n.Tr "custom.head.project"}}</a>
{{if not .UnitIssuesGlobalDisabled}}
<a class="item {{if .PageIsIssues}}active{{end}}" href="{{AppSubUrl}}/issues">{{.i18n.Tr "issues"}}</a>
{{end}}
@@ -55,14 +53,13 @@
<a class="item" href="https://www.openi.org.cn/html/news/dongtai/">{{.i18n.Tr "custom.head.community_infos"}}</a>
</div>
</div>
<a class="item" href="{{AppSubUrl}}/explore/repos">{{.i18n.Tr "custom.head.project"}}</a>
<div class="ui dropdown item">
{{.i18n.Tr "explore"}}
<i class="dropdown icon"></i>
<div class="menu">
<a class="item {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore/repos">{{.i18n.Tr "custom.head.project"}}</a>
<a class="item" href="{{AppSubUrl}}/explore/datasets">{{.i18n.Tr "datasets"}}</a>
<a class="item" href="javascript:alert('WIP')" target="_blank">{{.i18n.Tr "custom.head.project"}}</a>
<a class="item" href="{{AppSubUrl}}/explore/repos">{{.i18n.Tr "custom.head.project"}}</a>
<a class="item" href="javascript:alert('WIP')" target="_blank">{{.i18n.Tr "custom.head.activity"}}</a>
</div>
</div>


+ 4
- 4
templates/explore/navbar.tmpl View File

@@ -6,9 +6,9 @@
<a class="{{if .PageIsDatasets}}active{{end}} item" href="{{AppSubUrl}}/explore/datasets">
{{svg "octicon-file-submodule" 16}} {{.i18n.Tr "datasets"}}
</a>
<a class="{{if .PageIsExploreUsers}}active{{end}} item" href="{{AppSubUrl}}/explore/users">
{{/* <a class="{{if .PageIsExploreUsers}}active{{end}} item" href="{{AppSubUrl}}/explore/users">
{{svg "octicon-person" 16}} {{.i18n.Tr "explore.users"}}
</a>
</a> */}}
<a class="{{if .PageIsExploreOrganizations}}active{{end}} item" href="{{AppSubUrl}}/explore/organizations">
{{svg "octicon-organization" 16}} {{.i18n.Tr "explore.organizations"}}
</a>
@@ -30,9 +30,9 @@
<a class="{{if .PageIsDatasets}}active{{end}} item" href="{{AppSubUrl}}/explore/datasets">
{{svg "octicon-file-submodule" 16}} {{.i18n.Tr "datasets"}}
</a>
<a class="{{if .PageIsExploreUsers}}active{{end}} item" href="{{AppSubUrl}}/explore/users">
{{/* <a class="{{if .PageIsExploreUsers}}active{{end}} item" href="{{AppSubUrl}}/explore/users">
{{svg "octicon-person" 16}} {{.i18n.Tr "explore.users"}}
</a>
</a> */}}
<a class="{{if .PageIsExploreOrganizations}}active{{end}} item" href="{{AppSubUrl}}/explore/organizations">
{{svg "octicon-organization" 16}} {{.i18n.Tr "explore.organizations"}}
</a>


Loading…
Cancel
Save