diff --git a/modules/templates/helper.go b/modules/templates/helper.go index 762471ca5..640f98443 100644 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -308,7 +308,7 @@ func NewFuncMap() []template.FuncMap { "categories": categories, "licenses": licenses, "DatasetPathJoin": func(arr []string, index int, seq string) string { - return strings.Join(arr[0:index+1], seq) + return strings.Join(arr[1:index+1], seq) }, }} } diff --git a/templates/repo/datasets/dirs/index.tmpl b/templates/repo/datasets/dirs/index.tmpl index 003fb635e..39820d584 100755 --- a/templates/repo/datasets/dirs/index.tmpl +++ b/templates/repo/datasets/dirs/index.tmpl @@ -7,7 +7,7 @@

{{ range $index, $item := .Path }} - {{ $item }}/ + {{ $item }}/ {{ end }}

diff --git a/web_src/less/_dataset.less b/web_src/less/_dataset.less index 3cd889212..03148066c 100644 --- a/web_src/less/_dataset.less +++ b/web_src/less/_dataset.less @@ -155,6 +155,9 @@ font-weight: bold; margin: 0 6px; } + .directory-seperator { + padding: 0 4px; + } } .dataset-list { .octicon-check {