| @@ -283,18 +283,19 @@ | |||
| <i class="ri-download-line"></i>{{$.i18n.Tr "dataset.download"}}:{{.DownloadCount}} | |||
| {{if .Description}} {{$.i18n.Tr "dataset.description"}}:{{.Description}}{{end}}</span> | |||
| </div> | |||
| <div style="border: none;display: flex;align-items: center;max-width: 100%;"> | |||
| {{.DecompressState}} | |||
| {{if eq .DecompressState 1}} | |||
| <i class="ri-folder-open-line" style="color: #5bb973;" | |||
| title='{{$.i18n.Tr "dataset.unzip_successed"}}'></i> | |||
| {{else if eq .DecompressState 0}} | |||
| <i class="ri-folder-chart-2-line" style="color: #888888;" | |||
| title='{{$.i18n.Tr "dataset.unzip_stared"}}'></i> | |||
| {{else}} | |||
| {{else if eq .DecompressState 2}} | |||
| <i class="ri-folder-forbid-line" style="color: #101010;" | |||
| title='{{$.i18n.Tr "dataset.unzip_failed"}}'></i> | |||
| {{else}} | |||
| <i class="ri-folder-forbid-line" style="visibility: hidden;" | |||
| title='{{$.i18n.Tr "dataset.unzip_failed"}}'></i> | |||
| {{end}} | |||
| <a class="dataset_title title" href="{{.DownloadURL}}" title="{{.Name}}"> | |||
| {{.Name}} | |||
| @@ -327,18 +328,6 @@ | |||
| {{.CreatedUnix | TimeSinceUnix1}} | |||
| </div> | |||
| <div class="four wide column text right"> | |||
| <!-- <el-button type="text">下载</el-button> | |||
| <el-button type="text">预览</el-button> | |||
| <el-button type="text">标注</el-button> | |||
| <el-button type="text"> | |||
| <el-popover | |||
| placement="right" | |||
| width="400" | |||
| trigger="click"> | |||
| <span>asdasd</span> | |||
| <el-button slot="reference" type="text"><i class="ri-more-line"></i></el-button> | |||
| </el-popover> | |||
| </el-button> --> | |||
| <div class="ui compact buttons"> | |||
| <a class="ui basic blue button" href="{{.DownloadURL}}">{{$.i18n.Tr "dataset.download"}}</a> | |||
| @@ -355,11 +344,6 @@ | |||
| @click="setPrivate('{{.UUID}}',true,{{$k}})" | |||
| v-else="privates[{{$k}}]">{{$.i18n.Tr "dataset.set_private"}}</span> | |||
| {{end}} | |||
| <!-- {{if $.CanRead}} | |||
| <a class="ui basic blue button" href="datasets/label/{{.UUID}}?type={{$.Type}}" data-tooltip='{{$.i18n.Tr "dataset.create_label_task"}}'>标注</a> | |||
| {{else}} | |||
| <a class="ui basic disabled button">标注</a> | |||
| {{end}} --> | |||
| <a class="ui basic blue button"> | |||
| <el-dropdown size="medium"> | |||
| <span class="el-dropdown-link"> | |||
| @@ -368,7 +352,6 @@ | |||
| <el-dropdown-menu slot="dropdown"> | |||
| <el-dropdown-item @click.native="copyUrl('{{.DownloadURL}}')">{{$.i18n.Tr "dataset.copy_url"}} | |||
| </el-dropdown-item> | |||
| <!-- <el-dropdown-item class="clipboard" data-clipboard-text="{{.Md5}}" data-clipboard-action="copy">{{$.i18n.Tr "dataset.copy_md5"}}</el-dropdown-item>--> | |||
| {{if and ($.CanWrite) (eq .DecompressState 1) }} | |||
| <el-dropdown-item @click.native="gotoAnnotate('{{$.RepoLink}}','{{.UUID}}',{{.Type}})"> | |||
| {{$.i18n.Tr "dataset.annotation"}}</el-dropdown-item> | |||