Changeset 1352


Ignore:
Timestamp:
02/08/07 12:42:07 (12 years ago)
Author:
pjotr
Message:

Comverted date to numbers, could not be translated in a nice way

Location:
trunk/skins/lemill
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/skins/lemill/base_view.pt

    r1142 r1352  
    101101        <tal:ifoldversion condition="showOldVersionMessage"> 
    102102            <div class="portalMessage" i18n:domain="lemill" i18n:translate="text_old_history_version"> 
    103                 You are viewing old version from <span i18n:name="thetime" tal:content="python: here.getTimeForOldHistory(showOldVersionMessage)">Fri Oct 27 04:49:26 2006</span>. 
     103                You are viewing old version from <span i18n:name="thetime" tal:define="old_version_time python: here.getTimeForOldHistory(showOldVersionMessage)"  tal:content="python:DateTime(old_version_time).strftime('%d.%m.%Y %H:%M:%S')">Fri Oct 27 04:49:26 2006</span>. 
    104104            </div> 
    105105        </tal:ifoldversion>                                                         
  • trunk/skins/lemill/history_view.pt

    r1351 r1352  
    1212            <li tal:repeat="entry python:here.getHistoryEntries()[:]" i18n:translate="text_version_inofrmation"> 
    1313            Version <a href="" i18n:name="version" tal:attributes="href string:${here/absolute_url}/view?version=${entry/timestamp}" tal:content="entry/version"></a>, 
    14                 <a href="" i18n:name="date"  tal:attributes="href string:${here/absolute_url}/view?version=${entry/timestamp}" tal:content="entry/date"></a>, changed by 
     14                <a href="" i18n:name="date" tal:define="entry_date entry/date" tal:attributes="href string:${here/absolute_url}/view?version=${entry/timestamp}" tal:content="python:DateTime(entry_date).strftime('%d.%m.%Y %H:%M:%S')"></a>, changed by 
    1515                <a href="" i18n:name="author" tal:define="tAuthor entry/author; tAuthorHome python: mtool.getHomeFolder(tAuthor); tAuthorName tAuthorHome/NiceName;" tal:content="tAuthorName" tal:attributes="href string:${tAuthorHome/absolute_url}">AUTHOR</a> 
    1616            </li> 
Note: See TracChangeset for help on using the changeset viewer.