[CMF-checkins] CVS: CMF/CMFCollector/skins/collector - collector_macros.pt:1.19

Ken Manheimer klm@zope.com
Fri, 26 Oct 2001 13:52:27 -0400


Update of /cvs-repository/CMF/CMFCollector/skins/collector
In directory cvs.zope.org:/tmp/cvs-serv24828

Modified Files:
	collector_macros.pt 
Log Message:
Eliminated "severities" trait, and consolidated "versions" and
"other_version_info" into a single "version_info" freeform-text
attribute.  Changed the spiel name accordingly, "version_info_spiel"

Using the aCompact helper for displayed dates.

Much issue_header layout finagling, with some success i think.


=== CMF/CMFCollector/skins/collector/collector_macros.pt 1.18 => 1.19 ===
          tal:define="global collector_issue_header_present python: 1;
                      TITLELEN python: 45;
-                     crdate python: here.creation_date;
-                     DateTime nocall: modules/DateTime/DateTime;
                      split nocall: modules/string/split;
                      TRUNCDESCR python: 150;
                      global artifacts
@@ -92,8 +90,9 @@
                 </span>
            </td>
 
-           <td align="right"> Security related: </td>
+           <td align="right"> Security </td> 
            <td metal:define-slot="issue_security_slot">
+             related:
              <span tal:condition="not: here/security_related">
                No
              </span>
@@ -125,33 +124,14 @@
          </tr>
 
          <tr>
-           <td align="right">Topic/Class:</td>
-           <td> <strong>
-           <span metal:define-slot="issue_topic_slot"
-                 tal:replace="here/topic">
-            TOPIC</span>/<span metal:define-slot="issue_classification_slot"
-                               tal:replace="here/classification"
-            >CLASSIFICATION</span>
-             </strong>
-           </td>
            <td align="right">From:</td>
-           <td>
+           <td NOWRAP>
               <span tal:content="here/submitter_name">NAME</span>
-              (<em><span tal:content="here/submitter_id">ID</span></em>)
-         </tr>
-
-         <tr>
-           <td align="right"> Importance: </td>
-           <td metal:define-slot="issue_importance_slot">
-             <span tal:replace="python: here.importance.capitalize()">
-               IMPORTANCE
-             </span>
            </td>
-
            <td align="right"> on: </td>
-           <td>
+           <td NOWRAP>
              <code>
-               <span tal:replace="python: crdate.aCommon()">
+               <span tal:replace="python: here.aCompact(here.creation_date)">
                  CREATIONDATE
                </span>
              </code>
@@ -159,20 +139,19 @@
          </tr>
 
          <tr>
-           <td align="right"> Severity: </td>
-           <td metal:define-slot="issue_severity_slot">
-             <span tal:replace="python: here.severity.capitalize()">
-               SEVERITY
-             </span>
+           <td> </td>
+           <td>
+             (<em><span tal:content="here/submitter_id">ID</span></em>)
            </td>
-
-           <td align="right">Last update:</td>
-           <td tal:define="actions here/action_number">
+           <td tal:define="actions here/action_number" align="right">
+             Last update:
+           </td>
+           <td>
              <code>
                <span tal:condition="python: actions <= 1">~</span>
                <span tal:condition="python: actions > 1"
-                     tal:replace="python: 
-                                  DateTime(here.ModificationDate()).aCommon()">
+                     tal:replace="python:
+                                  here.aCompact(here.modified())">
                  MODDATE
                </span>
              </code>
@@ -180,16 +159,30 @@
          </tr>
 
          <tr>
-           <td align="right">Versions:</td>
-           <td metal:define-slot="issue_version_slot">
-               <span tal:content="here/reported_version">VERSION
-               </span>
+           <td align="right">Topic/class:</td>
+           <td> <strong>
+           <span metal:define-slot="issue_topic_slot"
+                 tal:replace="here/topic">
+            TOPIC</span>/<span metal:define-slot="issue_classification_slot"
+                               tal:replace="here/classification"
+            >CLASSIFICATION</span>
+             </strong>
+           </td>
+           <td align="right"> Importance:
            </td>
+           <td metal:define-slot="issue_importance_slot">
+             <span tal:replace="here/importance">
+               IMPORTANCE
+             </span>
+           </td>
+         </tr>
 
-           <td metal:define-slot="issue_other_versions_slot"
-               colspan="2"
-               tal:content="here/other_version_info">
-             OTHER_VERSION_INFO
+         <tr>
+           <td align="right"> Version info: </td>
+           <td metal:define-slot="issue_version_info_slot"
+               colspan="3"
+               tal:content="here/version_info">
+             VERSION_INFO
            </td>
          </tr>