Browse Source

feat: add the style for select one

master
colorfulberry 5 years ago
parent
commit
aefc0255d1
2 changed files with 15 additions and 2 deletions
  1. +12
    -2
      templates/repo/datasets/right_side.tmpl
  2. +3
    -0
      web_src/less/_dataset.less

+ 12
- 2
templates/repo/datasets/right_side.tmpl View File

@@ -36,7 +36,12 @@
<div class="filter menu">
<input type="hidden" name="task" id="task" value="{{.dataset.Task}}">
{{range $task := tasks}}
<a class="item" data-task-id="{{$task}}"> {{$.i18n.Tr (printf "dataset.task.%s" $task)}}</a>
<a class="item" data-task-id="{{$task}}">
{{if eq $task $.dataset.Task}}
<span class="octicon-check">{{svg "octicon-check" 16}}</span>
{{end}}
{{$.i18n.Tr (printf "dataset.task.%s" $task)}}
</a>
{{end}}
</div>
</div>
@@ -56,7 +61,12 @@
<div class="filter menu">
<input type="hidden" name="license" id="license" value="{{.dataset.License}}">
{{range $license := licenses}}
<a class="item" data-license-id="{{$license}}"> {{$license}}</a>
<a class="item" data-license-id="{{$license}}">
{{if eq $license $.dataset.License}}
<span class="octicon-check">{{svg "octicon-check" 16}}</span>
{{end}}
{{$license}}
</a>
{{end}}
</div>
</div>


+ 3
- 0
web_src/less/_dataset.less View File

@@ -151,6 +151,9 @@
}
}
.dataset-list {
.octicon-check {
padding-right: 8px;;
}
.hide {
display: none;
}


Loading…
Cancel
Save