Duncan Mac-Vicar P. wrote:
% 
% Attached is the first iteration of this patch.
% 
% It includes:
% 
% - Transformation logic moved to js so that it can be shared with perl
%   or easily disabled (disabled not implemented yet)
% - A rhn:formatDate
%   -> allows to format in both moment.js fromXX/fromNow/calendar styles
%   -> automatic locale configuration if used from jsp
%   -> usage of time HTML5 tag
%   -> uses the standard user format for the date in the popup, or in case the
%      humanizing does not occur.
% - A perl rhn-date tag:
%   -> allows to format in both moment.js fromXX/fromNow/calendar styles
%   -> usage of time HTML5 tag
%   -> uses the standard user format for the date in the popup, or in case the
%      humanizing does not occur.
% - An improved is_date option for List columns in perl that allow to set
%   the human style
% 
% Additionally, a momentjs package is required, which I made available here:
% https://build.opensuse.org/package/show/home:dmacvicar:spacewalk/momentjs
% 
% In the next iteration I would like to improve:
% - in the Java code, may be split the momentjs locales in different files
% - Implement disable
% 
% But I think this iteration is good enough to be committed.

Hi Duncan,

I've commited this part of timestamp changes with an exception of 
moment-with-langs.min.js file.
It isn't referenced from pages (moment.min.js is), moreover it should not be in
spacewalk-web but a separate package. 

Should there be already some dates translated to "human readable" string on pxt 
pages? Even if I download moment.min.js to my spacewalk I can't see any.
I see date wrapped with <time></time> but no translation (e.g. on 
/network/systems/details/history/pending.pxt).


Regards,

--
Michael Mráka
Satellite Engineering, Red Hat

_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to