Bug 344211 - [client] simplify presentation of navigator file attributes
Summary: [client] simplify presentation of navigator file attributes
Status: RESOLVED FIXED
Alias: None
Product: Orion (Archived)
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.2   Edit
Assignee: Susan McCourt CLA
QA Contact:
URL:
Whiteboard:
Keywords: polish
Depends on:
Blocks:
 
Reported: 2011-04-28 17:30 EDT by Simon Kaegi CLA
Modified: 2011-09-01 11:42 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Kaegi CLA 2011-04-28 17:30:41 EDT
The look and feel of the file navigator attributes I think could be better and more compact while delivering roughly the same info. 

The two that really stick out for me are the Date/Time and Size. we should stick to a single unit and use a format something like in windows explorer.

e.g. 4/28/2011 5:29PM for date modified and then always use rounded KB for size.
Comment 1 Susan McCourt CLA 2011-05-03 14:43:00 EDT
fixed.
- We now use dojo.date.locale to format the date.  This uses the default locale's "short presentation" for date and time, which matches the standard platform locale formatting.  So now the results in navigator look exactly like those in win file explorer, such as 5/3/2011 11:34AM in the US English locale.

- For sizes we round up the KB to the nearest whole and use dojo.number to format it.  Verified that the results for empty files and large files (over 1000 KB) format the same as the platform.  For example, on windows:

empty.txt 0 KB
myfile.txt 16 KB
bigfile.zip 2,090 KB

cc'ing Gosia. I fixed explorer-table, but I assume you are formatting dates elsewhere in some of the git pages.