- Timestamp:
- 04/15/07 23:14:06 (3 years ago)
- Files:
-
- skins/PloneXL8/document_byline_xl8.pt (modified) (1 diff)
- skins/PloneXL8/dtc_view.pt (modified) (9 diffs)
- skins/PloneXL8/formatDueDate.py (modified) (1 diff)
- skins/PloneXL8/getQueryString.py (modified) (2 diffs)
- skins/PloneXL8/rss.pt (modified) (3 diffs)
- skins/PloneXL8/rssmail.pt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
skins/PloneXL8/document_byline_xl8.pt
r9 r12 16 16 <tal:name tal:condition="creator" 17 17 tal:define="author python:mtool.getMemberInfo(creator)"> 18 <span >19 Owner: 20 < a href="#"18 <span i18n:domain="PloneXL8" i18n:translate="PloneXL8_text_owner"> 19 Owner: </span> 20 <span><a href="#" 21 21 tal:attributes="href string:${portal_url}/author/${creator}" 22 22 tal:content="python:author and author['fullname'] or creator" skins/PloneXL8/dtc_view.pt
r10 r12 2 2 lang="en" 3 3 metal:use-macro="here/main_template/macros/master" 4 i18n:domain=" plone">4 i18n:domain="PloneXL8"> 5 5 6 6 <body> … … 36 36 batch folderContents; 37 37 tc_languages here/getTCLanguages; 38 query_string python:request['QUERY_STRING'] ">38 query_string python:request['QUERY_STRING'];"> 39 39 40 40 <form name="filter" method="GET"> … … 42 42 43 43 <tr> 44 <td><input type="radio" name="isDocSource" value="Yes" tal:attributes="checked python:contentFilter['isDocSource']=='Yes'" onclick="clearTranslationArea();" />Source Language44 <td><input type="radio" name="isDocSource" value="Yes" tal:attributes="checked python:contentFilter['isDocSource']=='Yes'" onclick="clearTranslationArea();" id="is_doc_source" /><label for="is_doc_source" i18n:translate="PloneXL8_label_source_language">Source Language</label> 45 45 <select name="Language" multiple="true" size="5" tal:define="sel_source python:here.selectedSourceLangsForSearch(request.form)"> 46 46 <option value="all" tal:attributes="selected python:'all' in sel_source">All</option> … … 50 50 tal:content="lang" /> 51 51 </select><br /> 52 <input type="checkbox" name="includeArchived" value="Yes" tal:attributes="checked python:contentFilter['includeArchived']=='Yes'" />Include archived sources?52 <input type="checkbox" name="includeArchived" value="Yes" tal:attributes="checked python:contentFilter['includeArchived']=='Yes'" id="include_archived" /><label for="include_archived" i18n:translate="PloneXL8_label_include_archived_sources">Include archived sources?</label> 53 53 </td> 54 <td valign="top" bgcolor="#cccccc"><input type="radio" name="isDocSource" value="No" tal:attributes="checked python:contentFilter['isDocSource']=='No'" />Target Language54 <td valign="top" bgcolor="#cccccc"><input type="radio" name="isDocSource" value="No" tal:attributes="checked python:contentFilter['isDocSource']=='No'" id="is_not_doc_source" /><label for="is_not_doc_source" i18n:translate="PloneXL8_label_target_language">Target Language</label> 55 55 <select name="Language2" multiple="true" size="5" onclick="checkTranslationArea();"> 56 56 <option tal:repeat="lang tc_languages" … … 61 61 </td> 62 62 <td valign="top" bgcolor="#cccccc"> 63 State:63 <label i18n:translate="PloneXL8_label_state">State</label> 64 64 <select name="review_state" onclick="checkTranslationArea();"> 65 65 <option value="">All</option> … … 71 71 </td> 72 72 <td valign="top"> 73 <input type="submit" value="Filter" />73 <input type="submit" value="Filter" i18n:attributes="value" /> 74 74 </td> 75 75 </tr> … … 94 94 <th class="nosort"> <tal:title i18n:translate="listingheader_title" 95 95 >Title</tal:title> </th> 96 <th class="nosort" >96 <th class="nosort" i18n:translate="PloneXL8_listingheader_original"> 97 97 Original 98 98 </th> 99 <th class="nosort" >99 <th class="nosort" i18n:translate="PloneXL8_listingheader_words"> 100 100 Words 101 101 </th> 102 <th class="nosort" >102 <th class="nosort" i18n:translate="PloneXL8_listingheader_translations"> 103 103 Translations 104 104 </th> 105 105 106 <th class="nosort" >106 <th class="nosort" i18n:translate="PloneXL8_listingheader_deadline"> 107 107 Deadline 108 108 </th> 109 <th class="nosort" >109 <th class="nosort" i18n:translate="PloneXL8_listingheader_proofdeadline"> 110 110 Proofread Deadline 111 111 </th> … … 138 138 item_due item/getDueDate; 139 139 item_proof_due item/getProofDueDate; 140 item_urgency item/getUrgency; 141 "> 140 item_urgency item/getUrgency"> 142 141 <td width="250"> 143 142 <img tal:attributes="src python:'urgency' + str(item_urgency) + '.gif'; … … 195 194 <p class="discreet" 196 195 tal:condition="not: folderContents" 197 i18n:translate=" ">196 i18n:translate="PloneXL8_text_no_items_found"> 198 197 No items found. 199 198 </p> 200 199 </metal:empty> 201 <p class="discreet"><img src="urgency2.gif" /> = Urgent 202 <img src="urgency3.gif" /> = Super urgent<br /></p>200 <p class="discreet"><img src="urgency2.gif" /> = <span i18n:translate="PloneXL8_text_urgent">Urgent</span> 201 <img src="urgency3.gif" /> = <span i18n:translate="PloneXL8_text_superurgent">Super urgent</span><br /></p> 203 202 <a href="#" 204 203 tal:attributes="href string:rss?${query_string}"> skins/PloneXL8/formatDueDate.py
r9 r12 6 6 ##bind subpath=traverse_subpath 7 7 ##parameters=mydate 8 ##title= 8 ##title=A sort of customized toLocalizedTime for shorter, nicer date format 9 9 ## 10 10 11 11 from DateTime import DateTime 12 from Products.CMFCore.utils import getToolByName 12 13 13 14 if mydate: 15 formatted = mydate.strftime("%d %b %y") 16 date_arr = formatted.split(" ") 17 day = date_arr[0] 18 month = date_arr[1] 19 year = date_arr[2] 20 mo_lower = month.lower() 21 mo_msg_id = "month_" + mo_lower + "_abbr" 22 23 translation_service = getToolByName(context, 'translation_service') 24 short_month = translation_service.utranslate(domain='plone', 25 msgid=mo_msg_id, 26 default=month, 27 context=context) 14 28 if mydate.isCurrentYear: 15 return mydate.strftime("%b %d")29 return day + " " + short_month 16 30 else: 17 return mydate.strftime("%b %d, %Y")31 return day + " " + short_month + " " + year skins/PloneXL8/getQueryString.py
r10 r12 1 ##parameters=req 1 ##parameters=req, sort='getUrgency' 2 2 ##title=Return query string for processing by catalog search 3 3 … … 50 50 51 51 # behind the scenes 52 req["sort_on"]= "getUrgency"52 req["sort_on"]=sort 53 53 req["sort_order"]="Reverse" 54 54 skins/PloneXL8/rss.pt
r1 r12 13 13 define-macro="master" 14 14 tal:define=" 15 contentFilter python:here.getQueryString(request.form );15 contentFilter python:here.getQueryString(request.form, sort='created'); 16 16 contentsMethod python:here.getFolderContents; 17 17 objects python:contentsMethod(contentFilter, batch=True, b_size=15); … … 50 50 51 51 <tal:items repeat="obj_item objects"> 52 <item tal:define="orig_info python:here.getOriginalInfo(obj_item); 52 <item rdf:about="" tal:attributes="rdf:about obj_item/getURL|obj_item/absolute_url" 53 tal:define="orig_info python:here.getOriginalInfo(obj_item); 53 54 language obj_item/Language; 54 55 title python:orig_info[0] + ' (' + orig_info[2] + ') => ' + language; … … 64 65 <dc:subject tal:content="item">Item</dc:subject> 65 66 </tal:block> 66 <dc:date tal:content="python: obj_item. modified.HTML4()">Modificationdate</dc:date>67 <dc:date tal:content="python: obj_item.created.HTML4()">Create date</dc:date> 67 68 <dc:type tal:content="obj_item/Type">Type</dc:type> 68 69 </item> skins/PloneXL8/rssmail.pt
r10 r12 50 50 <a href="#" tal:attributes="href python:url + '/rss?' + query_string">RSS feed</a> for this language combination. 51 51 </p> 52 <form action='http://www.r-mail.org/' method='post'> <div>52 <form action='http://www.r-mail.org/' method='post'> 53 53 <input type="hidden" name="rss" tal:attributes="value python:url + '/rss?' + query_string" /> 54 54 <input type="hidden" name="mailto" tal:attributes="value python:member.email" />
