Browse Source

fix issue

pull/2268/head
zhoupzh 3 years ago
parent
commit
2d407485cb
3 changed files with 8 additions and 3 deletions
  1. +1
    -0
      options/locale/locale_en-US.ini
  2. +2
    -0
      options/locale/locale_zh-CN.ini
  3. +5
    -3
      templates/explore/datasets.tmpl

+ 1
- 0
options/locale/locale_en-US.ini View File

@@ -1450,6 +1450,7 @@ issues.filter_sort.feweststars = Fewest stars
issues.filter_sort.mostforks = Most forks issues.filter_sort.mostforks = Most forks
issues.filter_sort.fewestforks = Fewest forks issues.filter_sort.fewestforks = Fewest forks
issues.filter_sort.downloadtimes = Most downloaded issues.filter_sort.downloadtimes = Most downloaded
issues.filter_sort.citations=Citations
issues.filter_sort.mostusecount = Most Quote issues.filter_sort.mostusecount = Most Quote
issues.filter_sort.fewestusecount=Fewest Quote issues.filter_sort.fewestusecount=Fewest Quote
issues.action_open = Open issues.action_open = Open


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

@@ -1460,9 +1460,11 @@ issues.filter_sort.feweststars=点赞由少到多
issues.filter_sort.mostforks=派生由多到少 issues.filter_sort.mostforks=派生由多到少
issues.filter_sort.fewestforks=派生由少到多 issues.filter_sort.fewestforks=派生由少到多
issues.filter_sort.downloadtimes=下载次数 issues.filter_sort.downloadtimes=下载次数
issues.filter_sort.citations=引用次数
issues.filter_sort.moststars=收藏数量 issues.filter_sort.moststars=收藏数量
issues.filter_sort.mostusecount=最多引用 issues.filter_sort.mostusecount=最多引用
issues.filter_sort.fewestusecount=最少引用 issues.filter_sort.fewestusecount=最少引用

issues.action_open=开启 issues.action_open=开启
issues.action_close=关闭 issues.action_close=关闭
issues.action_label=标签 issues.action_label=标签


+ 5
- 3
templates/explore/datasets.tmpl View File

@@ -186,7 +186,7 @@
src="/img/jian.svg" style="margin-left: 0.5rem;">{{end}} src="/img/jian.svg" style="margin-left: 0.5rem;">{{end}}
{{if $.IsSigned}} {{if $.IsSigned}}
<span <span
style="display: flex;align-items: center;justify-content: flex-end;cursor: pointer;font-size: 12px;font-weight: normal;flex: 1;"
style="display: flex;align-items: center;justify-content: flex-end;cursor: pointer;font-size: 12px;font-weight: normal;flex: 1;margin-left: 1.5rem;"
@click.stop="postSquareStar({{.ID}},'{{.Repo.Link}}/datasets',{{$k}})"> @click.stop="postSquareStar({{.ID}},'{{.Repo.Link}}/datasets',{{$k}})">


<div style="line-height: 1;margin-right: 4px;margin-bottom: -2px;"> <div style="line-height: 1;margin-right: 4px;margin-bottom: -2px;">
@@ -256,12 +256,14 @@
<span <span
style="color: #999999;font-size: 12px;margin-left: 0.5rem;">{{TimeSinceUnixShort .CreatedUnix}}</span> style="color: #999999;font-size: 12px;margin-left: 0.5rem;">{{TimeSinceUnixShort .CreatedUnix}}</span>
<span <span
style="display: flex;align-items: center;justify-content: center;margin: 0 1rem;">
style="display: flex;align-items: center;justify-content: center;margin: 0 1rem;"
title="{{$.i18n.Tr "repo.issues.filter_sort.citations"}}">
<i class="ri-link"></i> <i class="ri-link"></i>
<span <span
style="color: #101010; font-size: 12px;margin-left: 0.2rem;">{{.UseCount}}</span> style="color: #101010; font-size: 12px;margin-left: 0.2rem;">{{.UseCount}}</span>
</span> </span>
<span style=" display: flex;align-items: center;justify-content: center;">
<span style=" display: flex;align-items: center;justify-content: center;"
title='{{$.i18n.Tr "repo.issues.filter_sort.downloadtimes"}}'>
<i class="ri-download-line"></i> <i class="ri-download-line"></i>
<span <span
style="color: #101010;font-size: 12px;margin-left: 0.2rem;">{{.DownloadTimes}}</span> style="color: #101010;font-size: 12px;margin-left: 0.2rem;">{{.DownloadTimes}}</span>


Loading…
Cancel
Save