Browse Source

Merge branch 'develop' of https://git.pcl.ac.cn/yoyoyard/opendata into modelarts

master
yuyuanshifu 4 years ago
parent
commit
018c1b88ad
2 changed files with 5 additions and 3 deletions
  1. +3
    -3
      templates/repo/home.tmpl
  2. +2
    -0
      templates/repo/sub_menu.tmpl

+ 3
- 3
templates/repo/home.tmpl View File

@@ -3,13 +3,13 @@
{{template "repo/header" .}}
<div class="ui container">
{{template "base/alert" .}}
<div class="ui repo-description">
<div id="repo-desc">
<div class="ui repo-description stackable grid">
<div id="repo-desc" class="ui twelve wide column">
{{if .Repository.DescriptionHTML}}<span class="description">{{.Repository.DescriptionHTML}}</span>{{else if .IsRepositoryAdmin}}<span class="no-description text-italic">{{.i18n.Tr "repo.no_desc"}}</span>{{end}}
<a class="link" href="{{.Repository.Website}}">{{.Repository.Website}}</a>
</div>
{{if .RepoSearchEnabled}}
<div class="ui repo-search">
<div class="ui repo-search four wide column">
<form class="ui form ignore-dirty" action="{{.RepoLink}}/search" method="get">
<div class="field">
<div class="ui action input">


+ 2
- 0
templates/repo/sub_menu.tmpl View File

@@ -13,9 +13,11 @@
<div class="item">
<a class="ui" href="#">{{svg "octicon-database" 16}} <b>{{SizeFmt .Repository.Size}}</b></a>
</div>
{{if (not .IsPrivate)}}
<div class="item">
<a class="ui" href="#">{{svg "octicon-desktop-download" 16}} <b>{{.Repository.CloneCnt}} {{.i18n.Tr "repo.clone_cnt" }}</b></a>
</div>
{{end}}
{{end}}
</div>
</div>


Loading…
Cancel
Save