Back to Sftpgo

Files

templates/webclient/files.html

2.7.12.4 KB
Original Source

{{template "base" .}} {{- define "page_body"}} {{- template "errmsg" .Error}} {{- $move_copy_msg := ""}} {{- if and .CanRename .CanCopy}} {{- $move_copy_msg = "fs.move_copy"}} {{- else}} {{- if .CanRename}} {{- $move_copy_msg = "fs.move.msg"}} {{- else}} {{- if .CanCopy}} {{- $move_copy_msg = "fs.copy.msg"}} {{- end}} {{- end}} {{- end}}

{{- if .CanCreateDirs}} New Folder {{- end}} {{- if .CanAddFiles}} Upload Files {{- end}}

Home {{- range .Paths}} {{- if eq .Href ""}} {{.DirName}} {{- else}} {{.DirName}} {{- end}} {{- end}}

Select across pages {{- if or .CanDownload .CanDelete}} Actions {{- if .CanDownload}} Download {{- end}} {{- if not .ShareUploadBaseURL}} {{- if or .CanRename .CanAddFiles}} Move or copy {{- end}} {{- if .CanShare}} Share {{- end}} {{- end}} {{- if .CanDelete}} Delete {{- end}}

{{- end}}



Submit

Loading...

|

| | Name | Size | Last Modified | | | --- | --- | --- | --- | --- | --- |

{{- end}} {{- define "extra_css"}}{{- end}} {{- define "extra_js"}} {{- end}} {{- define "additionalnavitems"}} {{- if .QuotaUsage.HasQuotaInfo}}

Quota usage

{{- if .QuotaUsage.HasDiskQuota}} {{- $size := .QuotaUsage.GetQuotaSize}} {{- $files := .QuotaUsage.GetQuotaFiles}}

Disk quota {{- if $size}} {{- $percentage := .QuotaUsage.GetQuotaSizePercentage}}

{{- end}} {{- if $files}} {{- $percentage := .QuotaUsage.GetQuotaFilesPercentage}}

{{- end}}

{{- end}} {{- if .QuotaUsage.HasTranferQuota}} {{- $total := .QuotaUsage.GetTotalTransferQuota}} {{- $upload := .QuotaUsage.GetUploadTransferQuota}} {{- $download := .QuotaUsage.GetDownloadTransferQuota}}

Transfer quota {{- if $total}} {{$percentage := .QuotaUsage.GetTotalTransferQuotaPercentage}}

{{- end}} {{- if $download}} {{$percentage := .QuotaUsage.GetDownloadTransferQuotaPercentage}}

{{- end}} {{- if $upload}} {{$percentage := .QuotaUsage.GetUploadTransferQuotaPercentage}}

{{- end}}

{{- end}}

{{- end}} {{- end}} {{- define "modals"}}

Upload files

Drop files here or click to upload.

CancelSubmit

{{- if not .ShareUploadBaseURL}}

CancelSubmit

Choose target folder



Name

Source name

Target folder

Destination name

{{- if .CanCopy }} Copy {{- end}} {{- if .CanRename }} Move {{- end}}

{{- end}} {{- end}}