-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
191 additions
and
183 deletions.
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
packages/web-app-files/src/components/FilesListFooterInfo.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<template functional> | ||
<div | ||
:ref="data.ref" | ||
v-bind="data.attrs" | ||
class="uk-text-nowrap oc-text-muted uk-text-center" | ||
:class="[data.staticClass, data.class]" | ||
> | ||
<!-- | ||
TODO: merge all strings here to one interpollated translation | ||
This requires to come up with a way in tests to still select only folders and files lengths | ||
--> | ||
<translate>Showing</translate> | ||
<span id="files-list-count-folders" v-text="props.folders" /> | ||
<translate :translate-n="props.folders" translate-plural="folders">folder</translate> | ||
<translate>and</translate> | ||
<translate | ||
id="files-list-count-files" | ||
:translate-n="props.files" | ||
translate-plural="%{count} files" | ||
:translate-params="{ count: props.files }" | ||
>%{count} file</translate | ||
> | ||
<translate | ||
:translate-n="props.total" | ||
translate-plural="of %{count} resources" | ||
:translate-params="{ count: props.total }" | ||
>of %{count} resource</translate | ||
> | ||
<span v-if="props.size">– {{ props.size }}</span> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
files: { | ||
type: Number, | ||
required: true | ||
}, | ||
folders: { | ||
type: Number, | ||
required: true | ||
}, | ||
total: { | ||
type: Number, | ||
required: true | ||
}, | ||
size: { | ||
type: String, | ||
required: false, | ||
default: null | ||
} | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.