{{define "user/items.html"}}
{{template "public_favicon_link" .}}| {{T "col_type"}} | {{T "col_title"}} | {{T "col_version"}} | {{T "col_uploaded"}} | {{T "col_status"}} | {{T "col_actions"}} |
|---|---|---|---|---|---|
| {{if eq (printf "%v" .item_type) "1"}} {{T "item_type_source"}} {{else}} {{T "item_type_software"}} {{end}} | {{if eq (printf "%v" .status) "2"}} {{.title}} {{else}} {{.title}} {{end}} | {{.version}} | {{if .created_human}}{{.created_human}}{{else}}{{.created_at}}{{end}} | {{if eq (printf "%v" .status) "1"}}{{T "item_status_pending"}}{{end}} {{if eq (printf "%v" .status) "2"}}{{T "item_status_published"}}{{end}} {{if eq (printf "%v" .status) "3"}}{{T "item_status_rejected"}}{{end}} {{if eq (printf "%v" .status) "0"}}{{T "item_status_draft"}}{{end}} {{if and (eq (printf "%v" .status) "3") .reject_reason}} {{T "reject_hint"}} {{end}} | {{$st := printf "%v" .status}} {{$showNewVer := eq $st "2"}} {{$showEdit := or (eq $st "1") (eq $st "3")}} {{$showDel := and $.Data.CanDeleteOwn (or (eq $st "0") $showEdit)}} {{$hasMenu := or $showNewVer $showEdit $showDel}} |