Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Added by

Manav Rathif16846b82edd
diff --git a/web/packages/base/locales/en-US/translation.json b/web/packages/base/locales/en-US/translation.json
index 16ae6f92fd..df8ce763c4 100644
--- a/web/packages/base/locales/en-US/translation.json
+++ b/web/packages/base/locales/en-US/translation.json
@@ -681,5 +681,6 @@
"processing_videos_status": "Processing videos...",
"share_favorites": "Share favorites",
"person_favorites": "{{name}}'s favorites",
- "shared_favorites": "Shared favorites"
+ "shared_favorites": "Shared favorites",
+ "added_by_name": "Added by {{name}}"
}
diff --git a/web/packages/gallery/components/FileInfo.tsx b/web/packages/gallery/components/FileInfo.tsx
index fab7252efe..a3a0218a5a 100644
--- a/web/packages/gallery/components/FileInfo.tsx
+++ b/web/packages/gallery/components/FileInfo.tsx
@@ -256,6 +256,8 @@ export const FileInfo: React.FC<FileInfoProps> = ({
onSelectPerson?.(personID);
};
+ const uploaderName = filePublicMagicMetadata(file)?.uploaderName;
+
return (
<FileInfoSidebar {...{ open, onClose }}>
<Titlebar onClose={onClose} title={t("info")} backIsClose />
@@ -365,6 +367,14 @@ export const FileInfo: React.FC<FileInfoProps> = ({
}}
/>
)}
+ {uploaderName && (
+ <Typography
+ variant="small"
+ sx={{ m: 2, textAlign: "right", color: "text.muted" }}
+ >
+ {t("added_by_name", { name: uploaderName })}
+ </Typography>
+ )}
</Stack>
<RawExif
{...rawExifVisibilityProps}